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

:root {
    --primary: #13ec5b;
    --gold: #FFD700;
    --background-light: #f6f8f6;
    --background-dark: #0a110d;
    --text-light: #0d1b12;
    --text-dark: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-dark);
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden;
}

/* Light Mode Styles */
html:not(.dark) body {
    background-color: var(--background-light);
    color: var(--text-light);
}

html:not(.dark) .container {
    background-color: var(--background-light);
    background-image:
        radial-gradient(at 10% 10%, rgba(19, 236, 91, 0.08) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(255, 215, 0, 0.08) 0px, transparent 50%);
}

html:not(.dark) .moon-icon {
    opacity: 0.15;
}

html:not(.dark) .subtitle {
    color: rgba(19, 236, 91, 0.9);
}

html:not(.dark) .target-year {
    color: rgba(13, 27, 18, 0.7);
}

html:not(.dark) .timer-value {
    color: var(--text-light);
}

html:not(.dark) .info-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 27, 18, 0.1);
}

html:not(.dark) .quote {
    color: rgba(13, 27, 18, 0.6);
}

html:not(.dark) .info-box {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(13, 27, 18, 0.1);
}

html:not(.dark) .info-text p {
    color: rgba(13, 27, 18, 0.7);
}

html:not(.dark) .info-text strong {
    color: rgba(13, 27, 18, 0.9);
}

html:not(.dark) .location-info {
    color: rgba(13, 27, 18, 0.5);
}

html:not(.dark) .theme-button {
    background: rgba(13, 27, 18, 0.05);
    border: 1px solid rgba(13, 27, 18, 0.1);
}

html:not(.dark) .theme-button:hover {
    background: rgba(13, 27, 18, 0.1);
}

html:not(.dark) .circular-ring {
    border: 1px solid rgba(13, 27, 18, 0.05);
}

html:not(.dark) .ring-inner {
    border: 1.5px solid rgba(19, 236, 91, 0.3);
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    padding: 2rem 1rem;
    background-color: var(--background-dark);
    background-image:
        radial-gradient(at 10% 10%, rgba(19, 236, 91, 0.05) 0px, transparent 50%),
        radial-gradient(at 90% 90%, rgba(255, 215, 0, 0.05) 0px, transparent 50%);
}

/* ===================================
   Background Elements
   =================================== */
.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.moon-icon {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%) rotate(-15deg);
    opacity: 0.15;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.2));
}

.moon-icon .material-symbols-outlined {
    font-size: 300px;
    color: var(--gold);
}

/* ===================================
   Main Content
   =================================== */
main {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 64rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===================================
   Brand / Logo
   =================================== */
.brand {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.logo {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(19, 236, 91, 0.4));
}

.brand-name {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ===================================
   Header Section
   =================================== */
header {
    margin-bottom: 3rem;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: rgba(19, 236, 91, 0.8);
    margin-bottom: 1rem;
}

.main-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    line-height: 1;
}

.target-year {
    font-size: 1.125rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ===================================
   Countdown Container
   =================================== */
.countdown-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Circular Ring */
.circular-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring-inner {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1.5px solid rgba(19, 236, 91, 0.2);
    filter: drop-shadow(0 0 8px rgba(19, 236, 91, 0.4));
}

.ring-svg {
    position: absolute;
    width: 300px;
    height: 300px;
    transform: rotate(-90deg);
}

.ring-progress {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(19, 236, 91, 0.4));
}

/* Timer Grid */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 1.5rem;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.05em;
    color: white;
    filter: drop-shadow(0 0 8px rgba(19, 236, 91, 0.4));
}

.timer-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(19, 236, 91, 0.6);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ===================================
   Message Area
   =================================== */
