/* ============================================
   EDITORIAL BLACK & WHITE DESIGN
   Bold, High-Contrast, Modern, Professional
   4 Colors: #000000, #8C8889, #CFCFD3, #FFFFFF
   Inspired by: Bold editorial magazine layouts
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --black: #000000;
    --slate: #8C8889;
    --pearl: #CFCFD3;
    --white: #FFFFFF;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   HEADER - BOLD SPLIT DESIGN
   ========================================== */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 320px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--white);
    z-index: 0;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--black);
    z-index: 0;
}

.site-title {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    padding: 70px 40px 30px;
    width: 100%;
    background: linear-gradient(90deg, var(--black) 50%, var(--white) 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .site-title {
        color: var(--black);
    }
}

.tagline {
    position: relative;
    z-index: 2;
    background: var(--black);
    color: var(--white);
    padding: 15px 35px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.vault-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    max-width: 150px;
    height: auto;
}

/* ==========================================
   NAVIGATION - BOLD BLACK BAR
   ========================================== */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--black);
    border-bottom: 4px solid var(--white);
}

.sticky-nav-inner {
    display: flex;
    gap: 0;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    overflow-x: auto;
}

.nav-link {
    padding: 1.25rem 1.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-right: 1px solid var(--slate);
}

.nav-link:last-child {
    border-right: none;
}

.nav-link:hover, .nav-link.active {
    background: var(--white);
    color: var(--black);
}

/* LinkedIn CTA - More Visible in Nav */
.linkedin-cta {
    background: var(--white) !important;
    color: var(--black) !important;
    border-left: 2px solid var(--white) !important;
    margin-left: 0.75rem !important;
    font-weight: 700 !important;
}

.linkedin-cta i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.linkedin-cta:hover {
    background: var(--pearl) !important;
    color: var(--black) !important;
}

/* ==========================================
   SEARCH - CLEAN WHITE SECTION
   ========================================== */
.nav {
    background: var(--pearl);
    padding: 2.5rem 0;
    border-bottom: 4px solid var(--black);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: 3px solid var(--black);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    background: var(--white);
    color: var(--black);
    transition: all 0.2s ease;
    outline: none;
}

.search-input::placeholder {
    color: var(--slate);
    font-weight: 400;
}

.search-input:focus {
    box-shadow: 6px 6px 0 var(--black);
    transform: translate(-3px, -3px);
}

