/**
 * Prompt Jinny - Component Styles
 * Reusable component styling
 */

/* ==========================================================================
   HEADER COMPONENTS
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   FOOTER COMPONENTS
   ========================================================================== */

.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-main {
    padding-bottom: 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.footer-tagline {
    font-family: var(--pj-font-heading);
    font-style: italic;
    font-size: 14px;
    color: var(--pj-jinny-purple);
    margin: 12px 0;
}

.footer-description {
    font-size: 14px;
    color: var(--pj-cool-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-heading {
    font-family: var(--pj-font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--pj-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--pj-light-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--pj-light-lavender);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--pj-cool-gray);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--pj-jinny-purple);
    color: var(--pj-light-lavender);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copyright,
.footer-made-with {
    font-size: 12px;
    color: var(--pj-cool-gray);
    margin: 0;
}

.legal-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.legal-links a {
    font-size: 12px;
    color: var(--pj-cool-gray);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--pj-light-lavender);
}

/* ==========================================================================
   PRODUCT CARDS
   ========================================================================== */

.pj-product-card {
    background: var(--pj-white);
    border-radius: var(--pj-radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.pj-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15);
}

.product-card-image {
    position: relative;
    height: 180px;
    background: var(--pj-deep-navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(transparent, rgba(13, 17, 23, 0.8));
}

.product-card-icon {
    font-size: 64px;
}

.product-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: var(--pj-radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-badge.available {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.product-card-badge.coming-soon {
    background: rgba(107, 114, 128, 0.3);
    color: var(--pj-light-gray);
}

.product-card-body {
    padding: 24px;
}

.product-card-category {
    font-family: var(--pj-font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--pj-jinny-purple);
    margin-bottom: 8px;
}

.product-card-title {
    font-family: var(--pj-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--pj-midnight);
    margin-bottom: 8px;
}

.product-card-desc {
    font-size: 14px;
    color: var(--pj-cool-gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.product-card-features li {
    font-size: 12px;
    color: var(--pj-cool-gray);
    padding: 4px 0;
}

.product-card-features li::before {
    content: '✅ ';
}

.product-card-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--pj-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-card-price-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--pj-lamp-gold);
}

.product-card-price {
    font-family: var(--pj-font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--pj-midnight);
}

/* ==========================================================================
   STAT CARDS
   ========================================================================== */

.pj-stat-card {
    background: var(--pj-white);
    border-radius: var(--pj-radius-xl);
    padding: 32px;
    text-align: center;
    box-shadow: var(--pj-shadow-md);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.pj-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pj-shadow-lg);
}

.stat-value {
    font-family: var(--pj-font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--pj-jinny-purple);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-unit {
    font-size: 18px;
}

.stat-label {
    font-size: 14px;
    color: var(--pj-cool-gray);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

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

.faq-item {
    background: var(--pj-white);
    border-radius: var(--pj-radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--pj-shadow-sm);
    border: 1px solid rgba(139, 92, 246, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--pj-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--pj-midnight);
}

.faq-icon {
    font-size: 18px;
    color: var(--pj-jinny-purple);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--pj-cool-gray);
    line-height: 1.7;
}

/* ==========================================================================
   TESTIMONIAL CARDS (Placeholder)
   ========================================================================== */

.pj-testimonial-card {
    background: var(--pj-white);
    border-radius: var(--pj-radius-xl);
    padding: 32px;
    border: 2px dashed rgba(139, 92, 246, 0.2);
}

.pj-testimonial-card.placeholder {
    opacity: 0.6;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--pj-border-light);
    font-size: 16px;
}

.testimonial-stars.filled {
    color: var(--pj-lamp-gold);
}

.testimonial-text {
    font-size: 14px;
    font-style: italic;
    color: var(--pj-text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pj-light-lavender);
    font-weight: 700;
    font-size: 14px;
}

.testimonial-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--pj-text-light);
}

.testimonial-role {
    font-size: 12px;
    color: var(--pj-border-light);
}

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */

.pj-pricing-card {
    background: var(--pj-white);
    border-radius: var(--pj-radius-xl);
    padding: 32px;
    position: relative;
    border: 1px solid var(--pj-border-light);
    transition: all 0.3s ease;
}

.pj-pricing-card:hover {
    transform: translateY(-4px);
}

.pj-pricing-card.popular {
    border: 2px solid var(--pj-jinny-purple);
    box-shadow: var(--pj-shadow-lg);
}

.pj-pricing-card.premium {
    border: 2px solid var(--pj-lamp-gold);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--pj-font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: var(--pj-radius-full);
    background: var(--pj-jinny-purple);
    color: var(--pj-white);
}

.pricing-name {
    font-family: var(--pj-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--pj-midnight);
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--pj-cool-gray);
    margin-bottom: 16px;
}

