/* FullHunt Website Redesign - Dark Theme Overrides */

/* ========================================
   TYPOGRAPHY & TEXT ALIGNMENT
   ======================================== */

/* Base Typography */
body {
    background-color: #0d1117 !important;
    color: #c9d1d9;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings - Consistent weight and spacing */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1, .h1, .display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Display headings */
.display-1 { font-size: 5rem; }
.display-2 { font-size: 4.5rem; }
.display-3 { font-size: 4rem; }
.display-4 { font-size: 3rem; }
.display-5 { font-size: 2.5rem; }

/* Lead paragraphs */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.7;
    color: #ffffff;
}

/* Text color utilities */
.text-white { color: #ffffff !important; }
.text-gray { color: #e6e6e6 !important; }
.text-muted { color: #b8b8b8 !important; }

/* Paragraph spacing */
p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Text alignment utilities */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Vertical spacing utilities */
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 0.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* Ensure consistent text rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Ensure ALL buttons use FullHunt yellow/gold color - MAXIMUM OVERRIDE */
.new-btn-primary,
.new-btn-secondary,
.btn-primary,
a.new-btn-primary,
a.new-btn-secondary,
a.btn-primary,
button.new-btn-primary,
button.new-btn-secondary,
button.btn-primary,
.new-btn.new-btn-primary,
a.new-btn.new-btn-primary,
.new-btn-primary.btn-lg,
a.new-btn-primary.btn-lg,
.btn-lg.new-btn-primary {
    background-color: #ffd012 !important;
    color: #000000 !important;
    border: none !important;
}

.new-btn-primary:hover,
.new-btn-secondary:hover,
.btn-primary:hover,
a.new-btn-primary:hover,
a.new-btn-secondary:hover,
a.btn-primary:hover,
button.new-btn-primary:hover,
button.new-btn-secondary:hover,
button.btn-primary:hover,
.new-btn.new-btn-primary:hover,
a.new-btn.new-btn-primary:hover,
.new-btn-primary.btn-lg:hover,
a.new-btn-primary.btn-lg:hover,
.btn-lg.new-btn-primary:hover {
    background-color: #ffda3d !important;
    color: #000000 !important;
}

/* Force yellow for ANY link or button with these classes */
a[class*="new-btn-primary"],
button[class*="new-btn-primary"],
.btn-lg[class*="new-btn-primary"] {
    background-color: #ffd012 !important;
    color: #000000 !important;
    border: none !important;
}

a[class*="new-btn-primary"]:hover,
button[class*="new-btn-primary"]:hover,
.btn-lg[class*="new-btn-primary"]:hover {
    background-color: #ffda3d !important;
    color: #000000 !important;
}

/* Override the gradient text to use yellow accent */
.text-gradient {
    background: linear-gradient(90deg, #ffd012 0%, #ffda3d 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-block;
}

.new-btn-outline-primary {
    background-color: transparent !important;
    border: 2px solid #ffd012 !important;
    color: #ffd012 !important;
}

.new-btn-outline-primary:hover {
    background-color: #ffd012 !important;
    color: #000000 !important;
}

/* Override any blue/primary colors to yellow */
.bg-primary {
    background-color: #ffd012 !important;
}

.text-primary {
    color: #ffd012 !important;
}

.border-primary {
    border-color: #ffd012 !important;
}

/* Badge colors */
.badge.bg-primary {
    background-color: #ffd012 !important;
    color: #000000 !important;
}

/* Product and Solution Pages */
.product-asm,
.product-vuln-intelligence,
.product-data-apis,
.product-owl,
.product-global-search,
.product-oem-apis,
.solution-security-teams,
.solution-security-vendors,
.solution-government-certs,
.solution-mssps,
.solution-third-party-risk,
.solution-ma,
.solution-incident-response,
.solution-exposure-reduction,
.products-hub,
.solutions-hub,
.how-it-works-page,
.integrations-page,
.resources-guides,
.why-fullhunt-page {
    background-color: #0d1117;
    min-height: 100vh;
}

/* Section backgrounds */
.section-bg-dark {
    background-color: #0d1117;
}

.section-bg-darker {
    background-color: #161b22;
}

/* ========================================
   CARDS & COMPONENTS
   ======================================== */

/* Base card styles */
.card {
    background-color: #161b22 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 1.5rem;
}

/* Feature cards */
.feature-card,
.choose-card,
.use-case-card,
.capability-item,
.integration-item,
.benefit-card,
.outcome-card,
.work-step,
.workflow-step {
    background-color: #161b22 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover,
.choose-card:hover,
.use-case-card:hover {
    background-color: #1c2128 !important;
    transform: translateY(-3px);
    border-color: rgba(255, 208, 18, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Capability items - horizontal layout with icons */
.capability-item {
    background-color: transparent !important;
    border: none !important;
    padding: 1rem 0;
}

.capability-item h5 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.capability-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Outcome cards - centered text */
.outcome-card {
    text-align: center;
    height: 100%;
}

.outcome-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.outcome-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Work step cards - process flow */
.work-step {
    text-align: center;
    background-color: transparent !important;
    border: none !important;
}

.work-step h4 {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.work-step p {
    font-size: 0.95rem;
}

/* Screenshot cards */
.screenshot-card {
    margin-bottom: 2rem;
}

.screenshot-card img {
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-card p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Product tiles */
.product-tile,
.solution-card {
    background-color: #161b22 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.product-tile:hover,
.solution-card:hover {
    background-color: #1c2128 !important;
    border-color: rgba(127, 122, 237, 0.3) !important;
}

/* Ensure cards are visible */
.products-hub .card,
.solutions-hub .card {
    background-color: #161b22 !important;
    min-height: 300px;
}

.products-hub h3,
.solutions-hub h4 {
    color: #ffffff !important;
}

/* Stats and proof points */
.stat-card {
    padding: 2rem;
    background-color: #161b22 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
}

/* Ensure all headings in products/solutions are visible */
.product-asm h1,
.product-asm h2,
.product-asm h3,
.product-asm h4,
.product-asm h5,
.product-vuln-intelligence h1,
.product-vuln-intelligence h2,
.product-vuln-intelligence h3,
.product-vuln-intelligence h4,
.product-vuln-intelligence h5,
.product-data-apis h1,
.product-data-apis h2,
.product-data-apis h3,
.product-data-apis h4,
.product-data-apis h5,
.solution-security-teams h1,
.solution-security-teams h2,
.solution-security-teams h3,
.solution-security-teams h4,
.solution-third-party-risk h1,
.solution-third-party-risk h2,
.solution-third-party-risk h3,
.solution-third-party-risk h4 {
    color: #ffffff !important;
}

/* CTA blocks */
.cta-block {
    border-radius: 1rem;
}

.cta-block-multi .card {
    background-color: #161b22;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-block-multi .card:hover {
    background-color: #1c2128;
    border-color: rgba(127, 122, 237, 0.3);
}

/* Integration logos */
.integration-logo img {
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.integration-logo:hover img {
    filter: grayscale(0%) brightness(1) sepia(0.3) hue-rotate(240deg) saturate(3);
    opacity: 1;
}

/* Purple tint for specific section logos */
.integrations-page .card img,
.why-teams-section img {
    transition: filter 0.3s ease;
}

.integrations-page .card:hover img {
    filter: sepia(0.3) hue-rotate(240deg) saturate(2.5);
}

/* Code previews */
.code-preview {
    background-color: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   SECTIONS & CONTAINERS
   ======================================== */

/* Hero sections */
.hero-section {
    padding: 5rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    margin-bottom: 2rem;
}

.hero-content .d-flex {
    margin-bottom: 2rem;
}

/* Section spacing */
section {
    padding: 2rem 0;
}

section.py-5 {
    padding: 4rem 0 !important;
}

/* Container max-widths for readability */
.container .col-lg-10.mx-auto {
    max-width: 900px;
}

.container .col-lg-8.mx-auto {
    max-width: 750px;
}

/* Background sections */
.bg-dark {
    background-color: #161b22 !important;
    padding: 3rem 2rem;
    border-radius: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Desktop (1200px and above) */
@media (min-width: 1200px) {
    .display-4 {
        font-size: 3.5rem;
    }
    
    .lead {
        font-size: 1.3rem;
    }
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.15rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    h1, .h1 {
        font-size: 2.5rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
}

/* Mobile (below 768px) */
@media (max-width: 767px) {
    .display-1, .display-2, .display-3, .display-4, .display-5 {
        font-size: 2rem !important;
        line-height: 1.3;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
    }
    
    h3, .h3 {
        font-size: 1.5rem;
    }
    
    h4, .h4 {
        font-size: 1.25rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section.py-5 {
        padding: 2rem 0 !important;
    }
    
    /* Stack buttons vertically on mobile */
    .d-flex.gap-2,
    .d-flex.gap-3 {
        flex-direction: column !important;
    }
    
    .d-flex.gap-2 > *,
    .d-flex.gap-3 > * {
        width: 100% !important;
    }
    
    /* Full width buttons on mobile */
    .new-btn,
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Card spacing */
    .card-body {
        padding: 1.25rem;
    }
    
    /* Reduce icon sizes on mobile */
    .work-step img,
    .capability-item img {
        height: 40px !important;
    }
    
    .outcome-card i,
    .choose-card i {
        font-size: 2rem !important;
    }
}

/* Small mobile (below 576px) */
@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    h1, .h1 {
        font-size: 1.75rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ========================================
   ADDITIONAL UTILITIES
   ======================================== */

/* Background utilities */
.bg-natural-200 {
    background-color: #161b22 !important;
}

/* Border radius utilities */
.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-1 {
    border-radius: 0.375rem !important;
}

/* Text utilities */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.text-success {
    color: #10b981 !important;
}

.fs-5 {
    font-size: 1.25rem !important;
}

.fs-6 {
    font-size: 1rem !important;
}

/* Gap utilities */
.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 2rem !important;
}

.gap-5 {
    gap: 3rem !important;
}

/* Image max-width utility */
.w-100 {
    width: 100% !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

/* Ensure search section stands out */
.search-section {
    position: relative;
    z-index: 2;
}

/* Glowing effect for special cards */
.glowing-card {
    position: relative;
}

.glowing-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(255, 208, 18, 0.3), rgba(127, 122, 237, 0.2));
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.glowing-card:hover::before {
    opacity: 1;
}

/* Glowing card small - for icon containers */
.glowing-card-small {
    display: inline-block;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.glowing-card-small:hover {
    transform: scale(1.05);
}

/* Gradient badge for section titles */
.new-badge-gradient {
    background: linear-gradient(90deg, #7f7aed 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Gradient badge wrapper */
.gradient-badge-wrapper {
    display: inline-block;
}

/* Background natural colors */
.bg-natural-300 {
    background-color: #1c2128 !important;
}

.bg-natural-150 {
    background-color: #161b22 !important;
}

/* Platform cards special styling */
.platform-card {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: rgba(255, 208, 18, 0.4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.platform-card .image-container {
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.platform-card .image-container img {
    transition: transform 0.3s ease;
}

.platform-card:hover .image-container img {
    transform: scale(1.05);
}

/* Icon sizing consistency */
i[style*="font-size: 3rem"],
i[style*="font-size: 3.5rem"] {
    display: inline-block;
}

/* Ensure proper section separation */
section + section {
    position: relative;
}

/* Fix for any lingering layout issues */
.row {
    margin-left: 0;
    margin-right: 0;
}

.col, [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure SVG responsiveness */
svg {
    max-width: 100%;
    height: auto;
}

/* ========================================
   SEARCH SECTION STYLING
   ======================================== */

/* Search section background */
.bg-gradient-dark {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
}

/* Search container */
section.search {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Search input group */
.new-input-search {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.new-input-search:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.new-input-search:focus-within {
    border-color: rgba(255, 208, 18, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 208, 18, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Search input field */
.new-input-search input.form-control {
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    box-shadow: none !important;
}

.new-input-search input.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}

.new-input-search input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Search button/icon */
.new-input-search button,
.new-input-search .la-search {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
    padding-right: 1rem;
    cursor: pointer;
}

.new-input-search:hover button,
.new-input-search:hover .la-search {
    color: rgba(255, 255, 255, 0.8);
}

/* Search suggestions dropdown */
.suggessions {
    z-index: 1000;
}

.suggessions-list {
    background-color: #161b22 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.suggession-card {
    color: #c9d1d9;
    transition: all 0.2s ease;
}

.suggession-card:hover {
    background-color: rgba(255, 208, 18, 0.1) !important;
    color: #ffffff;
}

/* Legacy search input styling (fallback) */
.search-section input[type="text"],
.search-section input[type="search"] {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.search-section input[type="text"]:focus,
.search-section input[type="search"]:focus {
    border-color: rgba(255, 208, 18, 0.5) !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 208, 18, 0.1) !important;
    outline: none;
}

/* Fix card text colors */
.card h5,
.card h4,
.card h3 {
    color: #ffffff !important;
}

.card p {
    color: #e6e6e6 !important;
}

.card .text-gray {
    color: #e6e6e6 !important;
}

/* Ensure buttons are always visible and properly styled */
.new-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.new-btn.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ========================================
   INTEGRATION SCROLLER
   ======================================== */

/* Scroller container */
.scroller {
    max-width: 100%;
    overflow: hidden;
    margin: 2rem 0;
}

.scroller__inner {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
}

/* Integration card styling */
.integration-card {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 80px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.integration-card:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 208, 18, 0.3) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.integration-card img {
    max-width: 100%;
    max-height: 40px;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.integration-card:hover img {
    filter: brightness(1.1);
}

.integration-card span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Tag list for integration logos */
.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tag-list li {
    flex-shrink: 0;
}


/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Fade up animation for sections */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section should be immediately visible */
.hero-section {
    opacity: 1 !important;
    transform: none !important;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ================================================
   FOOTER SPACING & LINE-HEIGHT IMPROVEMENTS
   ================================================ */

/* Reduce spacing between footer list items */
footer .list-unstyled li {
    margin-bottom: 0.65rem !important; /* Reduced from mb-3 (1rem) */
    line-height: 1.5;
}

/* Footer links */
footer .list-unstyled a {
    line-height: 1.5;
    display: inline-block;
}

/* Footer paragraphs */
footer p {
    line-height: 1.6;
}

/* Footer headings - tighter spacing */
footer h5 {
    margin-bottom: 1rem !important; /* Reduced from 1.5rem */
    line-height: 1.3;
}

footer h6 {
    margin-bottom: 1rem !important; /* Reduced from 1.5rem */
    line-height: 1.3;
}

/* Newsletter section spacing */
footer #mc_embed_signup {
    margin-bottom: 2rem !important; /* Reduced from mb-5 (3rem) */
}

/* Social media section spacing */
footer .mb-5 {
    margin-bottom: 2rem !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    footer .list-unstyled li {
        margin-bottom: 0.5rem !important;
        line-height: 1.4;
    }
    
    footer h5 {
        margin-bottom: 0.75rem !important;
    }
    
    footer h6 {
        margin-bottom: 0.75rem !important;
    }
}
