/* Search Arbitrage Dark Blue Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a1628;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #0d1e36;
    padding: 15px 0;
    border-bottom: 1px solid #1a3a5c;
}

.site-header .container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00d4ff;
    text-decoration: none;
}

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.site-header nav a {
    margin-left: 25px;
    color: #8ba3c7;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.site-header nav a:hover {
    color: #00d4ff;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #0d1e36 0%, #152642 100%);
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero p {
    font-size: 1.1rem;
    color: #a0b4cc;
}

/* Article Hero */
.article-hero {
    background: linear-gradient(180deg, #0d1e36 0%, #152642 100%);
    padding: 40px 20px;
    text-align: center;
}

.article-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.article-hero p {
    font-size: 1rem;
    color: #a0b4cc;
}

/* Hero Image Container */
.hero-image {
    max-width: 700px;
    margin: 0 auto 30px;
    border-radius: 12px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Meta */
.article-meta {
    color: #7a94b8;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Article Content */
.article-content {
    background: #0d1e36;
    padding: 30px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 800px;
}

.article-content h2 {
    color: #ffffff;
    margin: 25px 0 15px 0;
    font-size: 1.4rem;
}

.article-content h3 {
    color: #00d4ff;
    margin: 20px 0 10px 0;
    font-size: 1.15rem;
}

.article-content p {
    margin-bottom: 18px;
    color: #c5d5e8;
    font-size: 1rem;
    line-height: 1.7;
}

.article-content ul, .article-content ol {
    margin: 15px 0 20px 25px;
}

.article-content li {
    margin-bottom: 10px;
    color: #c5d5e8;
}

.article-content strong {
    color: #ffffff;
}

/* ============================================
   RELATED SEARCHES - THE MONEY MAKER
   ============================================ */
.related-searches {
    background: #0d1e36;
    padding: 30px 20px;
    margin: 30px auto;
    max-width: 800px;
}

.related-searches h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.search-terms {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-term {
    background: linear-gradient(135deg, #0a1628 0%, #0d1e36 100%);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 18px 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.search-term:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
    border-color: #00d4ff;
    color: #0a1628;
    transform: translateX(5px);
}

.search-term::before {
    content: none;
}

.search-term::after {
    content: "›";
    font-size: 1.8rem;
    font-weight: 300;
    color: #00d4ff;
    transition: color 0.3s;
}

.search-term:hover::after {
    color: #0a1628;
}

/* Search Feed Container */
#search-feed-container {
    margin: 30px auto;
    max-width: 800px;
}

/* Categories Grid - Homepage */
.categories {
    padding: 40px 20px;
    background: #0a1628;
}

.categories h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 1.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    background: #0d1e36;
    border: 1px solid #1a3a5c;
    border-left: 3px solid #00d4ff;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    cursor: pointer;
}

.category-card::after {
    content: "→";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d4ff;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.25s ease;
}

.category-card:hover {
    border-color: #00d4ff;
    border-left-width: 4px;
    transform: translateX(5px);
    background: linear-gradient(135deg, #0d1e36 0%, #152a42 100%);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

.category-card:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}

.category-card h3 {
    color: #00d4ff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.category-card p {
    color: #8ba3c7;
    font-size: 0.95rem;
    padding-right: 30px;
}

/* Top Stories / Featured Section */
.top-stories {
    padding: 40px 20px;
    background: #0a1628;
}

.top-stories h2, .top-stories h3 {
    color: #ffffff;
    margin-bottom: 25px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.story-card {
    background: #0d1e36;
    border: 1px solid #1a3a5c;
    border-top: 3px solid #00d4ff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
    cursor: pointer;
}

.story-card:hover {
    border-color: #00d4ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.story-card-content {
    padding: 20px;
}

.story-card h4 {
    color: #00d4ff;
    margin-bottom: 8px;
    font-size: 1rem;
}

.story-card p {
    color: #8ba3c7;
    font-size: 0.9rem;
}

.story-card.featured {
    border-top: 3px solid #00d4ff;
}

/* Category Tag */
.category-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background: #050d18;
    color: #6b829e;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid #1a3a5c;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer nav a {
    color: #6b829e;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.site-footer nav a:hover {
    color: #00d4ff;
}

.site-footer .business-info {
    font-size: 0.85rem;
    color: #4a6585;
    margin-top: 5px;
}

/* Related Articles */
.related-articles {
    background: #0d1e36;
    border: 1px solid #1a3a5c;
    border-radius: 8px;
    padding: 20px 25px;
    margin: 30px 0;
}

.related-articles h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin: 10px 0;
}

.related-articles a {
    color: #8ba3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.related-articles a:hover {
    color: #00d4ff;
}

/* Cookie Consent - Compact corner toast */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    max-width: 320px;
    background: #0d1e36;
    color: #c5d5e8;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
    border-radius: 12px;
    border: 1px solid #1a3a5c;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cookie-consent p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.cookie-consent button {
    background: #00d4ff;
    color: #0a1628;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    width: fit-content;
}

.cookie-consent button:hover {
    background: #00a8cc;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .cookie-consent {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .cookie-consent p {
        font-size: 0.8rem;
        flex: 1;
    }

    .cookie-consent button {
        padding: 8px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }
}

/* About/Content Pages */
.about-content {
    background: #0d1e36;
    padding: 40px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 800px;
}

.about-content h2 {
    color: #ffffff;
    margin: 25px 0 15px 0;
    font-size: 1.3rem;
}

.about-content p {
    margin-bottom: 15px;
    color: #c5d5e8;
    line-height: 1.7;
}

.about-content ul {
    margin: 15px 0 15px 25px;
}

.about-content li {
    margin-bottom: 8px;
    color: #c5d5e8;
}

/* ============================================
   MOBILE RESPONSIVE - Clean Navigation
   ============================================ */
@media (max-width: 768px) {
    .hero h1, .article-hero h1 {
        font-size: 1.5rem;
    }

    .article-content, .related-searches {
        margin: 15px;
        padding: 20px;
    }

    .search-term {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .site-footer nav a {
        margin: 0 10px;
    }
}

/* Author Byline Styles */
.author-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #6b7280;
}

.author-byline .author-name a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.author-byline .author-name a:hover {
    text-decoration: underline;
}

.author-byline .separator {
    color: #d1d5db;
}

@media (max-width: 768px) {
    .author-byline {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .author-byline .separator {
        display: none;
    }
}

/* Editor's Insight Box */
.editors-insight {
    background: linear-gradient(135deg, #1a365d 0%, #0d1e36 100%);
    border-left: 4px solid #00d4ff;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
}

.editors-insight h4 {
    color: #00d4ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editors-insight h4::before {
    content: "💡";
}

.editors-insight p {
    color: #c7d2e0;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.editors-insight p + p {
    margin-top: 12px;
}

.editors-insight .author-note {
    font-style: italic;
    color: #8ba3c7;
    font-size: 13px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #2a4a6c;
}

/* Sources & References Section */
.article-sources {
    background: #0d1e36;
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    border: 1px solid #1a3a5c;
}

.article-sources h3 {
    color: #00d4ff;
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1a3a5c;
}

.article-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sources li {
    padding: 8px 0;
    font-size: 14px;
    color: #8ba3c7;
    border-bottom: 1px solid #152a42;
}

.article-sources li:last-child {
    border-bottom: none;
}

.article-sources a {
    color: #60a5fa;
    text-decoration: none;
}

.article-sources a:hover {
    text-decoration: underline;
}

.article-sources .source-org {
    color: #c7d2e0;
    font-weight: 500;
}

/* Inline citation style */
.citation {
    color: #60a5fa;
    font-size: 12px;
    vertical-align: super;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:focus {
    outline: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #00d4ff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .site-header nav {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #0d1e36;
        flex-direction: column;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .site-header nav.active {
        right: 0;
    }

    .site-header nav a {
        margin: 0;
        padding: 18px 0;
        font-size: 18px;
        border-bottom: 1px solid #1a3a5c;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .site-header nav a::after {
        content: "›";
        font-size: 24px;
        color: #00d4ff;
        opacity: 0.6;
    }

    .site-header nav a:last-child {
        border-bottom: none;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .menu-overlay.active {
        display: block;
    }
}

/* Contact Form Styles */
.contact-form-container {
    background: #0d1e36;
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0 40px;
    border: 1px solid #1a3a5c;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    color: #c7d2e0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0a1628;
    border: 1px solid #1a3a5c;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b7280;
}

.contact-form select {
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #0a1628;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

@media (max-width: 768px) {
    .contact-form-container {
        padding: 24px 20px;
    }
}
