/**
 * Frontend Theme System CSS
 * 10 color themes for the entire website
 */

/* ===== CSS VARIABLES - THEME SYSTEM ===== */

/* Purple Dream (Default) */
:root, [data-theme="purple"] {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --primary-light: #8b9df7;
    --secondary: #764ba2;
    --accent: #f093fb;
    
    --bg-main: #f8f9fc;
    --bg-card: #ffffff;
    --bg-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-white: #ffffff;
    
    --border: #e2e8f0;
    --shadow: rgba(102, 126, 234, 0.15);
    --overlay: rgba(0, 0, 0, 0.5);
}

/* Ocean Blue */
[data-theme="blue"] {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #42a5f5;
    --secondary: #03A9F4;
    --accent: #4fc3f7;
    --bg-header: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    --shadow: rgba(33, 150, 243, 0.15);
}

/* Forest Green */
[data-theme="green"] {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #66bb6a;
    --secondary: #8BC34A;
    --accent: #a5d6a7;
    --bg-header: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    --shadow: rgba(76, 175, 80, 0.15);
}

/* Crimson Fire */
[data-theme="red"] {
    --primary: #f44336;
    --primary-dark: #c62828;
    --primary-light: #ef5350;
    --secondary: #e53935;
    --accent: #ff5252;
    --bg-header: linear-gradient(135deg, #f44336 0%, #c62828 100%);
    --shadow: rgba(244, 67, 54, 0.15);
}

/* Sakura Pink */
[data-theme="pink"] {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #ec407a;
    --secondary: #f06292;
    --accent: #f48fb1;
    --bg-header: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    --shadow: rgba(233, 30, 99, 0.15);
}

/* Sunset Orange */
[data-theme="orange"] {
    --primary: #ff9800;
    --primary-dark: #f57c00;
    --primary-light: #ffa726;
    --secondary: #ffb74d;
    --accent: #ffcc80;
    --bg-header: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    --shadow: rgba(255, 152, 0, 0.15);
}

/* Teal Wave */
[data-theme="teal"] {
    --primary: #009688;
    --primary-dark: #00796B;
    --primary-light: #26a69a;
    --secondary: #4db6ac;
    --accent: #80cbc4;
    --bg-header: linear-gradient(135deg, #009688 0%, #00796B 100%);
    --shadow: rgba(0, 150, 136, 0.15);
}

/* Deep Indigo */
[data-theme="indigo"] {
    --primary: #3f51b5;
    --primary-dark: #303F9F;
    --primary-light: #5c6bc0;
    --secondary: #7986cb;
    --accent: #9fa8da;
    --bg-header: linear-gradient(135deg, #3f51b5 0%, #303F9F 100%);
    --shadow: rgba(63, 81, 181, 0.15);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #bb86fc;
    --primary-dark: #9965f4;
    --primary-light: #d2b5ff;
    --secondary: #03dac6;
    --accent: #cf6679;
    
    --bg-main: #121212;
    --bg-card: #1e1e1e;
    --bg-header: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    --text-primary: #e1e1e1;
    --text-secondary: #a0a0a0;
    
    --border: #333333;
    --shadow: rgba(187, 134, 252, 0.15);
    --overlay: rgba(0, 0, 0, 0.8);
}

/* Royal Gold */
[data-theme="gold"] {
    --primary: #ffd700;
    --primary-dark: #daa520;
    --primary-light: #ffed4e;
    --secondary: #ffa000;
    --accent: #ffb300;
    --bg-header: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    --shadow: rgba(255, 215, 0, 0.15);
}

/* ===== GLOBAL STYLES ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.card-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
    color: var(--text-white);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-primary { background: var(--primary); color: white; }
.badge-success { background: #48bb78; color: white; }
.badge-danger { background: #f56565; color: white; }
.badge-warning { background: #ed8936; color: white; }

/* Grid */
.grid {
    display: grid;
    gap: 25px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* Rating Stars */
.stars {
    color: #fbbf24;
    font-size: 1rem;
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.card:hover .overlay {
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
