/* =========================================================
   ANNATHANAM LIST
   PREMIUM FINAL CSS
========================================================= */

:root {

    --cream: #FFF4E3;
    --cream-light: #FFF9F1;
    --cream-dark: #F0DEC3;

    --maroon: #7A1F2B;
    --maroon-dark: #5A121D;
    --maroon-deep: #3C080F;

    --orange: #D96B27;
    --orange-dark: #B84D18;

    --gold: #E5A72A;
    --gold-light: #F6D36F;

    --text: #3B2520;
    --muted: #78665D;
    --muted-light: #9A877C;

    --white: #FFFDF9;
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--cream);

    color: var(--text);

    font-family:
        "Noto Sans Tamil",
        "Nirmala UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


/* =========================================================
   PAGE
========================================================= */

.annathanam-list-page {

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #FFF4E3 0%,
            #F0DEC3 100%
        );
}


/* =========================================================
   HERO
========================================================= */

.list-hero {

    position: relative;

    min-height: 325px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 50% 0%,
            rgba(229,167,42,.18),
            transparent 32%
        ),

        radial-gradient(
            circle at 0% 100%,
            rgba(217,107,39,.12),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            #3C080F 0%,
            #7A1F2B 55%,
            #4C0C16 100%
        );
}


.hero-glow {

    position: absolute;

    width: 620px;
    height: 620px;

    top: -535px;
    left: 50%;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(246,211,111,.18),
            transparent 65%
        );
}


.hero-content {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 900px;

    padding: 65px 20px;
}


.hero-label {

    display: block;

    margin-bottom: 13px;

    color: var(--gold-light);

    font-family: Georgia, serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 5px;
}


.hero-symbol {

    margin-bottom: 7px;

    color: var(--gold);

    font-size: 22px;

    animation: glowSymbol 3s ease-in-out infinite;
}


@keyframes glowSymbol {

    0%,
    100% {
        opacity: .65;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}


.hero-content h1 {

    margin: 0;

    color: #FFFFFF;

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(36px, 5vw, 58px);

    font-weight: 800;

    line-height: 1.35;

    text-shadow:
        0 8px 25px
        rgba(0,0,0,.25);
}


.hero-english {

    display: block;

    margin-top: 8px;

    color:
        rgba(255,255,255,.68);

    font-family: Georgia, serif;

    font-size: 15px;

    letter-spacing: 1px;
}


.hero-line {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin: 20px 0;
}


.hero-line span {

    width: 45px;

    height: 2px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold)
        );
}


.hero-line span:last-child {

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}


.hero-line i {

    color: var(--gold);

    font-style: normal;

    font-size: 12px;
}


