/* ==========================================
   REWARDVAULT DIRECTORY PAGE
========================================== */


/* ==========================================
   HEADER
========================================== */

.directory-header {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 24px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


.directory-brand {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
}


.directory-brand .brand-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.75);

    box-shadow:
        0 8px 25px rgba(31, 41, 55, 0.10);

    font-size: 23px;
}


.directory-brand .brand-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #111827;
}


.directory-brand .brand-text span {
    color: #2563eb;
}


.header-status {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 9px 14px;

    background: rgba(255, 255, 255, 0.68);

    border: 1px solid rgba(255, 255, 255, 0.75);

    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;

    color: #374151;
}


.status-indicator {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 5px rgba(34, 197, 94, 0.12);

    animation: statusPulse 2s infinite;
}



/* ==========================================
   MAIN
========================================== */

.directory-main {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding-bottom: 60px;
}



/* ==========================================
   HERO
========================================== */

.directory-hero {
    text-align: center;

    max-width: 760px;

    margin: 30px auto 35px;
}


.directory-hero-icon {
    width: 78px;
    height: 78px;

    margin: 0 auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.75);

    box-shadow:
        0 15px 40px rgba(31, 41, 55, 0.12);

    font-size: 38px;

    animation: floatingGift 3s ease-in-out infinite;
}


.directory-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 2px;

    color: #2563eb;
}


.directory-hero h1 {
    margin: 0;

    font-size: clamp(34px, 6vw, 58px);

    line-height: 1.05;

    font-weight: 950;

    letter-spacing: -2px;

    color: #ffff;
}


.directory-hero h1 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #7c3aed,
            #db2777
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.directory-hero p {
    max-width: 650px;

    margin: 20px auto 0;

    font-size: 16px;

    line-height: 1.7;

    color: #fff;
}



/* ==========================================
   COUNTRY NOTICE
========================================== */

.country-notice {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 17px 20px;

    margin-bottom: 25px;

    border-radius: 20px;

    background: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.8);

    box-shadow:
        0 15px 40px rgba(31, 41, 55, 0.08);
}


.notice-icon {
    width: 46px;
    height: 46px;

    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(37, 99, 235, 0.10);

    font-size: 23px;
}


.notice-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.notice-content strong {
    font-size: 14px;

    color: #111827;
}


.notice-content span {
    font-size: 12px;

    color: #6b7280;
}



/* ==========================================
   CONTROLS
========================================== */

.directory-controls {
    display: grid;

    grid-template-columns: 1fr 230px;

    gap: 15px;

    margin-bottom: 40px;
}


.search-wrapper {
    position: relative;
}


.search-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 18px;

    pointer-events: none;
}


.search-wrapper input,
.category-wrapper select {
    width: 100%;

    height: 55px;

    border: 1px solid rgba(255, 255, 255, 0.85);

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.82);

    box-shadow:
        0 10px 30px rgba(31, 41, 55, 0.07);

    font-family: inherit;

    color: #111827;

    outline: none;

    transition: 0.2s ease;
}


.search-wrapper input {
    padding: 0 18px 0 48px;
}


.search-wrapper input:focus,
.category-wrapper select:focus {
    border-color: rgba(37, 99, 235, 0.45);

    box-shadow:
        0 10px 35px rgba(37, 99, 235, 0.12);
}


.category-wrapper {
    display: flex;
    flex-direction: column;

    gap: 6px;
}


.category-wrapper label {
    font-size: 11px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #6b7280;
}


.category-wrapper select {
    padding: 0 14px;

    cursor: pointer;
}



/* ==========================================
   SECTION HEADINGS
========================================== */

.featured-section,
.all-rewards-section {
    margin-top: 35px;
}


.section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.section-kicker {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 1.5px;

    color: #ffff;
}


.section-heading h2 {
    margin: 0;

    font-size: 26px;

    font-weight: 900;

    color: #ffff;
}


.result-count {
    font-size: 12px;

    font-weight: 800;

    color: #6b7280;
}



/* ==========================================
   REWARD GRID
========================================== */

.reward-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}



/* ==========================================
   REWARD CARD
========================================== */

.reward-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 22px;

    min-height: 275px;

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.82);

    border:
        1px solid rgba(255, 255, 255, 0.9);

    box-shadow:
        0 15px 40px rgba(31, 41, 55, 0.08);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.reward-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 22px 50px rgba(31, 41, 55, 0.14);
}


.reward-card-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 18px;
}


.provider-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 52px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.12),
            rgba(124, 58, 237, 0.12)
        );

    font-size: 25px;
}


.featured-badge {
    padding: 6px 9px;

    border-radius: 999px;

    background: rgba(124, 58, 237, 0.10);

    color: #7c3aed;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 0.5px;
}


.reward-card h3 {
    margin: 0 0 8px;

    font-size: 19px;

    font-weight: 900;

    color: #111827;
}


.reward-category {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 10px;

    font-weight: 900;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #2563eb;
}


.reward-description {
    margin: 0;

    font-size: 13px;

    line-height: 1.65;

    color: #5b6472;
}


.reward-types {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 16px;
}


.reward-type {
    padding: 6px 8px;

    border-radius: 8px;

    background: #f3f4f6;

    font-size: 9px;

    font-weight: 800;

    color: #4b5563;
}


.reward-card-footer {
    margin-top: auto;

    padding-top: 20px;
}


.reward-link {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 43px;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #7c3aed
        );

    color: white;

    text-decoration: none;

    font-size: 12px;

    font-weight: 900;

    transition: 0.2s ease;
}


.reward-link:hover {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.22);
}



/* ==========================================
   EMPTY STATE
========================================== */

.empty-state {
    text-align: center;

    padding: 55px 20px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.68);

    border: 1px solid rgba(255, 255, 255, 0.8);
}


.empty-icon {
    font-size: 40px;

    margin-bottom: 12px;
}


.empty-state h3 {
    margin: 0 0 8px;

    font-size: 20px;

    color: #111827;
}


.empty-state p {
    margin: 0;

    color: #6b7280;

    font-size: 13px;
}



/* ==========================================
   DISCLOSURE
========================================== */

.directory-disclosure {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-top: 45px;

    padding: 20px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.66);

    border:
        1px solid rgba(255, 255, 255, 0.8);
}


.disclosure-symbol {
    font-size: 24px;

    flex: 0 0 auto;
}


.directory-disclosure h3 {
    margin: 0 0 8px;

    font-size: 15px;

    color: #111827;
}


.directory-disclosure p {
    margin: 0 0 8px;

    font-size: 12px;

    line-height: 1.65;

    color: #5b6472;
}


.directory-disclosure p:last-child {
    margin-bottom: 0;
}



/* ==========================================
   ANIMATIONS
========================================== */

@keyframes floatingGift {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}


@keyframes statusPulse {

    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }

    100% {
        opacity: 1;
    }
}



/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 900px) {

    .reward-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .directory-header {
        padding-top: 18px;
    }


    .header-status {
        display: none;
    }


    .directory-controls {
        grid-template-columns: 1fr;
    }


    .reward-grid {
        grid-template-columns: 1fr;
    }


    .directory-hero {
        margin-top: 20px;
    }


    .directory-hero h1 {
        font-size: 38px;
    }


    .country-notice {
        align-items: flex-start;
    }


    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

}


@media (max-width: 430px) {

    .directory-main {
        width: 94%;
    }


    .directory-brand .brand-text {
        font-size: 17px;
    }


    .directory-brand .brand-icon {
        width: 40px;
        height: 40px;
    }


    .directory-hero h1 {
        font-size: 32px;

        letter-spacing: -1.2px;
    }


    .directory-hero p {
        font-size: 14px;
    }


    .country-notice {
        padding: 15px;
    }


    .reward-card {
        padding: 18px;
    }

}
