﻿/* Gedian Sports public advertisement archive and direct detail. Scoped to avoid changing Index. */
.gs-ads-archive, .gs-ad-detail-page {
    --ga-green: #5b8c3b;
    --ga-dark: #244b2d;
    --ga-muted: #65736b;
    --ga-border: #dce6d9;
    --ga-surface: #fff;
    font-family: Tajawal,system-ui,sans-serif;
    color: #203527;
    box-sizing: border-box
}

    .gs-ads-archive *, .gs-ad-detail-page * {
        box-sizing: border-box
    }

.gs-ads-archive {
    max-width: 1250px;
    margin: 0 auto;
    padding: clamp(14px,3vw,32px) 14px 64px
}

.gs-ads-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 24px;
    padding: clamp(22px,4vw,44px);
    background: linear-gradient(125deg,#1c472c 5%,#407c41 65%,#80a44e);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 205px
}

    .gs-ads-hero:after {
        content: "";
        position: absolute;
        width: 270px;
        height: 270px;
        border: 50px solid #ffffff12;
        border-radius: 50%;
        inset: auto auto -150px -35px;
        z-index: -1
    }

.gs-ads-hero-copy {
    max-width: 720px
}

.gs-ads-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    color: #d7eec6
}

.gs-ads-hero h1 {
    font-weight: 900;
    font-size: clamp(24px,4vw,39px);
    margin: 10px 0
}

.gs-ads-hero p {
    font-size: clamp(13px,2vw,16px);
    margin: 0;
    color: #e9f5e7;
    line-height: 1.8
}

.gs-ads-manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    text-decoration: none !important;
    background: white;
    color: #24502e !important;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px #14351d33
}

.gs-ads-filters {
    margin: 18px 0 12px;
    background: #fff;
    border: 1px solid var(--ga-border);
    padding: 16px;
    border-radius: 17px
}

.gs-ads-search-label {
    display: block;
    font-weight: 800;
    font-size: 13px;
    margin: 0 0 10px
}

.gs-ads-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 9px
}

    .gs-ads-filter-controls input, .gs-ads-filter-controls select {
        border: 1px solid #d6dfd4;
        min-height: 43px;
        border-radius: 10px;
        background: white;
        color: #263a2c;
        font: inherit;
        font-size: 14px;
        padding: 0 13px
    }

    .gs-ads-filter-controls input {
        min-width: 150px;
        flex: 1 1 250px
    }

    .gs-ads-filter-controls select {
        flex: 0 1 170px
    }

    .gs-ads-filter-controls button {
        border: 0;
        background: var(--ga-green);
        color: white;
        border-radius: 10px;
        font: inherit;
        font-weight: 800;
        padding: 0 22px;
        cursor: pointer
    }

.gs-ads-reset {
    align-self: center;
    color: #55705b;
    text-decoration: none !important;
    font-size: 13px;
    padding: 10px
}

.gs-ads-results-count {
    font-size: 13px;
    color: var(--ga-muted);
    padding: 9px 2px 17px
}

    .gs-ads-results-count strong {
        color: #315e36
    }

.gs-ads-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 18px
}

.gs-ad-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 19px;
    border: 1px solid var(--ga-border);
    background: #fff;
    color: inherit !important;
    text-decoration: none !important;
    box-shadow: 0 8px 25px #2346260c;
    transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease
}

    .gs-ad-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 13px 32px #23462622;
        border-color: #9bbf90
    }

    .gs-ad-card:focus-visible {
        outline: 3px solid var(--ga-green);
        outline-offset: 3px
    }

.gs-ad-media {
    position: relative;
    aspect-ratio: 16/9;
    background: #e5eedf;
    overflow: hidden
}

    .gs-ad-media > img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s
    }

.gs-ad-card:hover .gs-ad-media > img {
    transform: scale(1.04)
}

.gs-ad-media-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 20% 15%,#8dbc71,#355f35 75%);
    color: #fff;
    gap: 4px;
    font-weight: 900;
    font-size: 28px
}

    .gs-ad-media-fallback strong {
        font-size: 13px;
        letter-spacing: .4em
    }

.gs-ad-type, .gs-ad-video-pill {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 40px;
    padding: 6px 10px;
    background: #ffffffeb;
    font-weight: 800;
    font-size: 12px;
    color: #255334;
    box-shadow: 0 3px 9px #00000015
}

.gs-ad-type {
    right: 12px
}

.gs-ad-video-pill {
    left: 12px;
    color: #fff;
    background: #183b2ddb
}

.gs-ad-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 17px 17px
}

.gs-ad-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #77857b
}

.gs-ad-status {
    border-radius: 18px;
    font-weight: 800;
    padding: 4px 9px
}

    .gs-ad-status.is-live {
        background: #ecf6e8;
        color: #3a7431
    }

    .gs-ad-status.is-ended {
        background: #f0f1f0;
        color: #707f73
    }

.gs-ad-body h2 {
    font-size: clamp(16px,2vw,19px);
    line-height: 1.6;
    margin: 12px 0 8px;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.gs-ad-summary {
    font-size: 13px;
    line-height: 1.8;
    color: #5f6e61;
    white-space: normal;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 16px
}

.gs-ad-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #eaf0e8;
    padding-top: 13px;
    margin-top: auto;
    font-size: 12px;
    color: #809084
}

    .gs-ad-foot strong {
        color: var(--ga-green);
        font-size: 13px;
        white-space: nowrap
    }

