/**
 * ARCHIVE DIRECTORY STYLES - SYNCED WITH TEMPLATE
 */

/* BREADCRUMBS */
.breadcrumb-container {
    padding: 0;
    margin-bottom: var(--layout-gap); /* EXACTLY 25px */
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
}

.breadcrumb-container a { color: #64748b; text-decoration: none; }
.breadcrumb-container span { color: #cbd5e1; margin-left: 5px; }

/* ARCHIVE HEADER TOP (Big White Card) */
.archive-header-top {
    background: white;
    border-radius: 30px;
    padding: 35px;
    margin-top: 0; /* REMOVE ANY TOP MARGIN */
    margin-bottom: var(--layout-gap);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.05);
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.header-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.header-text-info h1 {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 5px;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.header-meta .update-date {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* RIGHT SIDE: Stats & Sorting */
.header-action-stats {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 15px 25px;
    border-radius: 20px;
    gap: 25px;
}

.stat-item { text-align: center; }
.stat-label { display: block; font-size: 9px; font-weight: 900; color: #94a3b8; text-transform: uppercase; margin-bottom: 3px; }
.stat-value { display: block; font-size: 18px; font-weight: 900; color: #0f172a; }

.modern-select {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 15px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 900;
    color: #475569;
    cursor: pointer;
}

/* DESCRIPTION BOX */
.archive-description-box {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #f1f5f9;
    font-size: 20px;
    line-height: 1.6;
    color: #64748b;
    font-weight: 400; /* LIGHTER */
    text-align: left; /* ALIGNED LEFT */
    margin-top: 20px;
    border-top: none;
    padding-top: 0;
}

/* COMPACT CARD & RECOMMENDED */
.archive-sites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.site-card-compact {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.site-card-compact:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

/* RANK BADGE (TOP 3) */
.rank-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    z-index: 10;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.badge-1, .badge-2, .badge-3 { background: linear-gradient(135deg, #FFD700, #FFA500); } /* ALL GOLD SELECTION */

/* CARD TITLE - ALL CAPS */
.card-title {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Single line */
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* GOLD RATING */
.card-rating {
    font-size: 14px;
    font-weight: 900;
    color: #1e293b;
    flex-shrink: 0;
}

.card-rating .stars {
    color: #FFD700; /* GOLD */
    font-size: 16px;
    margin-right: 2px;
}

/* RECOMMENDED STRIP */
.recommended-strip {
    background: #fff1f2;
    color: var(--brand-pink);
    font-size: 10px;
    font-weight: 900;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    margin-top: 10px; /* REDUCED SPACE */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px dashed var(--brand-pink);
}

.card-thumbnail { 
    position: relative; 
    aspect-ratio: 16/10; 
    overflow: hidden; 
    background: #f8fafc; 
}

/* Subtle dark overlay for images */
.card-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
    z-index: 1;
}

.card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.site-card-compact:hover .card-thumbnail img { transform: scale(1.1); }

/* HOVER OVERLAY BUTTONS */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.4s;
    backdrop-filter: blur(5px);
    z-index: 5;
}

.site-card-compact:hover .card-overlay {
    opacity: 1;
}

.overlay-btn {
    width: 150px;
    padding: 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    text-align: center;
    transition: all 0.3s;
    transform: translateY(15px);
}

.site-card-compact:hover .overlay-btn {
    transform: translateY(0);
}

.btn-review { 
    background: var(--brand-blue); 
    color: white; 
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.2);
}
.btn-visit { background: var(--brand-pink); color: white; box-shadow: 0 10px 20px rgba(255, 77, 109, 0.3); }

/* CARD BODY */
.card-body { padding: 18px; }

.card-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Same line */
    gap: 10px;
}

.card-title-link { text-decoration: none; flex: 1; }

.card-title {
    font-size: 18px; /* LARGER */
    font-weight: 900;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
}

/* SIDEBAR */
.archive-sidebar-card {
    background: white;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sidebar-nav-list { list-style: none; padding: 0; margin: 0; }
.sidebar-nav-item a {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 0; text-decoration: none;
    color: #64748b; font-weight: 700; border-bottom: 1px solid #f8fafc;
}
.sidebar-nav-item.active a { color: var(--brand-pink); }

.sidebar-icon { 
    width: 32px; height: 32px; 
    border-radius: 8px; background: #f1f5f9; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 16px; flex-shrink: 0;
    overflow: hidden; /* Prevent spillover */
}

.sidebar-icon img {
    width: 100%; height: 100%;
    object-fit: contain; padding: 4px;
}

/* CATEGORY SEARCH BAR */
.category-search-wrapper {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.cat-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.cat-search-form input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 45px 12px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    transition: 0.3s;
}

.cat-search-form input:focus {
    background: white;
    border-color: var(--brand-pink);
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.1);
    outline: none;
}

.cat-search-form button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.cat-search-form button:hover {
    color: var(--brand-pink);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .header-content-wrapper { flex-direction: column; text-align: center; }
    .archive-sites-grid { grid-template-columns: repeat(2, 1fr); }
}
