/* main-styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #ff8c42;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --success: #38b000;
    --warning: #ffd166;
    --danger: #e63946;
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 20px;
    --border-radius-sm: 10px;
    --border-radius-lg: 30px;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--dark);
    min-height: 100vh;
    padding-bottom: 40px;
    line-height: 1.6;
}

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

/* ========== NAVIGATION ========== */
.main-nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid var(--accent);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.nav-logo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.nav-links {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    border-radius: 50px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.nav-link::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: var(--transition);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--accent), #ff6b21);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

/* ========== HEADER ========== */
.daily-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.3);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.daily-header::before {
    content: "📅✨🌟";
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    right: -50px;
    top: 20px;
    animation: float 20s infinite linear;
}

.daily-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), #ff6b21);
}

@keyframes float {
    0% { transform: translateX(0) rotate(0deg); }
    100% { transform: translateX(-100px) rotate(360deg); }
}

.daily-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.daily-header p {
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.2s both;
}

.today-date {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1.2s ease 0.4s both;
}

/* ========== FACT COUNTER ========== */
.fact-counter {
    text-align: center;
    margin: 20px 0;
    color: white;
    font-size: 1.2rem;
    animation: fadeInUp 1.4s ease 0.6s both;
}

.counter-number {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    margin: 0 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ========== CATEGORY FILTER ========== */
.category-filter {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    margin: 20px 0 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.filter-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), #ff6b21);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

/* ========== DAILY FACT CONTAINER ========== */
.daily-fact-container {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    position: relative;
    animation: fadeIn 0.8s ease;
}

.fact-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fact-header::before {
    content: "🧠";
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    right: -50px;
    top: -50px;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.fact-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.fact-category {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 10px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.fact-content {
    padding: 50px;
    text-align: center;
    position: relative;
}

.fact-icon {
    font-size: 8rem;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0) scale(1); 
    }
    50% { 
        transform: translateY(-20px) scale(1.1); 
    }
}

.fact-text {
    font-size: 1.8rem;
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 40px;
    font-weight: 500;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.fun-fact {
    background: linear-gradient(135deg, #ffd166, #ff9e6d);
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px auto;
    text-align: right;
    border-right: 8px solid var(--accent);
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.2);
    position: relative;
    overflow: hidden;
}

.fun-fact::before {
    content: "💡";
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    left: -30px;
    top: -30px;
}

.fun-fact h3 {
    color: #d35400;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fun-fact p {
    font-size: 1.4rem;
    color: #7d3c00;
    font-weight: 500;
    line-height: 1.6;
}

/* ========== FACT META ========== */
.fact-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.meta-item {
    background: #f8f9fa;
    padding: 15px 25px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: var(--transition);
    min-width: 180px;
    justify-content: center;
}

.meta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.meta-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ========== ACTION BUTTONS ========== */
.action-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.favorite-btn, .share-mini-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    min-width: 140px;
    justify-content: center;
}

.favorite-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.favorite-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.share-mini-btn {
    background: linear-gradient(135deg, #25D366, #1ebe5c);
    color: white;
}

.share-mini-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* ========== SHARE SECTION ========== */
.share-section {
    background: linear-gradient(135deg, var(--success), #2e8b57);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(56, 176, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.share-section::before {
    content: "📤";
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    right: -50px;
    top: -30px;
}

.share-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.share-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.share-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.share-btn:hover::before {
    left: 100%;
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366, #1ebe5c);
    color: white;
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #0d65d9);
    color: white;
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0c85d0);
    color: white;
}

.share-btn.copy {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* ========== EXPLORE SECTION ========== */
.explore-section {
    background: linear-gradient(135deg, #ff8c42, #ff6b21);
    color: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 140, 66, 0.3);
    position: relative;
    overflow: hidden;
}

.explore-section::before {
    content: "🔍";
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    right: -50px;
    top: -30px;
}

.explore-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.explore-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.category-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========== STATISTICS ========== */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px;
    box-shadow: 0 15px 35px rgba(106, 17, 203, 0.3);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: "📊";
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    right: -50px;
    top: -30px;
}

.stats-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

/* ========== PREVIOUS DAYS ========== */
.previous-days {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    position: relative;
}

.previous-days h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.day-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: var(--transition);
}

.day-card:hover::before {
    left: 100%;
}

.day-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(106, 17, 203, 0.2);
}

.day-number {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.day-date {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 50px;
}

.day-fact {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 15px;
}

.day-category {
    background: linear-gradient(135deg, #e6f3e6, #c8e6c9);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--success);
    display: inline-block;
    font-weight: 500;
}

/* ========== NEW FACT BUTTON ========== */
.new-fact-btn {
    display: block;
    margin: 40px auto;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--accent), #ff6b21);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.4);
    position: relative;
    overflow: hidden;
}

.new-fact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: var(--transition);
}

.new-fact-btn:hover::before {
    left: 100%;
}

.new-fact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 140, 66, 0.6);
}

/* ========== NOTIFICATION ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--success), #2e8b57);
    color: white;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(56, 176, 0, 0.3);
    z-index: 10000;
    animation: slideIn 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
    border-left: 5px solid rgba(255, 255, 255, 0.5);
}

.notification.success {
    background: linear-gradient(135deg, var(--success), #2e8b57);
}

.notification.info {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.notification.warning {
    background: linear-gradient(135deg, var(--warning), #ffaa33);
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOut {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* ========== LOADING ========== */
.loading {
    text-align: center;
    padding: 100px;
    color: white;
}