.search-hint {
    font-size: 0.7rem;
    color: var(--black);
    margin-top: 1rem;
    display: block;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.search-hint kbd {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
}

#clearSearch {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--black);
    border: none;
    color: var(--white);
    font-size: 0.9rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* ==========================================
   SECTION HEADERS - BOLD EDITORIAL
   ========================================== */
.tools-section {
    margin-bottom: 0;
    padding: 0;
}

.section-title {
    background: var(--black);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 1rem 2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.section-title::after {
    content: '▼';
    position: absolute;
    right: 2rem;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.tools-section.collapsed .section-title::after {
    transform: rotate(-90deg);
}

.section-title::before {
    content: '';
    width: 40px;
    height: 4px;
    background: var(--white);
}

.section-intro {
    background: var(--white);
    color: var(--slate);
    font-size: 0.85rem;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--pearl);
    margin: 0;
}

/* Collapsible section content */
.section-content {
    max-height: 5000px;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.tools-section.collapsed .section-content {
    max-height: 0;
}

.tools-section.collapsed .section-intro {
    display: none;
}

/* ==========================================
   TOOL CARDS - GRID WITH BOLD BORDERS
   ========================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    background: var(--white);
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--pearl);
    border-right: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
    padding: 1.25rem;
    transition: all 0.2s ease;
    position: relative;
}

.tool-card:nth-child(3n) {
    border-right: 1px solid var(--pearl);
}

.tool-card:hover {
    background: var(--black);
    color: var(--white);
}

.tool-card:hover .tool-header h3,
.tool-card:hover .tool-description,
.tool-card:hover .tool-url strong,
.tool-card:hover .tool-url a,
.tool-card:hover .tool-tag,
.tool-card:hover .tool-usage-details summary {
    color: var(--white);
}

.tool-card:hover .tool-badge {
    background: var(--white);
    color: var(--black);
}

.tool-card.hidden { display: none; }

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.6rem;
    gap: 0.75rem;
}

.tool-header h3 {
    color: var(--black);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

/* ==========================================
   BADGES - BOLD STYLE
   ========================================== */
.tool-badge {
    background: var(--black);
    color: var(--white);
    padding: 0.35rem 0.8rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.tool-badge.free {
    background: var(--black);
    color: var(--white);
}

.tool-badge.freemium {
    background: var(--slate);
    color: var(--white);
}

.tool-badge.paid, .tool-badge.premium {
    background: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
}

.tool-badge.cli {
    background: var(--pearl);
    color: var(--black);
    border: 2px solid var(--black);
}

.tool-description {
    color: var(--slate);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.tool-url {
    background: var(--pearl);
    border-left: 4px solid var(--black);
    padding: 0.5rem 0.75rem;
    margin: 0.6rem 0;
    transition: all 0.2s ease;
}

.tool-card:hover .tool-url {
    background: var(--slate);
    border-left-color: var(--white);
}

.tool-url strong {
    color: var(--black);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.tool-url a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.tool-url a:hover {
    text-decoration: underline;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tool-tag {
    background: transparent;
    color: var(--slate);
    padding: 0.3rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 600;
    border: 2px solid var(--pearl);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.tool-card:hover .tool-tag {
    border-color: var(--slate);
}

/* ==========================================
   SECTIONS DIVIDERS
   ========================================== */
.tools-section {
    border-bottom: none;
}

.tools-section.hidden { display: none; }

/* ==========================================
   START HERE - BOLD BOX
   ========================================== */
.start-here-section {
    background: var(--black);
    padding: 2.5rem 3rem;
    margin: 0;
}

.start-here-section h3 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.start-here-section p {
    color: var(--pearl);
    margin-bottom: 1.5rem;
}

.start-here-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.start-here-link {
    background: var(--white);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    border: 3px solid var(--white);
}

.start-here-link:hover {
    background: var(--black);
    color: var(--white);
    transform: translate(-3px, -3px);
    box-shadow: 3px 3px 0 var(--white);
}

/* ==========================================
   TOOL USAGE DETAILS
   ========================================== */
.tool-usage-details {
    margin-top: 0.75rem;
    border-top: 2px solid var(--pearl);
    padding-top: 0.6rem;
}

.tool-card:hover .tool-usage-details {
    border-top-color: var(--slate);
}

.tool-usage-details summary {
    color: var(--black);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.tool-usage-details summary:hover {
    color: var(--slate);
}

.usage-content {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--pearl);
    font-size: 0.85rem;
    color: var(--black);
    line-height: 1.7;
}

.tool-card:hover .usage-content {
    background: var(--slate);
    color: var(--white);
}

.usage-content ol, .usage-content ul {
    margin-left: 1.25rem;
}

.usage-content a {
    color: var(--black);
    font-weight: 600;
}

.tool-card:hover .usage-content a {
    color: var(--white);
}

/* ==========================================
   SUBSCRIBE - SPLIT DESIGN
   ========================================== */
.subscribe-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    border-top: 4px solid var(--black);
}

.subscribe-section h3 {
    grid-column: 1;
    background: var(--black);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    margin: 0;
}

.subscribe-section p {
    display: none;
}

.subscribe-form {
    grid-column: 2;
    display: flex;
    gap: 0;
    background: var(--white);
    padding: 0;
    margin: 0;
}

.subscribe-form input {
    flex: 1;
    padding: 2rem 1.5rem;
    border: none;
    border-left: 4px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
}

.subscribe-form input::placeholder {
    color: var(--slate);
}

.subscribe-form button {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 2rem 2.5rem;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subscribe-form button:hover {
    background: var(--slate);
}

/* ==========================================
   HIGHLIGHTS
   ========================================== */
mark, .highlight {
    background: var(--black);
    color: var(--white);
    padding: 0 4px;
}

.highlight-badge {
    background: var(--pearl);
    color: var(--black);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
    margin-right: 0.5rem;
}

.highlight-badge .stat-number {
    font-weight: 800;
}

.tool-key-features {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--pearl);
}

.tool-key-features h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.tool-card:hover .tool-key-features h4 {
    color: var(--white);
}

.tool-key-features ul {
    list-style: none;
    padding: 0;
}

.tool-key-features li {
    font-size: 0.85rem;
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--slate);
}

.tool-card:hover .tool-key-features li {
    color: var(--pearl);
}

.tool-key-features li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--black);
}

.tool-card:hover .tool-key-features li::before {
    color: var(--white);
}

.tool-note {
    font-size: 0.85rem;
    color: var(--slate);
    font-style: italic;
    margin-bottom: 1rem;
}

.tool-card:hover .tool-note {
    color: var(--pearl);
}

.tool-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* ==========================================
   FOOTER
   ========================================== */
/* ==========================================
   FLOATING QUICK-JUMP MENU
   ========================================== */
.quick-jump {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-jump-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.quick-jump-btn:hover {
    background: var(--white);
    color: var(--black);
    transform: translateX(-5px);
}

.quick-jump-btn:hover::before {
    content: attr(data-label);
    position: absolute;
    right: 54px;
    background: var(--black);
    color: var(--white);
    padding: 8px 12px;
    font-size: 0.7rem;
    white-space: nowrap;
    letter-spacing: 1px;
}

.quick-jump-btn.active {
    background: var(--white);
    color: var(--black);
}

/* Mobile Quick Jump Toggle */
.quick-jump-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--black);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.quick-jump-toggle:hover {
    background: var(--slate);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--black);
    padding: 2.5rem 2rem;
    text-align: center;
}

footer p {
    color: var(--slate);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Footer LinkedIn Link - Enhanced Visibility */
.footer-linkedin-link {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.footer-linkedin-link i {
    margin-right: 8px;
    font-size: 1rem;
}

.footer-linkedin-link:hover {
    background: var(--pearl);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-card:nth-child(3n) {
        border-right: 1px solid var(--black);
    }
    
    .tool-card:nth-child(2n) {
        border-right: 1px solid var(--pearl);
    }
}

@media (max-width: 768px) {
    .header {
        min-height: 200px;
    }
    
    .site-title {
        font-size: 1.5rem;
        letter-spacing: 4px;
        padding: 40px 20px 15px;
    }
    
    .tagline {
        font-size: 0.6rem;
        padding: 10px 15px;
        letter-spacing: 1px;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    
    .nav-link {
        padding: 0.8rem 0.8rem;
        font-size: 0.6rem;
    }
    
    .sticky-nav-inner {
        justify-content: flex-start;
    }
    
    .section-title {
        font-size: 0.85rem;
        padding: 1rem 1.25rem;
        letter-spacing: 2px;
    }
    
    .section-title::after {
        right: 1.25rem;
    }
    
    .section-intro {
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        border-right: 1px solid var(--pearl) !important;
        padding: 1rem;
    }
    
    .search-hint {
        display: none;
    }
    
    /* Mobile Quick Jump */
    .quick-jump {
        display: none;
        position: fixed;
        bottom: 80px;
        right: 20px;
        top: auto;
        transform: none;
        background: var(--white);
        border: 3px solid var(--black);
        padding: 10px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }
    
    .quick-jump.open {
        display: flex;
    }
    
    .quick-jump-btn {
        width: 40px;
        height: 40px;
        font-size: 0.6rem;
    }
    
    .quick-jump-btn:hover::before {
        display: none;
    }
    
    .quick-jump-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .start-here-section {
        padding: 1.5rem 1.25rem;
    }
    
    .start-here-links {
        flex-direction: column;
    }
    
    .subscribe-section {
        grid-template-columns: 1fr;
    }
    
    .subscribe-section h3 {
        padding: 1.5rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .subscribe-form input {
        border-left: none;
        border-top: 4px solid var(--black);
        padding: 1.25rem;
    }
    
    .subscribe-form button {
        padding: 1.25rem;
    }
}

/* ==========================================
   TIP CARDS & INFO CARDS
   ========================================== */
.tip-card, .info-card {
    background: var(--white);
    border: 1px solid var(--pearl);
    border-left: 4px solid var(--black);
    padding: 1.5rem 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.tip-card h3, .info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--black);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--pearl);
    display: flex;
    align-items: center;
}

.tip-card h4, .info-card h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.75rem 0 0.4rem;
    color: var(--black);
}

.tip-card p, .info-card p {
    font-size: 0.85rem;
    color: var(--slate);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.tip-card ul, .info-card ul,
.tip-card ol, .info-card ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.tip-card li, .info-card li {
    font-size: 0.85rem;
    color: var(--slate);
    padding: 0.3rem 0;
    line-height: 1.6;
}

.tip-card li strong, .info-card li strong {
    color: var(--black);
}

.tip-icon {
    margin-right: 10px;
    color: var(--black);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.cli-instructions {
    background: var(--black);
    padding: 1rem;
    margin: 0.75rem 0;
}

.cli-instructions code {
    display: block;
    color: var(--pearl);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 0.25rem 0;
    line-height: 1.5;
}

/* Tips section wrapper - organized grid layout */
.tips-section .section-content {
    padding: 1.5rem 2rem 2rem;
    background: var(--white);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.tips-section .tip-card {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .tips-section .section-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tip-card, .info-card {
        padding: 1rem 1rem 0.75rem;
    }
    
    .tips-section .section-content {
        padding: 0.75rem 1.25rem;
    }
}