.hero-content p {

    max-width: 680px;

    margin: auto;

    color:
        rgba(255,255,255,.74);

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   CONTENT
========================================================= */

.list-content {

    padding:
        50px 4% 100px;
}


.list-container {

    width:
        min(1250px, 100%);

    margin: 0 auto;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-area {

    margin-bottom: 42px;
}


.back-button {

    position: relative;

    z-index: 100;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 10px 18px;

    border:
        1px solid
        rgba(122,31,43,.20);

    border-radius: 50px;

    background:
        rgba(255,255,255,.78);

    color: var(--maroon);

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    pointer-events: auto;

    box-shadow:
        0 7px 22px
        rgba(70,18,27,.06);

    transition:
        all .3s ease;
}


.back-button span {

    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--maroon);

    color: var(--gold);

    font-family: Arial, sans-serif;
}


.back-button:hover {

    transform: translateX(-5px);

    background: var(--maroon);

    color: #FFFFFF;

    border-color: var(--maroon);

    box-shadow:
        0 12px 30px
        rgba(70,18,27,.18);
}


.back-button:hover span {

    background: var(--gold);

    color: var(--maroon);
}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading {

    max-width: 850px;

    margin:
        0 auto 38px;

    text-align: center;
}


.heading-label {

    color: var(--orange);

    font-family: Georgia, serif;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 5px;
}


.page-heading h2 {

    margin:
        10px 0;

    color: var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size:
        clamp(30px, 4vw, 48px);

    font-weight: 800;

    line-height: 1.4;
}


.heading-decoration {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin: 15px 0;
}


.heading-decoration span {

    width: 42px;

    height: 2px;

    background: var(--gold);
}


.heading-decoration i {

    color: var(--gold);

    font-style: normal;

    font-size: 12px;
}


.page-heading p {

    max-width: 720px;

    margin: auto;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   FILTER
========================================================= */

.filter-bar {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 42px;

    flex-wrap: wrap;
}


.filter-btn {

    padding:
        10px 20px;

    border:
        1px solid
        rgba(122,31,43,.18);

    border-radius: 50px;

    background:
        rgba(255,255,255,.78);

    color: var(--maroon);

    cursor: pointer;

    font-family: inherit;

    font-size: 12px;

    font-weight: 700;

    transition: all .3s ease;
}


.filter-btn:hover,
.filter-btn.active {

    background: var(--maroon);

    color: #FFFFFF;

    border-color: var(--maroon);

    box-shadow:
        0 8px 22px
        rgba(122,31,43,.18);
}


/* =========================================================
   GROUP
========================================================= */

.annathanam-group {

    margin-bottom: 65px;
}


.annathanam-group.hidden {

    display: none;
}


/* =========================================================
   GROUP TITLE
========================================================= */

.group-title {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;

    padding: 16px 20px;

    border:
        1px solid
        rgba(122,31,43,.12);

    border-radius: 15px;

    background:
        rgba(255,255,255,.68);

    box-shadow:
        0 8px 25px
        rgba(70,18,27,.05);
}


.group-icon {

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #FFFFFF;

    font-size: 21px;
}


.day-icon {

    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--gold)
        );
}


.night-icon {

    background:
        linear-gradient(
            135deg,
            var(--maroon-deep),
            var(--maroon)
        );
}


.group-title-text {

    flex: 1;
}


.group-title-text span {

    color: var(--orange);

    font-family: Georgia, serif;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 3px;
}


.group-title-text h3 {

    margin: 3px 0 0;

    color: var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size: 22px;

    font-weight: 800;
}


.group-count {

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--cream);

    color: var(--maroon);

    font-family: Georgia, serif;

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   LIST
========================================================= */

.list-items {

    display: flex;

    flex-direction: column;

    gap: 13px;
}


/* =========================================================
   LIST ITEM
========================================================= */

.annathanam-item {

    position: relative;

    display: grid;

    grid-template-columns:
        55px
        150px
        minmax(0,1fr)
        45px;

    align-items: center;

    min-height: 150px;

    overflow: hidden;

    border:
        1px solid
        rgba(122,31,43,.12);

    border-radius: 17px;

    background:
        rgba(255,255,255,.86);

    box-shadow:
        0 7px 25px
        rgba(70,18,27,.06);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.annathanam-item::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 4px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            var(--maroon),
            var(--orange),
            var(--gold)
        );
}


.night-item::before {

    background:
        linear-gradient(
            180deg,
            var(--maroon-deep),
            var(--maroon),
            var(--gold)
        );
}


.annathanam-item:hover {

    transform: translateX(5px);

    border-color:
        rgba(229,167,42,.48);

    box-shadow:
        0 15px 38px
        rgba(70,18,27,.12);
}


/* =========================================================
   NUMBER
========================================================= */

.item-number {

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--maroon);

    font-family: Georgia, serif;

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   PHOTO
========================================================= */

.item-photo {

    position: relative;

    width: 120px;
    height: 115px;

    overflow: hidden;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--maroon-deep),
            var(--maroon)
        );

    box-shadow:
        0 6px 18px
        rgba(60,8,15,.15);
}


.item-photo img {

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease;
}


.annathanam-item:hover
.item-photo img {

    transform: scale(1.07);
}


.photo-shade {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(60,8,15,.22),
            transparent
        );

    pointer-events: none;
}


/* =========================================================
   DETAILS
========================================================= */

.item-details {

    padding:
        18px 25px;
}


.item-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}


.item-label {

    color: var(--orange);

    font-family: Georgia, serif;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 2px;
}


