/* 
 * Components CSS - Navigation, Footers, Cards, Badges, CTAs
 */

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 300;
    background: var(--navy);
    height: 68px; /* Increased to match spec */
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 0;
}
body.admin-bar nav {
    top: 32px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-right: 28px;
    flex-shrink: 0;
    cursor: pointer;
}
.nav-brand-name {
    color: #fff;
}
.dealonai-custom-logo {
    display: block;
    width: auto;
    object-fit: contain;
}
.dealonai-custom-logo-header {
    max-height: 42px;
    max-width: 240px;
}
.dealonai-custom-logo-footer {
    max-height: 34px;
    max-width: 220px;
}
.dealonai-fallback-logo {
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu .menu-item {
    margin: 0;
}
.nav-link {
    color: rgba(255,255,255,.6);
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 6px;
    transition: .15s;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}
.nav-menu a {
    color: rgba(255,255,255,.6);
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 11px;
    border-radius: 6px;
    transition: .15s;
    white-space: nowrap;
    display: block;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a {
    color: #fff;
    background: rgba(255,255,255,.08);
}
.nav-link.active {
    color: #fff;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 11px;
    right: 11px;
    height: 2px;
    background: var(--mint);
    border-radius: 1px;
}
.nav-cta {
    background: var(--mint);
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--mint-d);
}
@media (max-width: 782px) {
    body.admin-bar nav {
        top: 46px;
    }
}

/* ── SHARED BADGES ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.badge.bv { background: #DCFCE7; color: #15803D; } /* Verified */
.badge.bu { background: #FEF3C7; color: #B45309; } /* User Submitted */
.badge.bc { background: #EDE9FE; color: #6D28D9; } /* Creator Submitted */
.badge.br { background: #E6FAF6; color: #00A98B; } /* Recently Checked */
.badge.bn { background: #F1F5F9; color: #475569; } /* Unverified */
.badge.be { background: #FEE2E2; color: #B91C1C; } /* Expired */

.disc {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 4px;
    background: #FEE2E2;
    color: #DC2626;
}
.disc-blue { background: #DBEAFE; color: #1D4ED8; }
.disc-gray { background: #F1F5F9; color: #94A3B8; }

/* ── SHARED DEAL CARD ── */
.deal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: .2s;
    cursor: pointer;
}
.deal-card:hover {
    border-color: var(--mint);
    box-shadow: 0 4px 20px rgba(0,201,167,.13);
    transform: translateY(-2px);
}
.dc-badges { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px 0; }
.dc-body { padding: 10px 13px 0; }
.dc-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-bottom: 8px;
    background: var(--navy); 
}
.dc-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.dc-name { font-size: 15px; font-weight: 800; color: var(--text); margin-bottom: 1px; }
.dc-cat { font-size: 11.5px; font-weight: 600; color: var(--mint-d); margin-bottom: 4px; }
.dc-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.dc-price { margin-bottom: 8px; }
.dc-sale { font-size: 16px; font-weight: 800; color: var(--mint-d); }
.dc-orig { font-size: 12.5px; color: var(--muted); text-decoration: line-through; margin-left: 5px; }

.dc-code-box {
    margin: 0 13px 8px;
    border: 1.5px dashed #D0DBE6;
    border-radius: 7px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
}
.dc-code { font-family: monospace; font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.dc-copy { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 16px; padding: 2px 4px; transition: .15s; }
.dc-copy.dealonai-reveal-code { font-size: 12px; font-weight: 800; color: var(--mint-d); }
.is-revealed-code .dc-copy.dealonai-reveal-code { color: var(--muted); }
.dc-copy:hover { color: var(--mint); }

.dc-btn {
    margin: 0 13px 10px;
    padding: 9px;
    width: calc(100% - 26px);
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    transition: .15s;
    text-align: center;
}
.dc-btn-reveal { background: var(--mint); color: var(--navy); }
.dc-btn-reveal:hover { background: var(--mint-d); }
.dc-btn-access { background: var(--navy); color: #fff; }
.dc-btn-access:hover { background: #1a3450; }
.dc-btn-view { background: #fff; color: var(--navy); border: 1.5px solid var(--border); }
.dc-btn-view:hover { border-color: var(--mint); color: var(--mint); }
.dc-btn-expired { background: #F1F5F9; color: #94A3B8; cursor: default; }

.dc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.dc-status-row { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.dc-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dc-dot-green { background: var(--green); }
.dc-dot-red { background: var(--red); }
.dc-dot-gray { background: #94A3B8; }
.dc-bookmark { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; transition: .15s; }
.dc-bookmark:hover { color: var(--mint); }

/* ── SHARED SECTION HEADER ── */
.sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.sh-title { font-size: 18px; font-weight: 800; color: var(--text); display: flex; align-items: center; gap: 7px; }
.sh-link { font-size: 13.5px; font-weight: 600; color: var(--mint); cursor: pointer; white-space: nowrap; }
.sh-link:hover { text-decoration: underline; }

/* ── SHARED CTA BANNER ── */
.cta-banner {
    background: var(--navy);
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: var(--r);
    margin-bottom: 14px;
}
.cta-left { display: flex; align-items: center; gap: 14px; }
.cta-icon { font-size: 26px; }
.cta-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.cta-sub { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── FOOTER ── */
footer {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 48px 32px 24px;
}
.ft-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
    gap: 28px;
    margin-bottom: 36px;
}
.ft-brand-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ft-brand-name { font-size: 18px; font-weight: 800; color: #fff; }
.ft-tagline { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.65; margin-bottom: 18px; max-width: 240px; }
.ft-social { display: flex; gap: 8px; }
.ft-social a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.5);
    font-size: 14px;
    transition: .15s;
}
.ft-social a:hover { background: rgba(255,255,255,.14); color: #fff; }

.ft-col-title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.3); margin-bottom: 16px; }
.ft-links { list-style: none; padding-left: 0; }
.ft-links li { margin-bottom: 10px; }
.ft-links a { font-size: 13.5px; color: rgba(255,255,255,.5); transition: .15s; }
.ft-links a:hover { color: #fff; }

.ft-trust-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ft-trust-dot { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; flex-shrink: 0; }
.ft-trust-text { font-size: 13px; color: rgba(255,255,255,.5); }

.ft-bottom {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 24px;
    font-size: 12.5px;
    color: rgba(255,255,255,.3);
}
.ft-disclaimer-wrap {
    max-width: 560px;
    text-align: right;
}
.ft-affiliate-disclosure {
    margin-top: 6px;
    color: rgba(255,255,255,.38);
}
.ft-affiliate-disclosure a {
    color: var(--mint);
    font-weight: 700;
}
.ft-affiliate-disclosure a:hover {
    color: #fff;
}

.nl-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.nl-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.nl-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.nl-form { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.nl-form input { flex: 1; border: none; outline: none; padding: 10px 12px; font-family: inherit; font-size: 13.5px; }
.nl-form button { background: var(--mint); color: var(--navy); border: none; padding: 0 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.nl-note { font-size: 11.5px; color: var(--muted); margin-top: 8px; text-align: center; }
