/*
Theme Name: BuyAIServices Theme
Theme URI: https://buyaiservices.com/
Author: Admin
Description: Custom, lightweight WordPress theme optimized for SEO, speed, and AI tool reviews. Affiliate UI optimized.
Version: 3.0.0
Text Domain: buyaiservices
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@700;800&display=swap');

:root {
    /* Color Palette from Preview */
    --bg-page: #161821;
    --bg-card: #20222d;
    --bg-card-top: #13141f;
    --bg-header: #1b1d28;
    --bg-button: #2a2d3a;
    
    --text-main: #d1d5db;
    --text-muted: #9ca3af;
    --text-light: #ffffff;
    
    --border-color: #2a2d3a;
    --border-hover: #374151;
    
    --primary: #6366f1; /* Indigo */
    --accent-purple: #8b5cf6;
    
    --success: #10b981;
    --warning: #f59e0b;
    --yellow: #fcd34d;

    --font-heading: 'Outfit', sans-serif;
    --font-main: 'Inter', sans-serif;
    
    --container: 1100px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 9999px;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

/* --- Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-page);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--text-light);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-family: var(--font-main); /* The preview uses geometric sans for all */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Utilities --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--bg-button);
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--text-muted);
}

.btn-primary:hover {
    background: rgba(255,255,255,0.05);
}

.btn-icon {
    font-size: 1rem;
}

/* --- Header --- */
.site-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
}

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

.brand-area {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-light);
}

.site-title span { /* e.g. Buy -> AI Services */
    font-weight: 600;
}

.brand-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    letter-spacing: 0.02em;
}

.main-navigation ul {
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.875rem;
}

.main-navigation a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Ad Slot Config */
.ad-container {
    padding: 1.5rem 0;
    text-align: center;
}

.ad-leaderboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 728px;
    height: 90px;
    border: 1px dashed var(--border-color);
    background: rgba(0,0,0,0.2);
    color: var(--text-muted);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* Quick Links Bar */
.quick-links {
    margin-bottom: 2rem;
}

.quick-links-inner {
    display: flex;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem;
    gap: 1rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
}

.quick-link-item:hover {
    background: var(--bg-button);
    color: var(--text-light);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #818cf8;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 1.5rem auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-trust-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-trust-list span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.check-icon {
    color: var(--success);
    font-weight: bold;
}

/* --- Category Pills --- */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.pill {
    padding: 0.4rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 600;
}

.pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.pill:hover:not(.active) {
    background: var(--bg-button);
}

/* --- Grid Section --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.view-all {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* --- Tool Cards --- */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tool-card-top {
    height: 120px;
    background: var(--bg-card-top);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.tool-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tool-category {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tool-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tool-title a {
    color: var(--text-light);
}

.tool-desc {
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.875rem;
}

.author-name {
    color: var(--text-main);
}

.review-score {
    color: var(--yellow);
    font-weight: 700;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-about .brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
}

.footer-about p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-nav a:hover {
    color: var(--text-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.scroll-top {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.scroll-top:hover {
    background: var(--border-color);
    color: var(--text-light);
}

/* --- Submit Tool Form --- */
.submit-page-wrap {
    background-color: #0d0f15;
    padding: 5rem 0;
}

.submit-container {
    max-width: 600px;
    margin: 0 auto;
}

.submit-header {
    margin-bottom: 3rem;
}

.submit-icon-wrapper {
    background: rgba(139, 92, 246, 0.1);
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-purple);
}

.submit-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.submit-header p {
    color: var(--text-muted);
}

.submit-tool-form {
    background: transparent;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-group .required {
    color: var(--danger);
}

.submit-tool-form input[type="text"],
.submit-tool-form input[type="url"],
.submit-tool-form input[type="email"],
.submit-tool-form select,
.submit-tool-form textarea {
    width: 100%;
    background-color: #1a1c23;
    border: 1px solid #2a2d3a;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.submit-tool-form input:focus,
.submit-tool-form select:focus,
.submit-tool-form textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.pricing-options {
    display: flex;
    gap: 1rem;
}

.radio-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1a1c23;
    border: 1px solid #2a2d3a;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: #1a1c23;
    border: 1px solid #2a2d3a;
    padding: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--text-main);
    line-height: 1.4;
}

.captch-mock {
    background-color: #272727;
    border: 1px solid #444;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #34d399;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
}

.success-text {
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

.cf-logo {
    color: #f6821f;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.btn-submit-full {
    width: 100%;
    background-color: var(--accent-purple);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit-full:hover {
    opacity: 0.9;
}

/* --- Single Post & Review Box --- */
.single-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

@media (max-width: 768px) {
    .single-container {
        grid-template-columns: 1fr;
    }
}

.standard-single {
    max-width: 800px;
    margin: 0 auto;
}

.affiliate-disclosure {
    background-color: var(--bg-button);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-left: 4px solid var(--border-hover);
}

.review-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.review-score {
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    line-height: 1;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .pros-cons {
        grid-template-columns: 1fr;
    }
}

.pros h4 { color: var(--success); }
.cons h4 { color: var(--danger); }

.pros ul, .cons ul {
    list-style: none;
    padding-left: 0;
}

.pros li, .cons li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.pros li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.cons li::before {
    content: "✕";
    color: var(--danger);
    font-weight: bold;
    margin-right: 0.5rem;
}

.review-pricing {
    background-color: var(--bg-card-top);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.btn-affiliate {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.125rem;
    background: var(--accent-purple);
    color: white;
}

.btn-affiliate:hover {
    opacity: 0.9;
}

.entry-content {
    font-size: 1.125rem;
    color: var(--text-main);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.sidebar-widget {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* --- Comparison Matrix --- */
.ai-comparison-matrix {
    display: flex;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin: 2.5rem 0;
    align-items: center;
}

@media (max-width: 600px) {
    .ai-comparison-matrix {
        flex-direction: column;
    }
}

.matrix-col {
    flex: 1;
    width: 100%;
}

.matrix-vs {
    flex: 0 0 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-button);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-muted);
    border: 1px solid var(--border-hover);
}

.matrix-title {
    font-size: 1.5rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.matrix-row {
    font-size: 0.875rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
}

.matrix-col .btn-affiliate {
    margin-top: 1.5rem;
}
