/* CSS Variables for Theme */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #e1e8ed;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --career-color: #3498db;
    --love-color: #e74c3c;
    --finance-color: #2ecc71;
    --health-color: #f39c12;
}

[data-theme="dark"] {
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --text-primary: #eaeaea;
    --text-secondary: #a0a0a0;
    --border-color: #2d3748;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.zodiac-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Overview Card */
.overview-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary-color);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    color: var(--primary-color);
    width: 32px;
    height: 32px;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.overview-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mood-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mood-label {
    font-weight: 600;
    color: var(--text-primary);
}

.mood-bar {
    flex: 1;
    height: 12px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.mood-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 1s ease;
}

.mood-value {
    font-weight: 600;
    color: var(--primary-color);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card.career { border-left-color: var(--career-color); }
.stat-card.love { border-left-color: var(--love-color); }
.stat-card.finance { border-left-color: var(--finance-color); }
.stat-card.health { border-left-color: var(--health-color); }

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stat-card.career .stat-icon {
    background: rgba(52, 152, 219, 0.1);
    color: var(--career-color);
}

.stat-card.love .stat-icon {
    background: rgba(231, 76, 60, 0.1);
    color: var(--love-color);
}

.stat-card.finance .stat-icon {
    background: rgba(46, 204, 113, 0.1);
    color: var(--finance-color);
}

.stat-card.health .stat-icon {
    background: rgba(243, 156, 18, 0.1);
    color: var(--health-color);
}

.stat-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.rating {
    margin-bottom: 0.5rem;
}

.star {
    color: #f39c12;
    font-size: 1.2rem;
}

.star.empty {
    color: var(--border-color);
}

.stat-value {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.chart-card canvas {
    margin-top: 1.5rem;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-header i {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
}

.detail-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.detail-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Tarot Section */
.tarot-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.tarot-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.card-visual {
    background: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid #ff9a76;
}

.card-symbol {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
}

.card-visual h3 {
    font-size: 1.5rem;
    color: #c0392b;
}

.tarot-meaning p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Lucky Section */
.lucky-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.lucky-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    color: white;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.lucky-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.lucky-item i {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.lucky-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.lucky-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Tips Section */
.tips-section {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.tip-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.tip-card i {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.tip-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    opacity: 0.8;
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .tarot-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .stats-grid,
    .details-grid,
    .lucky-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .header-actions,
    .btn-icon {
        display: none;
    }
    
    .main-content {
        padding: 0;
    }
    
    .stat-card:hover,
    .detail-card:hover,
    .lucky-item:hover,
    .tip-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    @page {
        margin: 0.5in;
        @top-center {
            content: "Pisces Horoscope Dashboard - November 10, 2025";
        }
        @bottom-center {
            content: "Created by Helium";
        }
    }
}