/**
 * Shop20 Themes CSS
 * 多主題樣式定義
 */

/* === 現代風格主題 === */
.theme-modern {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #ffffff;
    --body-color: #212529;
    --border-color: #dee2e6;
}

.theme-modern .navbar {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.theme-modern .hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-modern .btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
}

.theme-modern .btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.3);
}

/* === 經典風格主題 === */
.theme-classic {
    --primary-color: #004085;
    --secondary-color: #5a6268;
    --success-color: #155724;
    --danger-color: #721c24;
    --warning-color: #856404;
    --info-color: #0c5460;
    --light-color: #f8f9fa;
    --dark-color: #1d2124;
    --body-bg: #f8f9fa;
    --body-color: #212529;
    --border-color: #adb5bd;
}

.theme-classic {
    background-color: var(--body-bg);
    color: var(--body-color);
}

.theme-classic .navbar {
    background: var(--dark-color) !important;
    border-bottom: 3px solid var(--primary-color);
}

.theme-classic .hero-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.theme-classic .product-card {
    border: 2px solid var(--border-color);
    border-radius: 0;
}

.theme-classic .btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-classic .btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.theme-classic .section-title {
    font-family: Georgia, serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.theme-classic .feature-card {
    border: 1px solid var(--border-color);
    border-radius: 0;
}

/* === 暗黑風格主題 === */
.theme-dark {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --light-color: #2d3748;
    --dark-color: #1a202c;
    --body-bg: #121212;
    --body-color: #ffffff;
    --border-color: #374151;
    --card-bg: #1e293b;
}

.theme-dark {
    background-color: var(--body-bg);
    color: var(--body-color);
}

.theme-dark .navbar {
    background: rgba(26, 32, 44, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
}

.theme-dark .hero-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.theme-dark .product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--body-color);
}

.theme-dark .product-title a {
    color: var(--body-color);
}

.theme-dark .product-title a:hover {
    color: var(--primary-color);
}

.theme-dark .feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--body-color);
}

.theme-dark .features-section {
    background: var(--dark-color);
}

.theme-dark .modal-content {
    background: var(--card-bg);
    color: var(--body-color);
    border: 1px solid var(--border-color);
}

.theme-dark .form-control {
    background: var(--dark-color);
    border: 1px solid var(--border-color);
    color: var(--body-color);
}

.theme-dark .form-control:focus {
    background: var(--dark-color);
    border-color: var(--primary-color);
    color: var(--body-color);
}

.theme-dark .footer {
    background: var(--dark-color);
    border-top: 1px solid var(--border-color);
}

/* === 簡約風格主題 === */
.theme-minimalist {
    --primary-color: #495057;
    --secondary-color: #adb5bd;
    --success-color: #20c997;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --light-color: #ffffff;
    --dark-color: #212529;
    --body-bg: #ffffff;
    --body-color: #495057;
    --border-color: #e9ecef;
}

.theme-minimalist {
    background-color: var(--body-bg);
    color: var(--body-color);
}

.theme-minimalist .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.theme-minimalist .navbar-nav .nav-link {
    color: var(--body-color) !important;
    font-weight: 400;
}

.theme-minimalist .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.theme-minimalist .navbar-brand {
    color: var(--dark-color) !important;
    font-weight: 300;
    font-size: 1.75rem;
}

.theme-minimalist .hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.theme-minimalist .hero-content {
    color: var(--dark-color);
}

.theme-minimalist .hero-title {
    font-weight: 300;
    color: var(--dark-color);
    text-shadow: none;
}

.theme-minimalist .hero-subtitle {
    color: var(--body-color);
}

.theme-minimalist .product-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    transition: border-color 0.3s ease;
}

.theme-minimalist .product-card:hover {
    transform: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.theme-minimalist .section-title {
    font-weight: 300;
    color: var(--dark-color);
}

.theme-minimalist .section-title::after {
    background: var(--primary-color);
}

.theme-minimalist .btn-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 0;
    font-weight: 400;
    padding: 0.75rem 2rem;
}

.theme-minimalist .btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: none;
    box-shadow: none;
}

.theme-minimalist .feature-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
}

.theme-minimalist .feature-card:hover {
    transform: none;
    border-color: var(--primary-color);
    box-shadow: none;
}

.theme-minimalist .features-section {
    background: var(--light-color);
}

.theme-minimalist .flash-sale-badge,
.theme-minimalist .hot-badge {
    background: var(--primary-color);
    border-radius: 0;
    animation: none;
}

.theme-minimalist .countdown-timer {
    background: rgba(73, 80, 87, 0.9);
    border-radius: 0;
}

/* === 通用主題切換動畫 === */
.theme-modern,
.theme-classic,
.theme-dark,
.theme-minimalist {
    transition: background-color 0.5s ease, color 0.5s ease;
}

.theme-modern *,
.theme-classic *,
.theme-dark *,
.theme-minimalist * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* === 主題特定的 Swiper 樣式 === */
.theme-classic .swiper-button-next,
.theme-classic .swiper-button-prev {
    background: var(--primary-color);
    border-radius: 0;
}

.theme-classic .swiper-pagination-bullet {
    border-radius: 0;
    width: 15px;
    height: 5px;
}

.theme-dark .swiper-button-next,
.theme-dark .swiper-button-prev {
    background: var(--primary-color);
}

.theme-minimalist .swiper-button-next,
.theme-minimalist .swiper-button-prev {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.theme-minimalist .swiper-pagination-bullet {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.theme-minimalist .swiper-pagination-bullet-active {
    background: white;
    border-color: white;
}

/* === 主題選擇器樣式 === */
.theme-option {
    position: relative;
    padding-left: 2rem;
}

.theme-option.active::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    color: var(--success-color);
    font-weight: bold;
}

/* === 響應式主題調整 === */
@media (max-width: 768px) {
    .theme-classic .section-title {
        font-size: 1.75rem;
    }
    
    .theme-minimalist .navbar-brand {
        font-size: 1.5rem;
    }
    
    .theme-minimalist .hero-title {
        font-weight: 400;
    }
}

/* === 特殊效果和動畫 === */
.theme-modern .product-card:hover {
    animation: modernHover 0.3s ease;
}

@keyframes modernHover {
    0% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(-5px); }
}

.theme-classic .btn-primary {
    position: relative;
    overflow: hidden;
}

.theme-classic .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.theme-classic .btn-primary:hover::before {
    left: 100%;
}

.theme-dark .product-card {
    position: relative;
}

.theme-dark .product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.theme-dark .product-card:hover::before {
    opacity: 1;
} 