/* ==========================================================================
   DNI YoSEO — CORE CSS (Synchronized Architecture v2.0)
   ========================================================================== */

/* 1. Global Box-Sizing Reset */
.yoseo-homepage-shell,
.yoseo-homepage-shell *,
.yoseo-homepage-shell *::before,
.yoseo-homepage-shell *::after {
    box-sizing: border-box;
}

/* 2. Site Header Alignment */
.yoseo-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
}

/* 3. Outer Shell Container */
.yoseo-homepage-shell {
    display: block;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 16px;
}

/* 4. Single Source of Truth Layout (Flex Only) */
.yoseo-home-layout {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 24px;
    margin: 0;
    padding: 0;
}

/* 5. Fixed Left Sidebar */
.yoseo-home-sidebar {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    padding: 20px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

/* Hide duplicate sidebar brand if rendered */
.yoseo-home-sidebar .yoseo-home-brand {
    display: none;
}

/* 6. Dynamic Main Content Area */
.yoseo-home-main {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Protect Inner Direct Sections Only */
.yoseo-home-main > .yoseo-home-hero,
.yoseo-home-main > .yoseo-home-toolbar,
.yoseo-home-main > .yoseo-home-section {
    width: 100%;
    max-width: 100%;
}

/* 7. Hero Banner */
.yoseo-home-hero {
    width: 100%;
    max-width: 100%;
    padding: 36px 30px;
    margin: 0 0 24px 0;
    background: linear-gradient(135deg, #0f172a 0%, #172554 55%, #1e293b 100%);
    color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.yoseo-home-title {
    margin: 8px 0 12px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.3;
    font-weight: 800;
}

.yoseo-home-subtitle {
    margin: 0 0 20px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

/* 8. Tool Cards Grid Container */
.yoseo-home-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
}

.yoseo-home-tool-grid > * {
    min-width: 0;
    max-width: 100%;
}

.yoseo-home-tool-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.yoseo-home-tool-title {
    margin: 0;
    line-height: 1.4;
}

.yoseo-home-tool-title a {
    color: #1e293b;
    text-decoration: none;
}

.yoseo-home-section-title,
.yoseo-home-category-title {
    color: #0f172a;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
    margin: 0 0 16px;
}

/* Prevent Media / Form Elements Overflow */
.yoseo-home-hero img,
.yoseo-home-sidebar img {
    max-width: 100%;
    height: auto;
}

.yoseo-home-main input,
.yoseo-home-main select,
.yoseo-home-main textarea,
.yoseo-home-main button {
    max-width: 100%;
}

/* 9. Media Queries (Responsive Breakpoints) */
@media (max-width: 980px) {
    .yoseo-homepage-shell {
        padding: 14px;
    }
    .yoseo-home-layout {
        gap: 18px;
    }
    .yoseo-home-sidebar {
        flex-basis: 240px;
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }
    .yoseo-home-tool-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .yoseo-homepage-shell {
        padding: 10px;
    }
    .yoseo-home-layout {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 16px;
    }
    .yoseo-home-sidebar,
    .yoseo-home-main {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .yoseo-home-sidebar {
        flex: 0 0 auto;
        padding: 16px;
    }
    .yoseo-home-hero {
        padding: 26px 20px;
    }
    .yoseo-home-title {
        font-size: 22px;
    }
    .yoseo-home-tool-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .yoseo-homepage-shell {
        padding: 8px;
    }
    .yoseo-home-hero {
        padding: 22px 16px;
        border-radius: 10px;
    }
    .yoseo-home-title {
        font-size: 20px;
    }
    .yoseo-home-subtitle {
        font-size: 13px;
    }
}

/* ==========================================================================
   DNI YoSEO - Single Tool Page CSS Header & Logo Injector
   ========================================================================== */

/* Inner Page Header Bar Base Structure */
.single-yoseo-tool,
.yoseo-tool-container,
.yoseo-tool-single-wrap {
    padding-top: 80px !important; /* Header Space Reserve */
}

/* Header Container Injection */
.single-yoseo-tool::after,
.yoseo-tool-container::after {
    content: '' !important;
    position: absolute !important;
    top: 15px !important;
    left: 20px !important;
    right: 20px !important;
    height: 50px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background-image: url('https://yoseo.digitalnationinn.com/wp-content/uploads/2026/09/Dni-yoSeo-2.png') !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
    pointer-events: none !important;
}

/* ==========================================================================
   DNI YoSEO — Elite SaaS UI Overhaul
   ========================================================================== */

:root {
    --yoseo-primary: #2563eb;
    --yoseo-primary-glow: rgba(37, 99, 235, 0.25);
    --yoseo-dark-bg: #090d16;
    --yoseo-card-bg: #ffffff;
    --yoseo-border: #e2e8f0;
    --yoseo-text-main: #0f172a;
    --yoseo-text-muted: #64748b;
}

body {
    background-color: #f8fafc;
    color: var(--yoseo-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Elite Header */
.yoseo-elite-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.15);
}

.yoseo-elite-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yoseo-elite-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.yoseo-brand-logo-wrap {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
}

.yoseo-elite-logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.yoseo-brand-tagline-box {
    display: flex;
    flex-direction: column;
}

.yoseo-brand-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-pro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.yoseo-brand-sub {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
}

/* Back Button */
.yoseo-elite-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.yoseo-elite-back-btn:hover {
    background: var(--yoseo-primary);
    border-color: var(--yoseo-primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--yoseo-primary-glow);
    transform: translateY(-1px);
}

/* Tool Content Wrapper Card Refinement */
.yoseo-tool-main-card {
    background: var(--yoseo-card-bg);
    border-radius: 16px;
    border: 1px solid var(--yoseo-border);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    padding: 32px;
    max-width: 850px;
    margin: 32px auto;
}

/* Responsive Fixes */
@media (max-width: 640px) {
    .yoseo-elite-header {
        padding: 12px 16px;
    }
    .yoseo-elite-logo-img {
        height: 24px;
    }
    .yoseo-brand-sub {
        display: none;
    }
    .yoseo-tool-main-card {
        margin: 16px;
        padding: 20px;
        border-radius: 12px;
    }
}