/*!
 * SPW-3D Viewer CSS
 * Responsive 3D model görüntüleyici stilleri
 */

/* Ana Container */
.spw-3d-viewer-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* 3D Canvas */
.spw-3d-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
}

.spw-3d-canvas:active {
    cursor: grabbing;
}

.spw-3d-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Loading Spinner */
.spw-3d-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    color: #6c757d;
    font-size: 16px;
}

.spw-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spw-spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.spw-3d-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8d7da;
    color: #721c24;
    text-align: center;
    padding: 20px;
}

.spw-3d-error p {
    margin: 0;
    font-size: 16px;
}

/* Kontrol Butonları */
.spw-3d-controls {
    position: absolute;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.spw-3d-controls.controls-bottom-right {
    bottom: 15px;
    right: 15px;
}

.spw-3d-controls.controls-bottom-left {
    bottom: 15px;
    left: 15px;
}

.spw-zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: transparent;
    border-radius: 12px;
    padding: 3px;
}

.spw-control-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: none;
    border: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    pointer-events: auto;
    opacity: 1;
}

.spw-control-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.spw-control-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Button Element Stabilite Garantisi */
.spw-control-btn[data-action="zoom-in"],
.spw-control-btn[data-action="zoom-out"], 
.spw-control-btn[data-action="reset"],
.spw-control-btn[data-action="toggle-color-picker"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 38px !important;
    height: 38px !important;
    position: relative !important;
}

.spw-control-btn[data-action="fullscreen"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 26px !important;
    height: 26px !important;
    position: relative !important;
}

/* Transition Override - Sadece Transform */
.spw-control-btn {
    transition: transform 0.3s ease !important;
}

.spw-control-btn:hover {
    transition: transform 0.2s ease !important;
}

.spw-control-btn:active {
    transition: transform 0.1s ease !important;
}

/* WebP Icon Classes */
.spw-zoom-in.spw-webp-icons {
    background-image: url('../icons/zoom-in.webp');
    pointer-events: auto;
}

.spw-zoom-out.spw-webp-icons {
    background-image: url('../icons/zoom-out.webp');
    pointer-events: auto;
}

.spw-reset.spw-webp-icons {
    background-image: url('../icons/reset.webp');
    pointer-events: auto;
}

.spw-fullscreen-btn.spw-webp-icons {
    background-image: url('../icons/fullscreen.webp');
    background-size: 18px 18px;
    pointer-events: auto;
}

.spw-color-picker-btn.spw-webp-icons {
    background-image: url('../icons/color-palette.webp');
    background-size: 30px 30px;
    pointer-events: auto;
}

/* Fullscreen modunda close.webp göster - Ana kural */
.spw-fullscreen-btn.spw-webp-icons.fullscreen-mode,
.spw-3d-viewer-container.fullscreen .spw-fullscreen-btn.spw-webp-icons {
    background-image: url('../icons/close.webp') !important;
    background-size: 18px 18px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.spw-fullscreen-btn.spw-webp-icons.fullscreen-mode .spw-icon {
    display: none !important;
}

/* WebP modunda fullscreen'de SVG'leri gizle - sadece close.webp göster */
.spw-fullscreen-btn.spw-webp-icons.fullscreen-mode .spw-fullscreen-close {
    display: none !important;
}

.spw-fullscreen-btn.spw-webp-icons.fullscreen-mode .spw-fullscreen-open {
    display: none !important;
}

/* Fullscreen modunda çarpı SVG'sini göster */
.spw-3d-viewer-container.fullscreen .spw-fullscreen-open {
    display: none !important;
}

.spw-3d-viewer-container.fullscreen .spw-fullscreen-close {
    display: block !important;
}

/* Fullscreen modunda SVG boyutunu ayarla */
.spw-3d-viewer-container.fullscreen .spw-fullscreen-btn svg.spw-icon {
    width: 20px !important;
    height: 20px !important;
    color: white !important;
    fill: white !important;
}

/* SVG fallback */
.spw-control-btn .spw-icon {
    display: block;
    line-height: 1;
    width: 30px;
    height: 30px;
}

.spw-control-btn svg.spw-icon {
    width: 30px;
    height: 30px;
}

/* WebP modunda SVG'leri gizle */
.spw-control-btn.spw-webp-icons .spw-icon {
    display: none !important;
}

.spw-color-picker-btn.spw-webp-icons .spw-icon {
    display: none !important;
}

/* Fullscreen buton ayrı stil */
.spw-fullscreen-btn {
    width: 26px !important;
    height: 26px !important;
}

.spw-fullscreen-btn svg.spw-icon {
    width: 18px;
    height: 18px;
}

/* Fullscreen Kontrolleri */
.spw-3d-fullscreen-controls {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 10 !important;
    width: auto !important;
    height: auto !important;
}

.spw-fullscreen-btn:hover {
    transform: scale(1.1) !important;
}

/* Fullscreen Mode */
.spw-3d-viewer-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* GÜÇLÜ Mobile'da fullscreen butonunu gizle */
@media (max-width: 768px) {
    .spw-3d-fullscreen-controls.spw-desktop-only {
        display: none !important;
    }
    
    .spw-3d-fullscreen-controls {
        display: none !important;
    }
}

/* Exit Button Controls - Fullscreen butonun yerinde */
.spw-fullscreen-exit-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 1000;
    display: none; /* Varsayılan olarak gizli */
}

