/*
Theme Name: PodSponsor
Theme URI: https://podsponsor.net
Author: Nerd Daddies
Author URI: https://podsponsor.net
Description: Podcast Sponsorship Marketplace — connecting small creators with brands.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ps
*/

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

:root {
    --color-primary:    #5B21B6;   /* deep purple */
    --color-secondary:  #7C3AED;   /* vivid purple */
    --color-accent:     #F59E0B;   /* amber - nerd energy */
    --color-dark:       #0F0A1A;
    --color-bg:         #F9F7FF;
    --color-surface:    #FFFFFF;
    --color-text:       #1F1235;
    --color-muted:      #6B7280;
    --color-border:     #E5E7EB;

    --font-heading: 'Inter', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --radius:    8px;
    --radius-lg: 16px;
    --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =========================================
   LAYOUT
   ========================================= */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 4rem 0; }

/* =========================================
   NAVIGATION
   ========================================= */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 100;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.site-logo { font-size: 1.25rem; font-weight: 800; color: var(--color-primary); }
.site-logo span { color: var(--color-accent); }

.main-nav { display: flex; gap: 2rem; align-items: center; }
.main-nav a { color: var(--color-text); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: var(--color-secondary); text-decoration: none; }

.nav-cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: .5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
}
.nav-cta:hover { background: var(--color-secondary); }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600; font-size: .95rem;
    cursor: pointer; border: none; transition: all .15s;
    text-decoration: none;
}
.btn-primary  { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-secondary); color: #fff; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.1); color: #fff; text-decoration: none; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }

/* =========================================
   HERO
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
    color: #fff; text-align: center;
    padding: 6rem 0;
}
.hero-badge {
    display: inline-block;
    background: rgba(245,158,11,.2);
    color: var(--color-accent);
    border: 1px solid rgba(245,158,11,.4);
    border-radius: 99px; padding: .25rem 1rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--color-accent); }
.hero p  { font-size: 1.2rem; opacity: .85; max-width: 600px; margin: 0 auto 2.5rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =========================================
   CARDS
   ========================================= */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* Creator / Podcast Card */
.creator-card-avatar {
    width: 64px; height: 64px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--color-border);
    margin-bottom: 1rem;
}
.creator-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }
.creator-card .niche-tag {
    display: inline-block;
    background: #EDE9FE; color: var(--color-primary);
    border-radius: 99px; padding: .15rem .75rem;
    font-size: .75rem; font-weight: 600; margin-bottom: .75rem;
}
.creator-card .stats { display: flex; gap: 1.5rem; margin: .75rem 0 1rem; }
.creator-card .stat-label { font-size: .7rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: .05em; }
.creator-card .stat-value { font-size: 1rem; font-weight: 700; }

/* Opportunity Card */
.opportunity-card .budget-badge {
    background: #D1FAE5; color: #065F46;
    border-radius: 99px; padding: .2rem .75rem;
    font-size: .8rem; font-weight: 700; float: right;
}
.opportunity-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.opportunity-card .brand-meta { display: flex; align-items: center; gap: .5rem; color: var(--color-muted); font-size: .85rem; }

/* =========================================
   PRICING
   ========================================= */
.pricing-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card { text-align: center; }
.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg);
}
.pricing-card .price { font-size: 2.5rem; font-weight: 800; color: var(--color-primary); }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--color-muted); }
.pricing-card ul { list-style: none; margin: 1.5rem 0; text-align: left; }
.pricing-card ul li { padding: .4rem 0; font-size: .9rem; }
.pricing-card ul li::before { content: "✓  "; color: #10B981; font-weight: 700; }

/* =========================================
   FORMS
   ========================================= */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .4rem; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: .65rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius); font-size: .95rem;
    background: var(--color-surface); color: var(--color-text);
    transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* =========================================
   DASHBOARD
   ========================================= */
.dashboard-layout {
    display: grid; gap: 2rem;
    grid-template-columns: 240px 1fr;
    align-items: start;
}
@media (max-width: 768px) { .dashboard-layout { grid-template-columns: 1fr; } }

.dashboard-sidebar { position: sticky; top: 80px; }
.sidebar-nav { list-style: none; }
.sidebar-nav li { margin-bottom: .25rem; }
.sidebar-nav a {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem 1rem; border-radius: var(--radius);
    color: var(--color-text); font-weight: 500; font-size: .9rem;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #EDE9FE; color: var(--color-primary);
    text-decoration: none;
}

.stat-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat-card { padding: 1.25rem; }
.stat-card .label { font-size: .8rem; color: var(--color-muted); margin-bottom: .5rem; }
.stat-card .value { font-size: 2rem; font-weight: 800; color: var(--color-primary); }

/* =========================================
   BADGES & TAGS
   ========================================= */
.badge {
    display: inline-block; padding: .2rem .65rem;
    border-radius: 99px; font-size: .75rem; font-weight: 600;
}
.badge-purple { background: #EDE9FE; color: var(--color-primary); }
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-amber  { background: #FEF3C7; color: #92400E; }
.badge-gray   { background: #F3F4F6; color: #374151; }

/* =========================================
   MESSAGES
   ========================================= */
.message-thread { max-height: 500px; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
.message-bubble { max-width: 70%; padding: .75rem 1rem; border-radius: 12px; font-size: .9rem; line-height: 1.5; }
.message-bubble.sent { background: var(--color-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.message-bubble.received { background: #F3F4F6; color: var(--color-text); align-self: flex-start; border-bottom-left-radius: 4px; }
.message-input-row { display: flex; gap: .75rem; margin-top: 1rem; }
.message-input-row input { flex: 1; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: var(--color-dark); color: #fff;
    padding: 4rem 0 2rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 3rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .75rem; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.75); font-size: .9rem; margin-bottom: .5rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: rgba(255,255,255,.5); font-size: .85rem; }

/* =========================================
   UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-muted   { color: var(--color-muted); }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.section-heading { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: .5rem; }
.section-sub { color: var(--color-muted); font-size: 1.05rem; max-width: 560px; }

/* =========================================
   RESPONSIVE NAV TOGGLE
   ========================================= */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); }
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--color-border); flex-direction: column; padding: 1rem 1.5rem; gap: 1rem; }
    .main-nav.open { display: flex; }
}