.pricing-price {
    font-family: var(--pj-font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--pj-midnight);
    margin-bottom: 8px;
}

.pricing-term {
    font-size: 14px;
    color: var(--pj-cool-gray);
}

.pricing-features {
    list-style: none;
    padding: 24px 0;
    margin: 0;
    border-top: 1px solid var(--pj-border-light);
    border-bottom: 1px solid var(--pj-border-light);
}

.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--pj-midnight);
}

.pricing-features li::before {
    content: '✅ ';
}

.pricing-cta {
    margin-top: 24px;
}

.pricing-cta .pj-btn {
    width: 100%;
}

/* ==========================================================================
   EMAIL SIGNUP FORM
   ========================================================================== */

.pj-signup-card {
    background: var(--pj-white);
    border-radius: var(--pj-radius-xl);
    padding: 36px;
    box-shadow: var(--pj-shadow-lg);
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.signup-title {
    font-family: var(--pj-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--pj-midnight);
    margin-bottom: 20px;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signup-privacy {
    font-size: 12px;
    color: var(--pj-light-gray);
    text-align: center;
    margin-top: 12px;
}

/* ==========================================================================
   CALLOUT BOXES
   ========================================================================== */

.pj-callout {
    border-radius: var(--pj-radius-lg);
    padding: 24px;
    margin: 24px 0;
}

.pj-callout-purple {
    background: rgba(139, 92, 246, 0.1);
    border-left: 4px solid var(--pj-jinny-purple);
}

.pj-callout-gold {
    background: rgba(255, 184, 0, 0.1);
    border-left: 4px solid var(--pj-lamp-gold);
}

.pj-callout-gray {
    background: var(--pj-ghost-purple);
    border-left: 4px solid var(--pj-cool-gray);
}

/* ==========================================================================
   CODE/PROMPT DISPLAY
   ========================================================================== */

.pj-prompt-box {
    font-family: var(--pj-font-code);
    font-size: 14px;
    background: var(--pj-deep-navy);
    color: var(--pj-text-light);
    padding: 24px;
    border-radius: var(--pj-radius-lg);
    overflow-x: auto;
    white-space: pre-wrap;
}

.pj-prompt-box .bracket {
    color: var(--pj-lamp-gold);
    font-weight: 600;
}

/* ==========================================================================
   FORM ERROR STATES
   ========================================================================== */

.pj-input.has-error,
.pj-select.has-error {
    border-color: #ef4444;
}

.form-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

/* ==========================================================================
   LOADING STATES
   ========================================================================== */

.pj-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--pj-jinny-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   WOOCOMMERCE OVERRIDES
   ========================================================================== */

.woocommerce .pj-woo-wrapper {
    padding-top: 120px;
    padding-bottom: 80px;
}

.woocommerce ul.products li.product {
    margin: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--pj-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--pj-midnight);
}

.woocommerce ul.products li.product .price {
    font-family: var(--pj-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--pj-jinny-purple);
}

.woocommerce ul.products li.product .button {
    background: var(--pj-jinny-purple);
    color: var(--pj-white);
    border-radius: var(--pj-radius-md);
    padding: 12px 24px;
    font-family: var(--pj-font-heading);
    font-weight: 600;
    transition: var(--pj-transition-fast);
}

.woocommerce ul.products li.product .button:hover {
    background: var(--pj-jinny-purple-hover);
}

/* Thank You Page */
.pj-thankyou-box {
    text-align: center;
    padding: 48px;
    background: var(--pj-ghost-purple);
    border-radius: var(--pj-radius-xl);
    margin-bottom: 32px;
}

.pj-thankyou-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.pj-thankyou-box h2 {
    font-family: var(--pj-font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--pj-midnight);
    margin-bottom: 12px;
}

.pj-thankyou-box p {
    font-size: 16px;
    color: var(--pj-cool-gray);
}

/* Instant Download Badge */
.pj-instant-download-badge,
.pj-ai-badge {
    margin-bottom: 12px;
}

.pj-prompt-count,
.pj-countries {
    margin-bottom: 8px;
    font-size: 14px;
}