/* Exit button normal control buton gibi */
.spw-fullscreen-exit-controls .spw-exit-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spw-fullscreen-exit-controls .spw-exit-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spw-fullscreen-exit-controls .spw-exit-btn .spw-icon {
    width: 24px;
    height: 24px;
    color: #333;
    fill: #333;
}

/* WebP icon support for exit button */
.spw-fullscreen-exit-controls .spw-exit-btn.spw-webp-icons {
    background-image: url('../icons/close.webp');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.9);
}

.spw-fullscreen-exit-controls .spw-exit-btn.spw-webp-icons .spw-icon {
    display: none;
}

.spw-fullscreen-exit-controls .spw-exit-btn.spw-webp-icons:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Fullscreen modunda: fullscreen buton gizle, exit buton göster */
.spw-3d-viewer-container.fullscreen .spw-3d-fullscreen-controls {
    display: none !important;
}

.spw-3d-viewer-container.fullscreen .spw-fullscreen-exit-controls {
    display: block !important;
}

/* Bu kurallar yukarıda tekrar edildi, burayı temizledik */

/* Fullscreen modunda buton sağ üst köşede kalır */
.spw-3d-viewer-container.fullscreen .spw-3d-fullscreen-controls {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
}

.spw-3d-viewer-container.fullscreen .spw-fullscreen-btn {
    background: rgba(0, 0, 0, 0.5) !important;
    color: white !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 6px !important;
    backdrop-filter: blur(5px) !important;
}

