/*
Theme Name: Native Backlinks
Theme URI: https://nativebacklinks.com
Author: Native Backlinks
Author URI: https://nativebacklinks.com
Description: Premium WordPress theme for selling high-authority backlinks (Podcast, Mozilla, Chrome, Amazon App Store, etc.). Modern, conversion-focused design with built-in marketplace, pricing tables, FAQ, and contact sections.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nativebacklinks
Tags: business, marketing, seo, marketplace, one-column, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #185FA5;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0c447c;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.25;
    font-weight: 600;
    color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-top: 0; margin-bottom: 1rem; }

/* ========================================
   LAYOUT
======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: #185FA5;
    color: #ffffff;
}

.btn-primary:hover {
    background: #0c447c;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    border-color: #185FA5;
    color: #185FA5;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

/* ========================================
   HEADER / NAVIGATION
======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo-icon {
    width: 32px;
    height: 32px;
    background: #185FA5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.main-nav a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover { color: #185FA5; }

.header-cta { display: flex; gap: 12px; align-items: center; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   HERO SECTION
======================================== */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #E6F1FB;
    color: #185FA5;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero h1 .highlight { color: #185FA5; }

.hero-sub {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.hero-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.hero-stat-lbl {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ========================================
   SECTION HEADER
======================================== */
.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-block;
    color: #185FA5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.section-head p {
    font-size: 1.0625rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PLATFORMS GRID
======================================== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.platform-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.2s ease;
    position: relative;
}

.platform-card:hover {
    border-color: #185FA5;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(24, 95, 165, 0.08);
}

.platform-card.popular {
    border: 2px solid #185FA5;
}

.platform-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    background: #185FA5;
    color: white;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.platform-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: 600;
}

.platform-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.5;
}

.platform-meta {
    font-size: 12px;
    color: #185FA5;
    font-weight: 500;
}

/* ========================================
   MARKETPLACE TABLE
======================================== */
.marketplace {
    background: #f9fafb;
}

.marketplace-table {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.marketplace-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    gap: 16px;
}

.marketplace-row:last-child { border-bottom: none; }

.marketplace-row.header {
    background: #f9fafb;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mp-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
}

.mp-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.mp-dr {
    font-weight: 600;
    color: #185FA5;
}

.mp-niche {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #4b5563;
    display: inline-block;
}

.mp-price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.mp-action .btn {
    padding: 8px 18px;
    font-size: 13px;
}

/* ========================================
   HOW IT WORKS
======================================== */
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.how-step {
    text-align: center;
    padding: 24px;
}

.how-num {
    width: 48px;
    height: 48px;
    background: #E6F1FB;
    color: #185FA5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.how-step h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.how-step p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   TRUST / FEATURES
======================================== */
.features {
    background: #f9fafb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px 28px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: #E6F1FB;
    color: #185FA5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 20px;
}

.feature-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   TESTIMONIALS
======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 12px;
    font-size: 14px;
}

.testimonial-text {
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #185FA5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.testimonial-name {
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
}

.testimonial-role {
    font-size: 12px;
    color: #6b7280;
}

/* ========================================
   FAQ
======================================== */
.faq {
    background: #f9fafb;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    font-family: inherit;
}

.faq-question:hover { background: #f9fafb; }

.faq-icon {
    transition: transform 0.2s;
    font-size: 20px;
    color: #185FA5;
    font-weight: 300;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   CTA SECTION
======================================== */
.cta-section {
    background: linear-gradient(135deg, #185FA5 0%, #0c447c 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.25rem;
    margin-bottom: 12px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    max-width: 580px;
    margin: 0 auto 32px;
}

.cta-section .btn-primary {
    background: white;
    color: #185FA5;
}

.cta-section .btn-primary:hover {
    background: #f3f4f6;
    color: #0c447c;
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-section .btn-secondary:hover {
    border-color: white;
    color: white;
}

/* ========================================
   FOOTER
======================================== */
.site-footer {
    background: #1a1a1a;
    color: #9ca3af;
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 16px;
    color: #9ca3af;
    max-width: 320px;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #9ca3af;
    font-size: 14px;
}

.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

/* ========================================
   BLOG / GENERIC PAGES
======================================== */
.page-header {
    background: #f9fafb;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.page-content {
    padding: 60px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.post-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.post-card:hover {
    border-color: #185FA5;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.post-thumb {
    aspect-ratio: 16/9;
    background: #f3f4f6;
    object-fit: cover;
    width: 100%;
}

.post-body { padding: 20px 24px; }

.post-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.post-card h3 {
    font-size: 1.0625rem;
    margin-bottom: 8px;
}

.post-card h3 a { color: #1a1a1a; }
.post-card h3 a:hover { color: #185FA5; }

.post-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Single post */
.single-post .entry-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
}

.single-post .entry-content h2,
.single-post .entry-content h3 {
    margin-top: 2rem;
}

.single-post .entry-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.form-row { margin-bottom: 20px; }

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.1);
}

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

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.5rem; }
    .platforms-grid,
    .features-grid,
    .testimonials-grid,
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    section { padding: 60px 0; }
    
    .menu-toggle { display: block; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 16px 24px;
    }
    
    .main-nav.active { display: block; }
    
    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }
    
    .header-cta .btn-secondary { display: none; }
    
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    
    .platforms-grid,
    .how-grid,
    .features-grid,
    .testimonials-grid,
    .post-grid { grid-template-columns: 1fr; }
    
    .marketplace-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .marketplace-row.header { display: none; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { justify-content: center; text-align: center; }
    
    .section-head h2 { font-size: 1.625rem; }
}

/* WordPress core classes */
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #6b7280; text-align: center; margin-top: 8px; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
