:root {
    --bg-color: #faf9f6;
    --text-color: #3b4550;
    --card-bg: #ffffff;
    --border-color: #ece9e0;
    --accent-blue: #708496;
    --accent-terracotta: #cca89e;
    --badge-bg: #f2efeb;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Very subtle warm gradient animation in background */
.background-animation {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(204, 168, 158, 0.05) 0%, transparent 60%),
        radial-gradient(circle at right, rgba(112, 132, 150, 0.05) 0%, transparent 50%);
    animation: slowDrift 30s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes slowDrift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(5%, 5%);
    }
}

.container {
    width: 100%;
    max-width: 500px;
    /* Mobile app size focus */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Nav */
.top-nav {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    position: absolute;
    /* Float above the hero */
    top: 0;
    right: 0;
    width: 100%;
    z-index: 10;
}

.language-switcher {
    font-size: 0.9rem;
    color: var(--accent-blue);
    display: flex;
    gap: 8px;
    background: rgba(250, 249, 246, 0.8);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.lang-btn {
    cursor: pointer;
    transition: 0.2s;
    font-weight: 400;
}

.lang-btn.active {
    font-weight: 600;
    color: var(--text-color);
}

.separator {
    opacity: 0.5;
}

/* Hero Screen (Mobile App Main Screen) */
.hero-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem 0.5rem;
    /* Drastically reduced vertical padding */
    min-height: auto;
    justify-content: center;
}

.hero-moon-container {
    width: 100%;
    max-width: 130px;
    /* Reduced further to ensure fit */
    height: 18vh;
    max-height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.8rem;
    /* Minimize space under moon */
}

.hero-moon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(226, 220, 200, 0.4));
    transition: all 1s ease-in-out;
}

.hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    /* Tighter gap */
    width: 100%;
}

.hero-date {
    font-size: 1.35rem;
    /* Slightly smaller text */
    font-weight: 500;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.hero-events {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.badge {
    background-color: var(--badge-bg);
    color: var(--accent-blue);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(112, 132, 150, 0.1);
}

.badge.puja {
    background-color: rgba(204, 168, 158, 0.15);
    color: #9e756a;
    border-color: rgba(204, 168, 158, 0.3);
}

.hero-description {
    font-size: 0.85rem;
    color: #5c6773;
    margin-top: 0.3rem;
    max-width: 95%;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: #a0abb6;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Upcoming Section */
.upcoming-section {
    padding: 0 1rem 1rem;
    /* very tight padding */
}

.upcoming-section h2 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.upcoming-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* minimal spacing between cards */
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    /* compressed card padding */
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 40px;
}

.upcoming-date-day {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

.upcoming-date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-top: 4px;
    font-weight: 600;
}

.upcoming-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.upcoming-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Adjust badge inside upcoming items to be smaller */
.upcoming-badges .badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
}

.upcoming-time {
    font-size: 0.8rem;
    color: #88929c;
}

/* Practice Details (Collapsible) */
.practice-details {
    margin: 0 1.5rem 2rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.practice-details summary {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    padding: 1.2rem;
    cursor: pointer;
    user-select: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.practice-details summary::after {
    content: "▼";
    font-size: 0.7rem;
    color: var(--accent-blue);
    transition: transform 0.3s;
}

.practice-details[open] summary::after {
    transform: rotate(180deg);
}

.practice-details[open] summary {
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-blue);
}

.practice-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem;
}

.practice-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}

.practice-badge {
    background-color: var(--bg-color);
    color: var(--accent-blue);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.practice-item p {
    font-size: 0.9rem;
    color: #5c6773;
    line-height: 1.4;
}

/* Widget Section */
.widget-section {
    margin: 0 1.5rem 2rem;
    padding: 1.8rem 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.widget-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
}

.widget-btn {
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
    transition: background 0.2s;
    box-shadow: 0 4px 10px rgba(112, 132, 150, 0.3);
}

.widget-btn:hover {
    background: #5a6a79;
}

.widget-info {
    font-size: 0.8rem;
    color: #88929c;
    line-height: 1.5;
}

/* Links Section */
.links-section {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 0 1.5rem 3rem;
}

.link-btn {
    text-decoration: none;
    color: var(--accent-blue);
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    transition: all var(--transition-speed);
    background: var(--card-bg);
    font-weight: 500;
}

.link-btn:hover {
    background: var(--bg-color);
    border-color: var(--accent-blue);
}