.spw-3d-viewer-container.fullscreen .spw-fullscreen-btn:hover {
    transform: scale(1.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spw-3d-viewer-container {
        height: 400px;
        margin: 15px 0;
        border-radius: 6px;
    }
    
    .spw-control-btn,
    .spw-color-picker-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 14px;
        background-size: 25px 25px;
    }
    
    .spw-control-btn .spw-icon,
    .spw-control-btn svg.spw-icon,
    .spw-color-picker-btn .spw-icon,
    .spw-color-picker-btn svg.spw-icon {
        width: 25px !important;
        height: 25px !important;
    }
    
    .spw-fullscreen-btn.spw-webp-icons {
        background-size: 15px 15px;
    }
    
    .spw-fullscreen-btn.spw-webp-icons.fullscreen-mode,
    .spw-3d-viewer-container.fullscreen .spw-fullscreen-btn.spw-webp-icons {
        background-image: url('../icons/close.webp') !important;
        background-size: 15px 15px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
    
    .spw-fullscreen-btn svg.spw-icon {
        width: 15px;
        height: 15px;
    }
    
    .spw-fullscreen-btn {
        width: 20px !important;
        height: 20px !important;
    }
    
    .spw-3d-controls.controls-bottom-right,
    .spw-3d-controls.controls-bottom-left {
        bottom: 10px;
    }
    
    .spw-3d-controls.controls-bottom-right {
        right: 10px;
    }
    
    .spw-3d-controls.controls-bottom-left {
        left: 10px;
    }
    
    .spw-3d-fullscreen-controls {
        top: 10px;
        right: 10px;
    }
    
    .spw-3d-viewer-container.fullscreen .spw-3d-fullscreen-controls {
        top: 15px !important;
        right: 15px !important;
    }
    
    .spw-3d-viewer-container.fullscreen .spw-fullscreen-btn {
        width: 25px !important;
        height: 25px !important;
    }
    
    .spw-3d-viewer-container.fullscreen .spw-fullscreen-btn svg.spw-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .spw-spinner {
        width: 40px;
        height: 40px;
    }
    
    .spw-3d-loading {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .spw-3d-viewer-container {
        height: 300px;
        border-radius: 4px;
    }
    
    .spw-control-btn,
    .spw-color-picker-btn {
        width: 31px !important;
        height: 31px !important;
        font-size: 13px;
        background-size: 23px 23px;
    }
    
    .spw-control-btn .spw-icon,
    .spw-control-btn svg.spw-icon,
    .spw-color-picker-btn .spw-icon,
    .spw-color-picker-btn svg.spw-icon {
        width: 23px !important;
        height: 23px !important;
    }
    
    .spw-fullscreen-btn.spw-webp-icons {
        background-size: 12px 12px;
    }
    
    .spw-fullscreen-btn.spw-webp-icons.fullscreen-mode,
    .spw-3d-viewer-container.fullscreen .spw-fullscreen-btn.spw-webp-icons {
        background-image: url('../icons/close.webp') !important;
        background-size: 12px 12px !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
    
    .spw-fullscreen-btn svg.spw-icon {
        width: 12px;
        height: 12px;
    }
    
    .spw-fullscreen-btn {
        width: 18px !important;
        height: 18px !important;
    }
    
    .spw-zoom-controls {
        gap: 1px;
        padding: 2px;
    }
    
    .spw-3d-controls.controls-bottom-right,
    .spw-3d-controls.controls-bottom-left {
        bottom: 8px;
        gap: 3px;
    }
    
    .spw-zoom-controls {
        gap: 0px;
        padding: 1px;
    }
    
    .spw-3d-controls.controls-bottom-right {
        right: 8px;
    }
    
    .spw-3d-controls.controls-bottom-left {
        left: 8px;
    }
    
    .spw-3d-fullscreen-controls {
        top: 8px;
        right: 8px;
    }
    
    .spw-3d-viewer-container.fullscreen .spw-3d-fullscreen-controls {
        top: 12px !important;
        right: 12px !important;
    }
    
    .spw-3d-viewer-container.fullscreen .spw-fullscreen-btn {
        width: 22px !important;
        height: 22px !important;
    }
    
    .spw-3d-viewer-container.fullscreen .spw-fullscreen-btn svg.spw-icon {
        width: 16px !important;
        height: 16px !important;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .spw-3d-viewer-container {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .spw-3d-loading {
        background: rgba(26, 26, 26, 0.9);
        color: #ccc;
    }
    
    .spw-spinner {
        border-color: #333;
        border-top-color: #007cba;
    }
}

/* Animation for button interactions */
.spw-control-btn,
.spw-fullscreen-btn {
    animation: none;
}

.spw-control-btn:focus,
.spw-fullscreen-btn:focus {
    outline: none;
    background: transparent;
}

/* Accessibility */
.spw-control-btn:focus-visible,
.spw-fullscreen-btn:focus-visible {
    outline: none;
    background: transparent;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .spw-control-btn,
    .spw-fullscreen-btn {
        background: transparent;
        border: 2px solid white;
        border-radius: 8px;
    }
    
    .spw-3d-viewer-container {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .spw-spinner {
        animation: none;
    }
    
    .spw-control-btn,
    .spw-fullscreen-btn {
        transition: none;
    }
    
    .spw-control-btn:hover,
    .spw-fullscreen-btn:hover {
        transform: none;
        background: transparent;
    }
} 

/* WebP Icon fallback stability */
.spw-control-btn.spw-webp-icons,
.spw-fullscreen-btn.spw-webp-icons {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

.spw-control-btn.spw-webp-icons:active,
.spw-fullscreen-btn.spw-webp-icons:active {
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

.spw-control-btn.spw-webp-icons:focus,
.spw-fullscreen-btn.spw-webp-icons:focus {
    visibility: visible !important;
    opacity: 1 !important;
    outline: none !important;
}

.spw-control-btn.spw-webp-icons:hover,
.spw-fullscreen-btn.spw-webp-icons:hover {
    visibility: visible !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
    transition: transform 0.2s ease !important;
} 

/* WebP Background Image Koruma - Tüm State'lerde */
.spw-zoom-in.spw-webp-icons,
.spw-zoom-in.spw-webp-icons:hover,
.spw-zoom-in.spw-webp-icons:active,
.spw-zoom-in.spw-webp-icons:focus {
    background-image: url('../icons/zoom-in.webp') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 30px 30px !important;
}

.spw-zoom-out.spw-webp-icons,
.spw-zoom-out.spw-webp-icons:hover,
.spw-zoom-out.spw-webp-icons:active,
.spw-zoom-out.spw-webp-icons:focus {
    background-image: url('../icons/zoom-out.webp') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 30px 30px !important;
}

.spw-reset.spw-webp-icons,
.spw-reset.spw-webp-icons:hover,
.spw-reset.spw-webp-icons:active,
.spw-reset.spw-webp-icons:focus {
    background-image: url('../icons/reset.webp') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 30px 30px !important;
}

.spw-fullscreen-btn.spw-webp-icons,
.spw-fullscreen-btn.spw-webp-icons:hover,
.spw-fullscreen-btn.spw-webp-icons:active,
.spw-fullscreen-btn.spw-webp-icons:focus {
    background-image: url('../icons/fullscreen.webp') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
}

.spw-color-picker-btn.spw-webp-icons,
.spw-color-picker-btn.spw-webp-icons:hover,
.spw-color-picker-btn.spw-webp-icons:active,
.spw-color-picker-btn.spw-webp-icons:focus {
    background-image: url('../icons/color-palette.webp') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 30px 30px !important;
} 

/* Mobil fullscreen uyarı metni */
.spw-mobile-fullscreen-info {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    z-index: 999999 !important;
    display: none !important;
    animation: spw-fadeOut 3s ease-out forwards !important;
}

@keyframes spw-fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; display: none; }
}

/* Mobile cihazlarda fullscreen info gizle - artık fullscreen yok */
@media (max-width: 768px) {
    .spw-mobile-fullscreen-info {
        display: none !important;
    }
}

/* Minimal Color Picker - Renk seçici butonuna göre ortalı */
.spw-minimal-color-picker {
    position: absolute;
    bottom: 0px;   /* Tam ortala */
    right: 55px;   /* Daha fazla boşluk (yeşil ok) */
    display: flex;
    gap: 5px;      /* Daha az boşluk (turuncu ok) */
    z-index: 100;
    /* Arka plan, border, shadow KALDIRILDI */
}

.spw-minimal-color-picker::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.spw-color-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 10px;
    border-bottom: 1px solid #e1e8ed;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px 10px 0 0;
}

.spw-color-picker-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.spw-close-color-picker {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.spw-close-color-picker:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.1);
}

.spw-color-picker-content {
    padding: 20px;
}

.spw-color-palette {
    margin-bottom: 20px;
}

.spw-color-palette label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.spw-palette-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
    justify-items: center;
}

.spw-palette-color {
    width: 45px;
    height: 45px;
    border: 3px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.spw-palette-color:hover {
    transform: scale(1.1);
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
    z-index: 10;
}

.spw-palette-color:active {
    transform: scale(0.95);
}

.spw-palette-color.selected {
    border-color: #0073aa;
    border-width: 4px;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
    transform: scale(1.05);
}

.spw-custom-color {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

.spw-custom-color label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.spw-custom-color-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spw-custom-color-input {
    width: 60px;
    height: 40px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spw-custom-color-input:hover {
    border-color: #0073aa;
}

.spw-color-code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    color: #495057;
    min-width: 80px;
    text-align: center;
}

.spw-color-actions {
    border-top: 1px solid #e1e8ed;
    padding-top: 15px;
    text-align: center;
}

.spw-reset-color {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.spw-reset-color:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.spw-reset-color:active {
    transform: translateY(0);
}

/* Color Controls - Zoom kontrollerinin içine dahil et */
.spw-color-controls {
    display: flex;
    align-items: center;
    margin-top: 1px;
    position: relative;
}

/* Color picker button - Diğer butonlarla aynı stil */
.spw-color-picker-btn {
    width: 38px !important;
    height: 38px !important;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 30px 30px;
    pointer-events: auto;
    opacity: 1;
}

/* Hover ve active states - diğer butonlarla aynı */
.spw-color-picker-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.spw-color-picker-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Active state için farklı background */
.spw-color-picker-btn.active {
    background: rgba(0, 115, 170, 0.1);
    border: 1px solid rgba(0, 115, 170, 0.3);
}

/* Icon styling - diğer butonlarla aynı */
.spw-color-picker-btn .spw-icon {
    width: 30px;
    height: 30px;
    color: #333;
    fill: #333;
}

/* Mini color buttons - 35px sabit boyut */
.spw-mini-color {
    width: 35px;   /* Sabit 35px boyut */
    height: 35px;  /* Sabit 35px boyut */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    /* Hover, shadow, transition KALDIRILDI - sade tasarım */
}

/* Sadece aktif renk için minimal border */
.spw-mini-color.selected {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
}

/* Default color için NO indicator - turuncu nokta kaldırıldı */
/* .spw-mini-color.is-default - KALDIRILDI */

/* Default indicator kaldırıldı */
/* .default-indicator - KALDIRILDI */

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .spw-minimal-color-picker {
        bottom: -1px;   /* Daha yukarı ortala */
        right: 50px;    /* Daha fazla boşluk (yeşil ok) */
        gap: 4px;       /* Daha az boşluk (turuncu ok) */
    }
    
    .spw-mini-color {
        width: 35px;    /* Sabit 35px */
        height: 35px;   /* Sabit 35px */
    }
    
    .spw-color-picker-btn {
        width: 34px;
        height: 34px;
    }
    
    .spw-color-picker-btn.spw-webp-icons {
        background-size: 25px 25px !important;
    }
}

@media (max-width: 480px) {
    .spw-minimal-color-picker {
        bottom: 0px;   /* Tam ortala */
        right: 47px;   /* Daha fazla boşluk (yeşil ok) */
        gap: 4px;      /* Daha az boşluk (turuncu ok) */
    }
    
    .spw-mini-color {
        width: 35px;   /* Sabit 35px */
        height: 35px;  /* Sabit 35px */
    }
    
    .spw-color-picker-btn {
        width: 31px !important;
        height: 31px !important;
    }
    
    .spw-color-picker-btn.spw-webp-icons {
        background-size: 23px 23px !important;
    }
}

/* Fullscreen modunda renk seçici düzenlemeleri */
.spw-3d-viewer-container.fullscreen .spw-minimal-color-picker {
    bottom: 0px;   /* Tam ortala */
    right: 55px;   /* Daha fazla boşluk (yeşil ok) */
    gap: 5px;      /* Daha az boşluk (turuncu ok) */
}

.spw-3d-viewer-container.fullscreen .spw-mini-color {
    width: 35px;   /* Sabit 35px */
    height: 35px;  /* Sabit 35px */
}

/* Fullscreen modunda mobil düzenlemeler */
@media (max-width: 768px) {
    .spw-3d-viewer-container.fullscreen .spw-minimal-color-picker {
        bottom: -1px;  /* Daha yukarı ortala */
        right: 50px;   /* Daha fazla boşluk (yeşil ok) */
        gap: 4px;      /* Daha az boşluk (turuncu ok) */
    }
    
    .spw-3d-viewer-container.fullscreen .spw-mini-color {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .spw-3d-viewer-container.fullscreen .spw-minimal-color-picker {
        bottom: 0px;   /* Tam ortala */
        right: 47px;   /* Daha fazla boşluk (yeşil ok) */
        gap: 4px;      /* Daha az boşluk (turuncu ok) */
    }
    
    .spw-3d-viewer-container.fullscreen .spw-mini-color {
        width: 35px;
        height: 35px;
    }
}

/* Dark theme support for color picker */
@media (prefers-color-scheme: dark) {
    .spw-color-picker-panel {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .spw-color-picker-header {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
        border-color: #4a5568;
    }
    
    .spw-color-picker-header h4 {
        color: #e2e8f0;
    }
    
    .spw-close-color-picker {
        color: #a0aec0;
    }
    
    .spw-close-color-picker:hover {
        background: rgba(220, 53, 69, 0.2);
        color: #fc8181;
    }
    
    .spw-custom-color,
    .spw-color-actions {
        border-color: #4a5568;
    }
    
    .spw-color-code {
        background: #1a202c;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .spw-palette-color {
        border-color: #4a5568;
    }
}

/* High contrast mode for color picker */
@media (prefers-contrast: high) {
    .spw-color-picker-panel {
        border-width: 3px;
    }
    
    .spw-palette-color {
        border-width: 2px;
    }
    
    .spw-palette-color:hover,
    .spw-palette-color.selected {
        border-width: 3px;
    }
}

/* No colors message styling */
.spw-no-colors {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.spw-no-colors p {
    margin: 0;
    font-size: 14px;
}

/* Animation for panel show/hide */
.spw-color-picker-panel {
    animation: spw-slideUp 0.3s ease-out;
    transform-origin: bottom left;
}

@keyframes spw-slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spw-slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes spw-slideInUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes spw-slideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
} 