/*
Theme Name: AdultGuest Marketplace
Theme URI: https://yoursite.com/adultguest-marketplace
Author: AdultGuest Team
Author URI: https://yoursite.com
Description: A dark premium adult marketplace theme for selling guest post placements on external websites. Features WooCommerce integration, custom listing grid, and PayPal payment support.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
WC requires at least: 8.0
WC tested up to: 9.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adultguest-marketplace
Tags: dark, marketplace, woocommerce, adult, grid-layout, custom-post-type
*/

/* =========================================
   THEME VARIABLES
   ========================================= */
:root {
    --bg-primary:        #0b0b0b;
    --bg-secondary:      #1a0f24;
    --bg-card:           #120d1a;
    --bg-card-hover:     #1e1430;
    --accent:            #ff2d75;
    --accent-hover:      #e0215f;
    --highlight:         #8b3dff;
    --highlight-hover:   #7530e0;
    --text-primary:      #f0f0f0;
    --text-secondary:    #a89cc0;
    --text-muted:        #6b5f80;
    --border-color:      #2a1f3d;
    --border-accent:     #ff2d7530;
    --shadow-card:       0 4px 24px rgba(0,0,0,0.5);
    --shadow-hover:      0 8px 40px rgba(255,45,117,0.2);
    --radius-card:       12px;
    --radius-btn:        8px;
    --font-heading:      'Poppins', sans-serif;
    --font-body:         'Inter', sans-serif;
    --transition:        all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

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

ul, ol {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
}

/* =========================================
   LAYOUT CONTAINERS
   =========================================
   Single source of truth for page width.
   --page-width drives every container so
   header, filter bar, toolbar, grid and
   pagination all align to the same column.
   ========================================= */
:root {
    --page-width:    1280px;   /* fixed max width — one value, used everywhere */
    --page-gutter:   40px;     /* horizontal breathing room at full width      */
    --page-gutter-md:28px;     /* tablet                                       */
    --page-gutter-sm:16px;     /* mobile                                       */
}

.container {
    width: 100%;
    max-width: var(--page-width);
    margin-inline: auto;               /* logical-property centering */
    padding-inline: var(--page-gutter);
    box-sizing: border-box;
}

.container-sm {
    max-width: 960px;
    margin-inline: auto;
    padding-inline: var(--page-gutter);
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .container,
    .container-sm {
        padding-inline: var(--page-gutter-md);
    }
}

@media (max-width: 640px) {
    .container,
    .container-sm {
        padding-inline: var(--page-gutter-sm);
    }
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #c0155a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,45,117,0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), #a01248);
    color: #fff;
    box-shadow: 0 6px 24px rgba(255,45,117,0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--highlight), #6020c0);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139,61,255,0.35);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--highlight-hover), #5018a8);
    color: #fff;
    box-shadow: 0 6px 24px rgba(139,61,255,0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    border-color: var(--accent);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* =========================================
   BADGES & LABELS
   ========================================= */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-accent {
    background: rgba(255,45,117,0.15);
    color: var(--accent);
    border: 1px solid rgba(255,45,117,0.3);
}

.badge-highlight {
    background: rgba(139,61,255,0.15);
    color: var(--highlight);
    border: 1px solid rgba(139,61,255,0.3);
}

.badge-featured {
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    color: #fff;
}

/* =========================================
   FORMS
   ========================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,45,117,0.15);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* =========================================
   CARDS (BASE)
   ========================================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: rgba(255,45,117,0.4);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
#site-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(11,11,11,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-nav a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.cart-icon:hover {
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,61,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,45,117,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255,45,117,0.1);
    border: 1px solid rgba(255,45,117,0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.hero-stat-item .stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-item .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =========================================
   LISTING GRID
   ========================================= */
.listings-section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 6px;
}

.section-title .accent { color: var(--accent); }

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

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

/* =========================================
   LISTING CARD
   ========================================= */
.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    border-color: rgba(255,45,117,0.45);
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.listing-card.featured {
    border-color: rgba(139,61,255,0.5);
    box-shadow: 0 4px 24px rgba(139,61,255,0.2);
}

.listing-card.featured:hover {
    box-shadow: 0 8px 40px rgba(139,61,255,0.35);
}

.card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .card-image img {
    transform: scale(1.06);
}

.card-image .featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.card-image .category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 10px;
    text-align: center;
}

.meta-item .meta-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.meta-item .meta-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.price-label {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.card-actions .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 0.78rem;
}

/* =========================================
   CATEGORY FILTER BAR
   ========================================= */
.category-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255,45,117,0.12);
    border-color: rgba(255,45,117,0.4);
    color: var(--accent);
}

/* =========================================
   PARTNER SITES SECTION
   ========================================= */
.partner-sites {
    padding: 80px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-card);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.partner-card:hover {
    border-color: rgba(255,45,117,0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.partner-logo {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 12px;
    background: var(--bg-secondary);
}

.partner-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================
   WOOCOMMERCE OVERRIDES (base)
   ========================================= */
.woocommerce-page .woocommerce,
.woocommerce {
    font-family: var(--font-body);
    color: var(--text-primary);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, var(--accent), #c0155a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    transition: var(--transition) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: linear-gradient(135deg, var(--accent-hover), #a01248) !important;
    transform: translateY(-2px) !important;
}

.woocommerce-cart table.cart,
.woocommerce-checkout .woocommerce-checkout {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================================
   SELECTION
   ========================================= */
::selection {
    background: rgba(255,45,117,0.3);
    color: #fff;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1200px) {
    .listings-grid { grid-template-columns: repeat(3, 1fr); }
    .partner-grid  { grid-template-columns: repeat(3, 1fr); }
    .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
    .listings-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-grid  { grid-template-columns: repeat(2, 1fr); }
    .navbar-nav    { display: none; }
    .hamburger     { display: flex; }
}

@media (max-width: 600px) {
    .listings-grid    { grid-template-columns: 1fr; }
    .partner-grid     { grid-template-columns: 1fr 1fr; }
    .footer-grid      { grid-template-columns: 1fr; }
    .section          { padding: 56px 0; }
    .hero             { padding: 64px 0 56px; }
    .hero-cta         { flex-direction: column; }
    .hero-stats       { gap: 20px; }
    .section-header   { flex-direction: column; align-items: flex-start; }
    .card-meta        { grid-template-columns: 1fr; }
}