.message-area {
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(19, 236, 91, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(19, 236, 91, 0.3);
}

.message-area.hidden {
    display: none;
}

.ramadan-message {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.next-year-message {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   Info Card
   =================================== */
.info-card {
    width: 100%;
    max-width: 28rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lunar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(19, 236, 91, 0.8);
}

.progress-bar {
    height: 0.375rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    filter: drop-shadow(0 0 8px rgba(19, 236, 91, 0.4));
    width: 75%;
}

.quote {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

/* ===================================
   Educational Section
   =================================== */
.educational-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 42rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    text-align: left;
}

.info-box .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.info-text p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.info-text p:last-child {
    margin-bottom: 0;
}

.info-text strong {
    color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   Action Section
   =================================== */
.action-section {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.notify-button {
    background: var(--primary);
    color: var(--background-dark);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.notify-button:hover {
    background: rgba(19, 236, 91, 0.9);
    transform: translateY(-2px);
}

.notify-button .material-symbols-outlined {
    font-size: 1.25rem;
    transition: transform 0.3s;
}

.notify-button:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.location-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.location-info .material-symbols-outlined {
    font-size: 1.125rem;
}

.location-info span:last-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ===================================
   Theme Toggle
   =================================== */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 50;
}

.theme-button {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.theme-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-button .material-symbols-outlined {
    color: var(--primary);
}

/* ===================================
   Social Icons
   =================================== */
.social-icons {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.social-icons:hover {
    opacity: 1;
}

.social-icons a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary);
}

/* ===================================
   Responsive Design
   =================================== */
@media (min-width: 768px) {
    .subtitle {
        font-size: 1.875rem;
    }

    .main-title {
        font-size: 4.5rem;
    }

    .circular-ring {
        width: 440px;
        height: 440px;
    }

    .ring-inner {
        width: 420px;
        height: 420px;
    }

    .ring-svg {
        width: 420px;
        height: 420px;
    }

    .timer-grid {
        gap: 3rem;
    }

    .timer-value {
        font-size: 4.5rem;
    }

    .timer-label {
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .main-title {
        font-size: 6rem;
    }

    .social-icons {
        display: flex;
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 1s ease-out;
}

/* ===================================
   Ramadan Article Styles
   =================================== */
.ramadan-article {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    text-align: left;
    width: 100%;
    max-width: 840px;
    animation: fadeIn 1.2s ease-out;
}

.ramadan-article section {
    margin-bottom: 4rem;
}

.ramadan-article h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin: 3rem 0 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.ramadan-article h3 {
    font-size: 1.75rem;
    color: var(--primary);
    margin: 2.5rem 0 1.25rem;
    font-family: 'Playfair Display', serif;
}

.ramadan-article p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.ramadan-article blockquote {
    background: rgba(19, 236, 91, 0.08);
    border-left: 5px solid var(--primary);
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 0 1.5rem 1.5rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ramadan-article blockquote strong {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
}

.highlight-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.04) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 2.5rem;
    border-radius: 2rem;
    margin: 3rem 0;
    backdrop-filter: blur(10px);
}

.highlight-box strong {
    color: var(--gold);
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
}

.highlight-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-box li {
    font-size: 1.2rem;
    padding-left: 2.5rem;
    position: relative;
}

.highlight-box li::before {
    content: "🌙";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.table-container {
    overflow-x: auto;
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

th,
td {
    padding: 1.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    background: rgba(19, 236, 91, 0.12);
    color: var(--primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 800;
}

td {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
}

tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

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

.wish-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.25rem;
    border-radius: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wish-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    background: rgba(19, 236, 91, 0.06);
    box-shadow: 0 20px 40px rgba(19, 236, 91, 0.15);
}

.stages {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
}

.stage {
    background: rgba(19, 236, 91, 0.06);
    border: 1px solid rgba(19, 236, 91, 0.2);
    padding: 3rem;
    border-radius: 2rem;
    transition: transform 0.3s ease;
}

.stage:hover {
    transform: scale(1.02);
}

.faq-section {
    background: rgba(255, 255, 255, 0.04);
    padding: 4rem;
    border-radius: 2.5rem;
    margin-top: 6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item {
    margin-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--gold);
    font-size: 1.6rem;
}

/* Light Mode Adaptations */
html:not(.dark) .ramadan-article p {
    color: rgba(13, 27, 18, 0.8);
}

html:not(.dark) .table-container,
html:not(.dark) .wish-card,
html:not(.dark) .faq-section {
    background: rgba(13, 27, 18, 0.04);
    border-color: rgba(13, 27, 18, 0.15);
}

html:not(.dark) td {
    color: rgba(13, 27, 18, 0.8);
}

html:not(.dark) .stage {
    background: rgba(19, 236, 91, 0.08);
}

@media (max-width: 768px) {
    .ramadan-article h2 {
        font-size: 2rem;
    }

    .faq-section {
        padding: 2.5rem;
    }

    .stage {
        padding: 2rem;
    }
}