.loading i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== SCROLL ANIMATIONS ========== */
.scroll-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animation.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .container, .nav-container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .daily-header h1 {
        font-size: 2.8rem;
    }
    
    .fact-text {
        font-size: 1.5rem;
    }
    
    .fact-icon {
        font-size: 6rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        width: 100%;
        overflow-x: auto;
        padding: 10px;
        justify-content: flex-start;
    }
    
    .nav-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .daily-header h1 {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 15px;
    }
    
    .daily-header p {
        font-size: 1.2rem;
        padding: 0 20px;
    }
    
    .fact-content {
        padding: 30px;
    }
    
    .fact-title {
        flex-direction: column;
        gap: 15px;
        font-size: 2rem;
    }
    
    .fact-text {
        font-size: 1.3rem;
        padding: 0 10px;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .days-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .category-filter {
        padding: 15px;
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .explore-section .category-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .explore-section .category-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .daily-header {
        padding: 40px 0;
    }
    
    .daily-header h1 {
        font-size: 1.8rem;
    }
    
    .daily-header p {
        font-size: 1rem;
    }
    
    .today-date {
        padding: 12px 24px;
        font-size: 1.1rem;
    }
    
    .fact-header {
        padding: 30px 20px;
    }
    
    .fact-category {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .fact-text {
        font-size: 1.2rem;
    }
    
    .fun-fact {
        padding: 20px;
    }
    
    .fun-fact p {
        font-size: 1.1rem;
    }
    
    .fact-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .meta-item {
        width: 100%;
        max-width: 300px;
    }
    
    .share-section,
    .explore-section,
    .stats-section,
    .previous-days {
        padding: 30px 20px;
    }
    
    .new-fact-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
        width: 90%;
    }
    
    .notification {
        max-width: calc(100% - 40px);
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .main-nav,
    .new-fact-btn,
    .share-section,
    .explore-section,
    .category-filter {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .daily-header {
        background: white;
        color: black;
        box-shadow: none;
        border-bottom: 2px solid black;
    }
    
    .daily-fact-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .fact-header {
        background: #f0f0f0;
        color: black;
    }
    
    .stat-card,
    .day-card {
        break-inside: avoid;
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1a1a2e;
        --dark: #e6e6e6;
        --card-bg: #16213e;
    }
    
    body {
        background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    }
    
    .daily-fact-container,
    .previous-days {
        background: var(--card-bg);
    }
    
    .fact-text,
    .day-fact {
        color: var(--dark);
    }
    
    .meta-item {
        background: #0f3460;
        border-color: #1a1a2e;
    }
    
    .day-card {
        background: linear-gradient(135deg, #0f3460, #1a1a2e);
    }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent), #ff6b21);
}

/* ========== SELECTION STYLES ========== */
::selection {
    background: rgba(106, 17, 203, 0.3);
    color: white;
}

::-moz-selection {
    background: rgba(106, 17, 203, 0.3);
    color: white;
}

/* ========== FOCUS STYLES ========== */
:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1001;
    transition: width 0.3s ease;
}

/* ========== HOVER EFFECTS ========== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

/* ========== BADGE STYLES ========== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, var(--success), #2e8b57);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning), #ffaa33);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger), #c1121f);
    color: white;
}

/* ========== CARD HOVER ANIMATIONS ========== */
.card-hover {
    position: relative;
    overflow: hidden;
}

.card-hover::after {
    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;
}

.card-hover:hover::after {
    left: 100%;
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ========== PULSE ANIMATION ========== */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 66, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 140, 66, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 140, 66, 0);
    }
}

/* ========== FLOATING ELEMENTS ========== */
.float {
    animation: float 6s ease-in-out infinite;
}

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

/* ========== TYPOGRAPHY ========== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.p-4 { padding: 40px; }
.p-5 { padding: 50px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }
.gap-4 { gap: 40px; }

.rounded { border-radius: var(--border-radius); }
.rounded-sm { border-radius: var(--border-radius-sm); }
.rounded-lg { border-radius: var(--border-radius-lg); }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: 0 4px 15px var(--shadow); }
.shadow-lg { box-shadow: 0 10px 30px var(--shadow-dark); }
.shadow-none { box-shadow: none; }

.border { border: 2px solid rgba(255, 255, 255, 0.2); }
.border-primary { border-color: var(--primary); }
.border-success { border-color: var(--success); }
.border-warning { border-color: var(--warning); }
.border-danger { border-color: var(--danger); }

.bg-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.bg-success { background: linear-gradient(135deg, var(--success), #2e8b57); }
.bg-warning { background: linear-gradient(135deg, var(--warning), #ffaa33); }
.bg-danger { background: linear-gradient(135deg, var(--danger), #c1121f); }
.bg-accent { background: linear-gradient(135deg, var(--accent), #ff6b21); }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }
.text-white { color: white; }
.text-dark { color: var(--dark); }

.font-small { font-size: 0.875rem; }
.font-normal { font-size: 1rem; }
.font-large { font-size: 1.25rem; }
.font-xl { font-size: 1.5rem; }
.font-xxl { font-size: 2rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-100 { opacity: 1; }

.pointer { cursor: pointer; }
.not-allowed { cursor: not-allowed; }
.grab { cursor: grab; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }
.position-sticky { position: sticky; }

.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }
.z-999 { z-index: 999; }
.z-1000 { z-index: 1000; }

.transition { transition: var(--transition); }
.transition-fast { transition: all 0.15s ease; }
.transition-slow { transition: all 0.5s ease; }

.hidden { display: none; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }