/*
 * WP Community Marketing Kit - Shared Styles
 * For landing page and product pages
 */

:root {
    --wp-blue: #0073aa;
    --wp-blue-dark: #005a87;
    --trust-green: #4CAF50;
    --warm-orange: #FF6B35;
    --text-dark: #1e1e1e;
    --text-muted: #666;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* ===================
   NAVIGATION
=================== */
.nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--wp-blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--wp-blue);
}

.nav-cta {
    display: flex;
    gap: 12px;
}

/* ===================
   BUTTONS
=================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background: var(--wp-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--wp-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--wp-blue);
    color: var(--wp-blue);
}

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

/* ===================
   SECTION STYLES
=================== */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

/* ===================
   PRODUCT HERO
=================== */
.product-hero {
    padding: 40px 0 80px;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--wp-blue);
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.product-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-badge.premium {
    background: var(--warm-orange);
    color: white;
}

.product-badge.free {
    background: var(--trust-green);
    color: white;
}

.product-hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-tagline {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 600;
}

.product-price-box {
    background: var(--bg-white);
    border: 2px solid var(--wp-blue);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--wp-blue);
}

.price-period {
    font-size: 18px;
    color: var(--text-muted);
}

.price-includes {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.price-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.price-actions .btn {
    flex: 1;
}

.guarantee {
    font-size: 14px;
    color: var(--trust-green);
    text-align: center;
}

.product-hero-image {
    position: sticky;
    top: 100px;
}

/* ===================
   IMAGE PLACEHOLDERS
=================== */
.image-placeholder {
    background: var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    aspect-ratio: 4/3;
    border: 2px dashed #ccc;
}

.image-placeholder small {
    font-size: 11px;
    opacity: 0.7;
}

.image-placeholder.small {
    height: 250px;
    aspect-ratio: auto;
}

.image-placeholder.gallery {
    height: 220px;
    aspect-ratio: auto;
}

.image-placeholder.avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 11px;
    aspect-ratio: auto;
}

.image-placeholder.related {
    height: 150px;
    aspect-ratio: auto;
}

/* ===================
   FEATURES DETAILED
=================== */
.features-overview {
    padding: 80px 0;
}

.features-detailed-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-detailed {
    display: grid;
    grid-template-columns: auto 1fr 400px;
    gap: 40px;
    align-items: start;
}

.feature-detailed.reverse {
    grid-template-columns: 400px 1fr auto;
}

.feature-detailed.reverse .feature-icon {
    order: 3;
}

.feature-detailed.reverse .feature-content {
    order: 2;
}

.feature-detailed.reverse .feature-image {
    order: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 115, 170, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.feature-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

.feature-bullets {
    list-style: none;
}

.feature-bullets li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
}

.feature-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--trust-green);
    font-weight: bold;
}

/* ===================
   USE CASES
=================== */
.use-cases {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.use-case-card {
    background: var(--bg-white);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.use-case-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.use-case-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===================
   SCREENSHOTS GALLERY
=================== */
.screenshots-gallery {
    padding: 80px 0;
}

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

.gallery-item {
    text-align: center;
}

.gallery-item p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===================
   INTEGRATIONS
=================== */
.integrations {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.integration-item {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.integration-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.integration-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.integration-item p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===================
   TESTIMONIAL
=================== */
.product-testimonial {
    padding: 80px 0;
}

.testimonial-large {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    font-size: 120px;
    color: var(--wp-blue);
    opacity: 0.2;
    line-height: 0.5;
    margin-bottom: 24px;
}

.testimonial-large blockquote {
    font-size: 24px;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 32px;
}

.testimonial-author-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.church-size {
    font-style: italic;
}

/* ===================
   REQUIREMENTS
=================== */
.requirements {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.requirements-box {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.requirements-box h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.requirements-box ul {
    list-style: none;
}

.requirements-box li {
    padding: 10px 0;
    padding-left: 24px;
    position: relative;
    font-size: 14px;
}

.requirements-box li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--wp-blue);
}

/* ===================
   FAQ
=================== */
.product-faq {
    padding: 80px 0;
}

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

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================
   BUY SECTION
=================== */
.buy-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--wp-blue) 0%, var(--wp-blue-dark) 100%);
}

.buy-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.buy-content h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 12px;
}

.buy-content > p {
    text-align: center;
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 40px;
}

.buy-pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.buy-option {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    position: relative;
}

.buy-option.featured {
    border-color: var(--wp-blue);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--wp-blue);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.buy-option h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.buy-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--wp-blue);
    margin-bottom: 8px;
}

.buy-option p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.buy-option .btn {
    width: 100%;
}

.buy-guarantee {
    text-align: center;
}

.buy-guarantee p {
    display: inline-block;
    margin: 0 16px;
    font-size: 14px;
    color: var(--trust-green);
}

/* ===================
   RELATED PRODUCTS
=================== */
.related-products {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.related-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 24px;
}

.related-card.bundle {
    border-color: var(--wp-blue);
    position: relative;
}

.bundle-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--warm-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.related-image {
    margin-bottom: 16px;
}

.related-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.related-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.related-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--wp-blue);
}

/* ===================
   FOOTER
=================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 16px;
    font-size: 15px;
}

.footer h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* ===================
   RESPONSIVE
=================== */
@media (max-width: 1024px) {
    .product-hero-grid {
        grid-template-columns: 1fr;
    }

    .product-hero-image {
        position: static;
    }

    .feature-detailed,
    .feature-detailed.reverse {
        grid-template-columns: 1fr;
    }

    .feature-detailed .feature-icon,
    .feature-detailed.reverse .feature-icon {
        order: 0;
    }

    .feature-detailed .feature-content,
    .feature-detailed.reverse .feature-content {
        order: 1;
    }

    .feature-detailed .feature-image,
    .feature-detailed.reverse .feature-image {
        order: 2;
    }

    .use-case-grid,
    .integration-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .requirements-grid,
    .buy-pricing,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .buy-option.featured {
        transform: none;
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .product-hero h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .use-case-grid,
    .integration-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-large blockquote {
        font-size: 18px;
    }

    .buy-box {
        padding: 32px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
