/* Vatsalya 2026 results page */
:root {
    --vs-plum: #4a1238;
    --vs-plum-2: #6b1d50;
    --vs-plum-3: #8e2c66;
    --vs-rose: #a8467a;
    --vs-ink: #2a1024;
    --vs-text: #2b1d28;
    --vs-muted: #786b74;
    --vs-line: #efe6ea;
    --vs-field: #ddd0d7;
    --vs-gold: #f2a91a;
    --vs-bg: #faf6f2;
    --vs-tint: #fbeef4;
}

body.vs-results {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: var(--vs-bg);
    color: var(--vs-text);
}

/* ---------- Hero ---------- */
.vs-hero {
    position: relative;
    background:
        radial-gradient(circle at 12% 18%, rgba(242, 169, 26, .22) 0, transparent 38%),
        radial-gradient(circle at 88% 8%, rgba(226, 104, 160, .35) 0, transparent 45%),
        linear-gradient(120deg, var(--vs-plum) 0%, var(--vs-plum-2) 55%, var(--vs-plum-3) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.vs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.2px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 28%, transparent 72%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0, transparent 28%, transparent 72%, #000 100%);
    pointer-events: none;
}

.vs-hero-inner {
    position: relative;
    padding: clamp(36px, 3.4vw, 64px) 16px 8px;
}

.vs-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.vs-badge .fa {
    color: var(--vs-gold);
}

.vs-title {
    margin: 18px 0 0;
    font-family: 'Cormorant Upright', serif;
    font-weight: 700;
    font-size: clamp(34px, 4vw, 66px);
    line-height: 1.1;
    color: #fff;
}

.vs-title-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px auto 0;
    color: var(--vs-gold);
    font-size: 13px;
}

.vs-title-bar span {
    width: 48px;
    height: 3px;
    border-radius: 3px;
    background: var(--vs-gold);
}

.vs-subtitle {
    margin: 16px auto 0;
    font-size: 17px;
    line-height: 1.5;
    white-space: nowrap;
    opacity: .95;
}

/* ---------- Before-search prompt ---------- */
.vs-prompt {
    margin-top: 24px;
    padding: 46px 20px 48px;
    text-align: center;
    background: linear-gradient(180deg, #fdf9fb 0%, #fff 30%);
    border: 1px dashed #e0cfd7;
    border-radius: 14px;
}

.vs-prompt-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vs-tint);
    color: var(--vs-plum-3);
    font-size: 24px;
}

.vs-prompt-title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--vs-text);
}

.vs-prompt-text {
    max-width: 450px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.55;
    color: var(--vs-muted);
}

.vs-wave {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(70px, 9vw, 150px);
    margin-top: 16px;
    margin-bottom: -1px;
}

/* ---------- Layout ---------- */
.vs-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
}

.vs-main {
    position: relative;
    z-index: 2;
    margin-top: calc(-1 * clamp(40px, 6vw, 110px));
    padding-bottom: 56px;
}

.vs-card {
    background: #fff;
    border: 1px solid var(--vs-line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(74, 18, 56, .07);
}

/* ---------- Search card ---------- */
.vs-search {
    padding: 22px 24px 24px;
}

.vs-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.vs-search .vs-card-head {
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--vs-line);
}

.vs-card-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 700;
    color: var(--vs-text);
}

.vs-card-title .fa {
    color: var(--vs-plum-3);
    font-size: 18px;
}

.vs-card-hint {
    font-size: 13px;
    color: var(--vs-muted);
}

.vs-filters {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 110px;
    gap: 16px;
    align-items: end;
}

.vs-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vs-text);
}

.vs-input,
.vs-select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--vs-field);
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: var(--vs-text);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.vs-input-wrap {
    position: relative;
}

.vs-input-wrap .fa {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b5a66;
    font-size: 15px;
}

.vs-input {
    padding-left: 38px;
}

.vs-select {
    padding-right: 34px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23555' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    text-overflow: ellipsis;
}

.vs-select.is-empty {
    color: #8f838b;
}

.vs-select option {
    color: var(--vs-text);
}

.vs-input:focus,
.vs-select:focus {
    border-color: var(--vs-plum-3);
    box-shadow: 0 0 0 3px rgba(142, 44, 102, .14);
}

.vs-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: var(--vs-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}

