/**
 * WP Outreach Theme - Minimal Stylesheet
 * Only essential styles not covered by Tailwind
 *
 * @package WPOutreach
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors */
    --wpo-primary: #10b981;
    --wpo-primary-dark: #059669;
    --wpo-primary-light: #d1fae5;

    /* Theme colors */
    --wpo-surface: #ffffff;
    --wpo-background: #f8fafc;
    --wpo-foreground: #1e293b;
    --wpo-muted: #64748b;
    --wpo-border: #e2e8f0;

    /* Semantic */
    --wpo-success: #10b981;
    --wpo-warning: #f59e0b;
    --wpo-danger: #ef4444;

    /* Gradients */
    --wpo-gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #0ea5e9 100%);

    /* Container */
    --wpo-container: 1280px;
    --wpo-container-wide: 1440px;

    /* Radius */
    --wpo-radius: 0.5rem;
    --wpo-radius-lg: 1rem;
    --wpo-radius-xl: 1.5rem;

    /* Transitions */
    --wpo-transition: 150ms ease;
}

/* Dark mode */
.dark {
    --wpo-surface: #1e293b;
    --wpo-background: #0f172a;
    --wpo-foreground: #f1f5f9;
    --wpo-muted: #94a3b8;
    --wpo-border: #334155;
}

/* ==========================================================================
   Base
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Text gradient utility */
.text-gradient {
    background: var(--wpo-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Container (fallback for non-Tailwind pages)
   ========================================================================== */

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    padding: 0 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--wpo-radius);
    cursor: pointer;
    transition: all var(--wpo-transition);
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: var(--wpo-gradient-primary);
    color: #fff !important;
}

.btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--wpo-foreground);
    border: 1px solid var(--wpo-border);
}

.btn--outline:hover {
    border-color: var(--wpo-primary);
    color: var(--wpo-primary);
}

.btn--ghost {
    background: transparent;
    color: var(--wpo-foreground);
}

.btn--ghost:hover {
    background: var(--wpo-border);
}

.btn--full {
    width: 100%;
}

.btn--lg {
    height: 3rem;
    padding: 0 1.75rem;
    font-size: 1rem;
}

/* ==========================================================================
   Section Title
   ========================================================================== */

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: var(--wpo-foreground);
}

/* ==========================================================================
   Pricing Cards
   ========================================================================== */

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--wpo-surface);
    border: 1px solid var(--wpo-border);
    border-radius: var(--wpo-radius-xl);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.pricing-card--featured {
    border: 2px solid var(--wpo-primary);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
}

.pricing-card__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0.375rem 1.25rem;
    background: var(--wpo-gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--wpo-foreground);
    margin-bottom: 0.25rem;
}

.pricing-card__description {
    font-size: 0.875rem;
    color: var(--wpo-muted);
    margin-bottom: 1.5rem;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.pricing-card__currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--wpo-foreground);
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--wpo-foreground);
}

.pricing-card__period {
    font-size: 0.875rem;
    color: var(--wpo-muted);
    margin-left: 0.25rem;
}

.pricing-card__features {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-card__features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--wpo-foreground);
}

.pricing-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.375rem;
    width: 14px;
    height: 14px;
    background: var(--wpo-success);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-card__features li strong {
    color: var(--wpo-primary);
}

/* ==========================================================================
   FAQ (for details/summary elements)
   ========================================================================== */

.faq-item__question::-webkit-details-marker,
.faq-summary::-webkit-details-marker,
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
}

/* ==========================================================================
   Background Grid Pattern
   ========================================================================== */

.bg-grid {
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Alignments */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

/* ==========================================================================
   Prose Content (for blog posts)
   ========================================================================== */

.prose h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--wpo-border);
}

.prose a {
    color: var(--wpo-primary);
}

.prose a:hover {
    text-decoration: underline;
}

.prose code {
    background: var(--wpo-primary-light);
    color: var(--wpo-primary-dark);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.dark .prose code {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.prose pre {
    background: #0f172a;
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-x: auto;
}

.prose pre code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
}

.prose blockquote {
    border-left: 4px solid var(--wpo-primary);
    padding-left: 1rem;
    font-style: italic;
    color: var(--wpo-muted);
}

/* ==========================================================================
   WordPress Admin Bar Support (32px desktop, 46px mobile)
   ========================================================================== */

body.admin-bar #site-header {
    top: 32px;
}

body.admin-bar #header-spacer {
    height: 4rem; /* Admin bar is fixed, doesn't affect document flow */
}

@media (min-width: 1024px) {
    body.admin-bar #header-spacer {
        height: 5rem; /* Admin bar is fixed, doesn't affect document flow */
    }
}

/* Mobile Admin Bar (46px below 783px) */
@media (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px;
    }

    body.admin-bar #header-spacer {
        height: 4rem; /* Admin bar is fixed, doesn't affect document flow */
    }
}
