/* Színbeállító Panel (Theme Customizer) CSS */

/* Trigger gomb a fejlécben */
.theme-customizer-trigger {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin-left: 1rem;
}

.theme-customizer-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.theme-customizer-trigger:active {
    transform: scale(0.95);
}

/* Színbeállító panel */
.theme-customizer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.theme-customizer.active {
    right: 0;
}

/* Panel header */
.customizer-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.customizer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customizer-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.customizer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Panel body */
.customizer-body {
    padding: 2rem 1.5rem;
}

.customizer-section {
    margin-bottom: 2.5rem;
}

.customizer-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Színpaletta */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 1rem;
}

.color-option {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid transparent;
}

.color-option:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.color-option.active {
    border-color: #1e293b;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.color-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.color-option.active .color-check {
    display: flex;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Megjegyzés */
.customizer-note {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-solid);
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.customizer-note i {
    color: var(--primary-solid);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Scrollbar stílus */
.theme-customizer::-webkit-scrollbar {
    width: 8px;
}

.theme-customizer::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.theme-customizer::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

.theme-customizer::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-color-end) 0%, var(--primary-color-start) 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .theme-customizer {
        width: 100%;
        right: -100%;
    }

    .theme-customizer.active {
        right: 0;
    }

    .customizer-body {
        padding: 1.5rem 1rem;
    }

    .color-palette {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 0.75rem;
    }

    .color-option {
        width: 60px;
        height: 60px;
    }

    .theme-customizer-trigger {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .customizer-header h3 {
        font-size: 1.1rem;
    }

    .color-palette {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 0.5rem;
    }

    .color-option {
        width: 50px;
        height: 50px;
    }

    .color-check {
        width: 25px;
        height: 25px;
        font-size: 0.85rem;
    }
}

/* Animációk */
@keyframes slideInRight {
    from {
        right: -400px;
        opacity: 0;
    }
    to {
        right: 0;
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        right: 0;
        opacity: 1;
    }
    to {
        right: -400px;
        opacity: 0;
    }
}