.time-tag {

    display: inline-flex;

    align-items: center;

    padding: 6px 11px;

    border-radius: 50px;

    font-size: 9px;

    font-weight: 700;

    white-space: nowrap;
}


.day-tag {

    background: #FFF1DD;

    color: var(--orange);
}


.night-tag {

    background: #F4E5E7;

    color: var(--maroon);
}


.item-details h4 {

    margin:
        0 0 13px;

    color: var(--maroon);

    font-family:
        "Noto Serif Tamil",
        "Nirmala UI",
        serif;

    font-size: 19px;

    font-weight: 800;

    line-height: 1.55;
}


/* =========================================================
   DETAILS ROW
========================================================= */

.details-row {

    display: flex;

    align-items: center;

    gap: 35px;
}


.detail {

    display: flex;

    align-items: center;

    gap: 9px;
}


.detail-icon {

    width: 32px;
    height: 32px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: var(--cream);

    font-size: 13px;
}


.detail small {

    display: block;

    margin-bottom: 2px;

    color: var(--muted-light);

    font-size: 8px;
}


.detail strong {

    color: var(--text);

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   ARROW
========================================================= */

.item-arrow {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-right: 15px;

    border-radius: 50%;

    background: var(--maroon);

    color: var(--gold-light);

    font-family: Arial, sans-serif;

    font-size: 17px;

    transition: all .3s ease;
}


.annathanam-item:hover
.item-arrow {

    transform:
        translateX(5px);

    background: var(--orange);

    color: #FFFFFF;
}


/* =========================================================
   IMAGE ERROR
========================================================= */

.item-photo.image-missing {

    background:
        radial-gradient(
            circle,
            rgba(229,167,42,.18),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            var(--maroon-deep),
            var(--maroon)
        );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 950px) {

    .annathanam-item {

        grid-template-columns:
            45px
            125px
            minmax(0,1fr)
            40px;
    }


    .item-photo {

        width: 105px;
        height: 105px;
    }


    .item-details {

        padding:
            16px 18px;
    }


    .item-details h4 {

        font-size: 17px;
    }


    .details-row {

        gap: 18px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .list-content {

        padding:
            40px 15px 70px;
    }


    .list-hero {

        min-height:
            285px;
    }


    .hero-content {

        padding:
            50px 18px;
    }


    .hero-content h1 {

        font-size:
            31px;
    }


    .hero-content p {

        font-size:
            13px;
    }


    .group-title {

        padding:
            14px;
    }


    .group-icon {

        width: 43px;
        height: 43px;
    }


    .group-title-text h3 {

        font-size:
            18px;
    }


    /* LIST */

    .annathanam-item {

        grid-template-columns:
            38px
            95px
            minmax(0,1fr);

        padding:
            12px 10px 12px 0;
    }


    .item-number {

        align-self:
            flex-start;

        padding-top:
            9px;
    }


    .item-photo {

        width:
            88px;

        height:
            95px;

        align-self:
            flex-start;
    }


    .item-details {

        padding:
            4px 9px;
    }


    .item-top {

        display:
            block;
    }


    .item-label {

        display:
            block;

        margin-bottom:
            6px;
    }


    .time-tag {

        padding:
            5px 8px;

        font-size:
            8px;
    }


    .item-details h4 {

        margin-bottom:
            10px;

        font-size:
            15px;
    }


    .details-row {

        display:
            block;
    }


    .detail {

        margin-bottom:
            7px;
    }


    .detail-icon {

        width:
            27px;

        height:
            27px;
    }


    .item-arrow {

        display:
            none;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .hero-content h1 {

        font-size:
            29px;
    }


    .group-title-text h3 {

        font-size:
            16px;
    }


    .annathanam-item {

        grid-template-columns:
            31px
            82px
            minmax(0,1fr);
    }


    .item-photo {

        width:
            75px;

        height:
            88px;
    }


    .item-details {

        padding-left:
            7px;
    }


    .item-details h4 {

        font-size:
            14px;
    }


    .detail strong {

        font-size:
            10px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        animation: none !important;

        transition: none !important;
    }
}