/* ==========================================================================
   SM TOOLS KIT - STREAMING DIRECTORY CSS
   ========================================================================== */

:root {
    --bg-dark: #0D0E12;
    --bg-card: #14171F;
    --bg-card-hover: #1E2330;
    --accent-red: #FF2E4C;
    --accent-cyan: #00F2FE;
    --text-main: #FFFFFF;
    --text-muted: #9A0B1A;
    --text-secondary: #A0A5B5;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 46, 76, 0.3);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1280px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    padding-bottom: 90px; /* Offset for floating bottom ad banner */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------------------------------------------------------------
   STICKY HEADER
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 14, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FFF, #A0A5B5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    color: var(--accent-red);
    font-weight: 700;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link.highlight {
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-sm);
}

.nav-link.highlight:hover {
    background: rgba(0, 242, 254, 0.1);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    background: linear-gradient(180deg, rgba(255, 46, 76, 0.08) 0%, rgba(13, 14, 18, 0) 100%), #0D0E12;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge-row {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-badge .icon {
    color: var(--accent-red);
    margin-right: 4px;
    font-style: normal;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-red);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(255, 46, 76, 0.3);
}

.btn-primary:hover {
    background: #E0203C;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.825rem;
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT & FILTERS
   -------------------------------------------------------------------------- */
.main-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    width: 100%;
}

.filter-section {
    margin-bottom: 2.5rem;
}

.search-bar-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-bar-wrapper input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-bar-wrapper input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 46, 76, 0.15);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.filter-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.pill-btn:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.pill-btn.active {
    background: rgba(255, 46, 76, 0.15);
    color: var(--accent-red);
    border-color: var(--accent-red);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   DIRECTORY GRID & CARDS
   -------------------------------------------------------------------------- */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.site-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.site-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rank-badge {
    background: var(--accent-red);
    color: #FFF;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.site-rating {
    color: #FFD700;
    font-weight: 700;
    font-size: 0.9rem;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.site-icon {
    width: 42px;
    height: 42px;
    background: #1F2430;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--accent-cyan);
}

.site-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.site-summary {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.725rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* NATIVE IN-FEED AD CONTAINER */
.native-ad-card {
    background: rgba(20, 23, 31, 0.6);
    border: 1px dashed var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 250px;
}

.native-ad-label {
    font-size: 0.65rem;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   MODAL DIALOG
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
}

.modal-header-title {
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.pro-box, .con-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.pro-box h4 { color: #00E676; margin-bottom: 0.5rem; }
.con-box h4 { color: var(--accent-red); margin-bottom: 0.5rem; }

.pro-box ul, .con-box ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pro-box li::before { content: "✓ "; color: #00E676; }
.con-box li::before { content: "✕ "; color: var(--accent-red); }

/* AD BLOCKER NOTICE */
.adblock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.adblock-card {
    background: var(--bg-card);
    border: 1px solid var(--accent-red);
    padding: 2rem;
    border-radius: var(--radius-md);
    max-width: 480px;
    text-align: center;
}

.adblock-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.adblock-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
}

/* PERSISTENT FLOATING BOTTOM AD BANNER */
.floating-bottom-ad {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 14, 18, 0.98);
    border-top: 1px solid var(--accent-red);
    z-index: 9999;
    padding: 6px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.6);
}

.ad-container-wrap {
    text-align: center;
    position: relative;
}

.ad-label {
    display: block;
    font-size: 0.55rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.ad-mobile-only { display: block; }
.ad-desktop-only { display: none; }

@media (min-width: 500px) {
    .ad-mobile-only { display: none; }
    .ad-desktop-only { display: block; }
}

/* FOOTER */
.site-footer {
    background: #08090C;
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.footer-links h4, .footer-legal h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.8;
}

.footer-legal p {
    color: var(--text-secondary);
    font-size: 0.775rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .pros-cons-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; }
}