/* ТУРЫЧ.РФ - Цветовые темы */

/* Light Theme (Default) */
:root,
[data-theme="light"],
[data-theme="auto"] {
    /* Primary Colors */
    --primary-color: #0088cc;
    --primary-bg: rgba(0, 136, 204, 0.1);
    --accent-color: #ff6b35;
    
    /* Background Colors */
    --bg-color: #f5f5f5;
    --surface-color: #ffffff;
    --hover-color: rgba(0, 0, 0, 0.05);
    
    /* Text Colors */
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    
    /* Border Colors */
    --border-color: #e0e0e0;
    
    /* Status Colors */
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
}

/* Dark Theme */
[data-theme="dark"] {
    /* Primary Colors */
    --primary-color: #3ea6ff;
    --primary-bg: rgba(62, 166, 255, 0.15);
    --accent-color: #ff8a5b;
    
    /* Background Colors */
    --bg-color: #0f0f0f;
    --surface-color: #1a1a1a;
    --hover-color: rgba(255, 255, 255, 0.05);
    
    /* Text Colors */
    --text-color: #f0f0f0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #707070;
    
    /* Border Colors */
    --border-color: #2a2a2a;
    
    /* Status Colors */
    --success-color: #66bb6a;
    --error-color: #ef5350;
    --warning-color: #ffa726;
    --info-color: #42a5f5;
}

/* Auto theme detection */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        /* Primary Colors */
        --primary-color: #3ea6ff;
        --primary-bg: rgba(62, 166, 255, 0.15);
        --accent-color: #ff8a5b;
        
        /* Background Colors */
        --bg-color: #0f0f0f;
        --surface-color: #1a1a1a;
        --hover-color: rgba(255, 255, 255, 0.05);
        
        /* Text Colors */
        --text-color: #f0f0f0;
        --text-secondary: #b0b0b0;
        --text-tertiary: #707070;
        
        /* Border Colors */
        --border-color: #2a2a2a;
        
        /* Status Colors */
        --success-color: #66bb6a;
        --error-color: #ef5350;
        --warning-color: #ffa726;
        --info-color: #42a5f5;
    }
}

/* Telegram Web3 Theme (Optional) */
[data-theme="telegram"] {
    /* Primary Colors */
    --primary-color: #3390ec;
    --primary-bg: rgba(51, 144, 236, 0.1);
    --accent-color: #ff6f61;
    
    /* Background Colors */
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --hover-color: rgba(0, 0, 0, 0.04);
    
    /* Text Colors */
    --text-color: #000000;
    --text-secondary: #707579;
    --text-tertiary: #a8a8a8;
    
    /* Border Colors */
    --border-color: #e4e4e5;
    
    /* Status Colors */
    --success-color: #4bb34b;
    --error-color: #e53935;
    --warning-color: #ff9800;
    --info-color: #3390ec;
}

/* Smooth transitions for theme changes */
body,
.header,
.nav-link,
.form-control,
.btn,
.tour-card,
.modal-content,
.toast {
    transition: 
        background-color 250ms ease,
        color 250ms ease,
        border-color 250ms ease,
        box-shadow 250ms ease;
}

/* Disable transitions on page load */
body.no-transition,
body.no-transition * {
    transition: none !important;
}