.gs-ads-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 27px auto;
    font-size: 14px;
    color: #506750
}

    .gs-ads-pagination a {
        background: white;
        border: 1px solid var(--ga-border);
        padding: 9px 17px;
        border-radius: 10px;
        text-decoration: none;
        color: #346c3c
    }

.gs-ads-empty {
    padding: 70px 14px;
    text-align: center;
    border-radius: 18px;
    background: #f7faf6;
    border: 1px dashed #cedfcb
}

    .gs-ads-empty > span {
        font-size: 36px;
        color: #80a66a
    }

    .gs-ads-empty h2 {
        font-size: 19px
    }

    .gs-ads-empty p {
        font-size: 14px;
        color: var(--ga-muted)
    }

.gs-ads-feedback {
    padding: 16px;
    border-radius: 12px;
    background: #fff4f0;
    color: #9b3f20
}

.gs-ad-detail-page {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(14px,3vw,30px) 14px 65px
}

.gs-ad-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #79907c;
    margin-bottom: 18px
}

    .gs-ad-breadcrumb a {
        color: #467c40;
        text-decoration: none
    }

.gs-ad-detail {
    overflow: hidden;
    background: white;
    border: 1px solid var(--ga-border);
    border-radius: 22px;
    box-shadow: 0 16px 45px #22452510
}

.gs-ad-detail-heading {
    padding: clamp(22px,4vw,36px);
    background: linear-gradient(145deg,#f5f9f1,#fff)
}

.gs-ad-detail-badge {
    display: inline-flex;
    background: #e7f2dc;
    color: #3d7035;
    padding: 6px 12px;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 800
}

.gs-ad-detail-heading h1 {
    font-size: clamp(22px,4vw,34px);
    font-weight: 900;
    line-height: 1.5;
    margin: 13px 0
}

.gs-ad-detail-heading p, .gs-ad-detail-extra p {
    white-space: pre-line;
    overflow-wrap: anywhere;
    line-height: 1.9;
    font-size: 15px;
    color: #4f6552;
    margin: 0
}

.gs-ad-detail-media {
    display: grid;
    gap: 12px;
    padding: 0 clamp(12px,2.5vw,26px) 18px
}

    .gs-ad-detail-media > img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 570px;
        object-fit: contain;
        border-radius: 13px;
        background: #edf1eb
    }

.gs-ad-detail-video-box {
    position: relative;
    max-width: 100%;
    border-radius: 14px;
    background: #0c160e;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center
}

    .gs-ad-detail-video-box video {
        display: block;
        width: 100%;
        height: auto;
        max-height: min(72dvh,630px);
        object-fit: contain
    }

.gs-ad-detail-sound {
    position: absolute;
    bottom: 54px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 90%;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid #fff7;
    background: #fff;
    color: #1f502f;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 32px #0005;
    cursor: pointer
}

    .gs-ad-detail-sound[hidden] {
        display: none !important
    }

.gs-ad-detail-extra, .gs-ad-detail-contact {
    padding: 22px clamp(16px,3vw,28px);
    border-top: 1px solid var(--ga-border)
}

    .gs-ad-detail-extra h2, .gs-ad-detail-contact h2 {
        font-size: 19px;
        margin: 0 0 12px;
        font-weight: 900;
        color: #2d5b32
    }

.gs-ad-detail-cta {
    display: block;
    text-align: center;
    margin: 4px clamp(16px,3vw,28px) 18px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--ga-green);
    color: white !important;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none !important
}

.gs-ad-detail-contact-row {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 3px 0 9px;
    flex-wrap: nowrap
}

    .gs-ad-detail-contact-row a {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 7px;
        padding: 9px 12px;
        background: #f5faf4;
        border: 1px solid #dae9d7;
        border-radius: 12px;
        text-decoration: none;
        color: #2c5a32;
        white-space: nowrap;
        font-size: 13px;
        font-weight: 800
    }

    .gs-ad-detail-contact-row img {
        height: 23px;
        width: 23px;
        object-fit: contain
    }

.gs-ad-detail-sponsor {
    padding: 12px 28px 20px;
    color: #718073;
    font-size: 12px
}

@media(max-width:920px) {
    .gs-ads-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:640px) {
    .gs-ads-hero {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        padding: 23px 20px;
        gap: 15px
    }

    .gs-ads-manage {
        align-self: flex-start;
        font-size: 13px
    }

    .gs-ads-grid {
        grid-template-columns: 1fr;
        gap: 13px
    }

    .gs-ad-card {
        border-radius: 15px
    }

    .gs-ad-media {
        aspect-ratio: 16/8.5
    }

    .gs-ad-body {
        padding: 14px
    }

    .gs-ad-detail-page {
        padding: 12px 10px 46px
    }

    .gs-ad-detail {
        border-radius: 16px
    }

    .gs-ad-detail-heading {
        padding: 21px 17px
    }

        .gs-ad-detail-heading p {
            font-size: 14px
        }

    .gs-ad-detail-video-box video {
        max-height: 55dvh
    }

    .gs-ad-detail-sound {
        font-size: 13px;
        bottom: 54px
    }
}

@media(prefers-reduced-motion:reduce) {
    .gs-ad-card, .gs-ad-media > img {
        transition: none !important
    }

        .gs-ad-card:hover {
            transform: none
        }
}
