/* HijriTodayDate.com Modern Styles */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-color: #1f2937;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background: var(--gradient);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.site-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.025em;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.date-display {
    margin-bottom: 3rem;
    text-align: center;
}

.hijri-date-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hijri-day {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hijri-month-year {
    text-align: right;
    min-width: 200px;
}

.hijri-month {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.hijri-year {
    font-size: 1.8rem;
    opacity: 0.8;
    color: var(--secondary-color);
    font-weight: 600;
}

.gregorian-date-small {
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.8);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.gregorian-date.arabic {
    display: none;
}

.current-time-display {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 1rem;
    color: var(--accent-color);
}

.month-description {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
}

.month-description h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.month-description .description-ar {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.month-description .description-en {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
    margin-bottom: 1rem;
    color: #6b7280;
}

.significance {
    font-size: 0.95rem;
    color: var(--success-color);
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

/* Calendar Info Section */
.calendar-info {
    padding: 5rem 0;
    background: var(--card-bg);
}

.calendar-info h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.info-card {
    padding: 2.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
}

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

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.info-card p {
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Lunar Months Section */
.lunar-months {
    padding: 5rem 0;
    background: var(--light-bg);
}

.lunar-months h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    font-weight: 700;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.month-card {
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.month-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.month-card:hover::before {
    transform: scaleX(1);
}

.month-card.current-month {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.month-card.current-month::before {
    background: var(--gradient);
    transform: scaleX(1);
}

.month-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.month-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.english-name {
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 1rem;
    font-weight: 400;
}

.month-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

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

.footer-content p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }

    .hijri-date-large {
        flex-direction: column;
        gap: 2rem;
    }

    .hijri-day {
        font-size: 4rem;
    }

    .hijri-month {
        font-size: 2rem;
    }

    .hijri-year {
        font-size: 1.5rem;
    }

    .calendar-info h2,
    .lunar-months h2 {
        font-size: 2rem;
    }

    .months-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .month-description {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hijri-day {
        font-size: 3.5rem;
    }

    .hijri-month {
        font-size: 1.8rem;
    }

    .months-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 0;
    }

    .calendar-info,
    .lunar-months {
        padding: 3rem 0;
    }
}

/* Arabic text improvements */
[dir="rtl"] {
    text-align: right;
}

.description-en {
    direction: ltr;
    text-align: left;
}

/* Smooth animations */
* {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.month-card:focus,
.info-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

.month-card,
.info-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.month-card:nth-child(1) { animation-delay: 0.1s; }
.month-card:nth-child(2) { animation-delay: 0.2s; }
.month-card:nth-child(3) { animation-delay: 0.3s; }
.month-card:nth-child(4) { animation-delay: 0.4s; }
.month-card:nth-child(5) { animation-delay: 0.5s; }
.month-card:nth-child(6) { animation-delay: 0.6s; }
.month-card:nth-child(7) { animation-delay: 0.7s; }
.month-card:nth-child(8) { animation-delay: 0.8s; }
.month-card:nth-child(9) { animation-delay: 0.9s; }
.month-card:nth-child(10) { animation-delay: 1.0s; }
.month-card:nth-child(11) { animation-delay: 1.1s; }
.month-card:nth-child(12) { animation-delay: 1.2s; }
