/**
 * Theme Switcher Modal Styles
 */

/* Floating Theme Button */
.floating-theme-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--theme-gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 1.25rem;
    transition: var(--transition-base);
    z-index: 999;


    /* hide switcher */
    display: none;
}

.floating-theme-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.floating-theme-button span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.floating-theme-button i {
    font-size: 1.25rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .floating-theme-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-theme-button span {
        font-size: 0.6rem;
    }
    
    .floating-theme-button i {
        font-size: 1.1rem;
    }
}

.theme-switcher-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.theme-switcher-modal.active {
    opacity: 1;
    visibility: visible;
}

.theme-switcher-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.theme-switcher-content {
    background: var(--theme-bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.9) translateY(-20px);
    transition: var(--transition-base);
}

.theme-switcher-modal.active .theme-switcher-content {
    transform: scale(1) translateY(0);
}

.theme-switcher-header {
    padding: var(--spacing-lg) var(--spacing-xl);
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
}

.theme-switcher-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: white;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.theme-switcher-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: var(--font-size-lg);
}

.theme-switcher-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.theme-switcher-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

/* Theme Card */
.theme-card {
    background: var(--theme-bg-secondary);
    border: 2px solid var(--theme-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--theme-primary);
}

.theme-card.active {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 3px rgba(var(--theme-accent-rgb), 0.2);
    background: linear-gradient(
        135deg, 
        rgba(var(--theme-primary-rgb), 0.05) 0%, 
        rgba(var(--theme-secondary-rgb), 0.05) 100%
    );
}

.theme-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--theme-primary) 0%, var(--theme-accent) 100%);
}

/* Theme Preview */
.theme-preview {
    display: flex;
    gap: var(--spacing-1);
    margin-bottom: var(--spacing-md);
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.theme-color {
    flex: 1;
    transition: var(--transition-fast);
}

.theme-card:hover .theme-color {
    transform: scaleY(1.1);
}

/* Theme Info */
.theme-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2);
}

.theme-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin: 0;
    color: var(--theme-text-primary);
}

.theme-badge {
    background: var(--theme-accent);
    color: white;
    padding: 2px var(--spacing-2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .theme-switcher-content {
        margin: var(--spacing-md);
    }
    
    .theme-switcher-header,
    .theme-switcher-body {
        padding: var(--spacing-md);
    }
}