.vs-reset .fa {
    font-size: 15px;
}

.vs-reset:hover,
.vs-reset.is-active {
    background: var(--vs-plum-3);
}

.vs-reset:focus-visible,
.vs-view-btn:focus-visible {
    outline: 3px solid rgba(242, 169, 26, .6);
    outline-offset: 2px;
}

/* ---------- Stats ---------- */
.vs-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 24px 0;
}

.vs-stats.has-5 {
    grid-template-columns: repeat(5, 1fr);
}

.vs-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.vs-stat-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.vs-stat-icon.total  { background: var(--vs-tint); color: var(--vs-plum-3); }
.vs-stat-icon.first  { background: #fdf3d6; color: #d4a106; }
.vs-stat-icon.second { background: #eef0f3; color: #8a94a6; }
.vs-stat-icon.third  { background: #f8e6dc; color: #b8652e; }
.vs-stat-icon.consolation { background: #def4e8; color: #23845a; }

.vs-stat-num {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--vs-text);
}

.vs-stat-label {
    margin-top: 4px;
    font-size: 13px;
    color: var(--vs-muted);
}

/* ---------- Winners list ---------- */
.vs-list {
    overflow: hidden;
}

.vs-list .vs-card-head {
    padding: 18px 22px;
}

.vs-count {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--vs-tint);
    color: var(--vs-plum-2);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.vs-table-wrap {
    overflow-x: auto;
}

.vs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.vs-table thead tr {
    background: linear-gradient(90deg, var(--vs-plum) 0%, var(--vs-plum-2) 50%, var(--vs-rose) 100%);
}

.vs-table thead th {
    padding: 16px 20px;
    background: transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: left;
}

.vs-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid #f3ecef;
    vertical-align: middle;
}

.vs-table tbody tr:last-child td {
    border-bottom: 0;
}

.vs-table tbody tr:hover td {
    background: #fdf8fa;
}

.vs-table .col-index {
    width: 56px;
    color: var(--vs-muted);
    font-weight: 600;
}

.vs-table .col-name {
    min-width: 260px;
}

.vs-table .col-event {
    min-width: 180px;
    color: #4a3a45;
}

.vs-table .col-nowrap {
    white-space: nowrap;
}

.vs-person {
    font-weight: 600;
    white-space: nowrap;
    color: var(--vs-text);
}

.vs-amp {
    display: inline-block;
    margin: 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: var(--vs-rose);
}

.vs-cat {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--vs-tint);
    color: var(--vs-plum-2);
    font-size: 12.5px;
    font-weight: 600;
}

.vs-results mark {
    padding: 0 1px;
    background: #ffe9a8;
    border-radius: 2px;
    color: inherit;
}

.vs-empty td {
    padding: 44px 20px !important;
    text-align: center;
    color: #5b4b56;
    font-size: 15px;
}

.vs-award {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.vs-award.rank-1 { background: #fff4d1; color: #8a6000; border: 1px solid #f1d98a; }
.vs-award.rank-2 { background: #eceff4; color: #4b5565; border: 1px solid #d3d8e1; }
.vs-award.rank-3 { background: #f9e3d4; color: #93461a; border: 1px solid #ecc3a6; }
.vs-award.rank-4 { background: #e2f5ea; color: #1d6e48; border: 1px solid #b7e2c9; }

/* ---------- List / Grid toggle ---------- */
.vs-head-tools {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vs-view-toggle {
    display: inline-flex;
    padding: 4px;
    gap: 2px;
    border: 1px solid var(--vs-line);
    border-radius: 10px;
    background: #f6eff2;
}

.vs-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--vs-muted);
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, color .15s, box-shadow .15s;
}

.vs-view-btn:hover {
    color: var(--vs-text);
}

.vs-view-btn.is-active {
    background: #fff;
    color: var(--vs-plum-3);
    box-shadow: 0 1px 4px rgba(74, 18, 56, .14);
}

.vs-swipe-hint {
    display: none;
    padding: 0 16px 10px;
    text-align: right;
    font-size: 12px;
    color: var(--vs-muted);
}

.vs-swipe-hint .fa {
    margin-right: 4px;
}

/* ---------- Grid view ---------- */
.vs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
    padding: 20px 22px 24px;
    border-top: 1px solid var(--vs-line);
    background: #fcf9f7;
}

.vs-grid.d-none {
    display: none;
}

.vs-gcard {
    display: flex;
    flex-direction: column;
    padding: 16px 16px 14px;
    background: #fff;
    border: 1px solid var(--vs-line);
    border-top: 4px solid #d8c9d1;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(74, 18, 56, .05);
    transition: transform .15s, box-shadow .15s;
}

.vs-gcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(74, 18, 56, .1);
}

.vs-gcard.rank-1 { border-top-color: #e0b100; }
.vs-gcard.rank-2 { border-top-color: #9aa3b2; }
.vs-gcard.rank-3 { border-top-color: #c0692f; }
.vs-gcard.rank-4 { border-top-color: #2f8f62; }

.vs-gcard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.vs-gcard-no {
    font-size: 13px;
    font-weight: 600;
    color: var(--vs-muted);
}

.vs-gcard-name {
    margin: 14px 0 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--vs-text);
}

.vs-gperson {
    display: block;
}

.vs-gcard-name .vs-amp {
    display: block;
    margin: 2px 0;
    font-size: 15px;
}

.vs-gcard-meta {
    margin: 14px 0 0;
    padding: 12px 0 0;
    list-style: none;
    border-top: 1px dashed #e4d7dd;
    font-size: 14px;
    font-weight: 600;
    color: var(--vs-plum-2);
}

.vs-gcard-meta li {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 6px;
}

.vs-gcard-meta .fa {
    flex: 0 0 16px;
    text-align: center;
    color: var(--vs-gold);
}

.vs-gcard-cat {
    align-self: flex-start;
    margin-top: auto;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--vs-tint);
    color: var(--vs-plum-2);
    font-size: 12px;
    font-weight: 600;
}

.vs-gcard-meta + .vs-gcard-cat {
    margin-top: 6px;
}

.vs-grid-empty {
    grid-column: 1 / -1;
    padding: 30px 10px;
    text-align: center;
    color: #5b4b56;
    font-size: 15px;
}

/* ---------- Footer ---------- */
.footer-section {
    background: linear-gradient(105.47deg, #2a0b21 5.6%, #7a2a5b 112.84%);
    color: #fff;
    padding: 40px 26px 28px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    color: #ffd27a;
}

.footer-title {
    font-family: 'Cormorant Upright', serif;
    color: #fff;
    font-size: 23px;
    line-height: 2.3;
    font-weight: 600;
    display: inline-block;
}

.footer-text {
    font-size: 14px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mediaIcon {
    width: 40px;
}

.whatsapp-logo {
    position: fixed;
    right: 28px;
    bottom: 16px;
    width: 49px;
    cursor: pointer;
    z-index: 5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .vs-filters {
        grid-template-columns: 1fr 1fr;
    }
    .vs-filters .vs-field-name {
        grid-column: 1 / -1;
    }
    .vs-filters .vs-reset {
        grid-column: 1 / -1;
    }
    .vs-stats,
    .vs-stats.has-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .vs-badge {
        font-size: 11px;
        letter-spacing: .1em;
        padding: 6px 14px;
    }
    .vs-subtitle {
        font-size: 15px;
        white-space: normal;
    }
    .vs-search {
        padding: 18px 16px;
    }
    .vs-filters {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .vs-stats,
    .vs-stats.has-5 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin: 16px 0;
    }
    .vs-stats.has-5 .vs-stat:first-child {
        grid-column: 1 / -1;
    }
    .vs-stat {
        padding: 14px;
        gap: 10px;
    }
    .vs-stat-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .vs-stat-num {
        font-size: 22px;
    }
    .vs-list .vs-card-head {
        padding: 16px;
    }
    .vs-table thead th,
    .vs-table tbody td {
        padding: 12px 14px;
    }
    .vs-head-tools {
        gap: 8px;
    }
    .vs-view-btn {
        padding: 6px 10px;
    }
    .vs-view-btn span {
        display: none;
    }
    .vs-swipe-hint {
        display: block;
    }
    .vs-swipe-hint.is-hidden {
        display: none;
    }
    .vs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }
    .footer-title {
        font-size: 18px;
    }
    .footer-text {
        font-size: 13px;
    }
    .whatsapp-logo {
        right: 16px;
        width: 44px;
    }
}
