/**
 * Case Studies Styles
 * Extends seo-article.css with case-study-specific components
 *
 * Structure:
 * 1. Case Study Header Badge & Meta
 * 2. Client Overview Box
 * 3. Case Study Results Box
 * 4. Before/After Comparison
 * 5. Testimonial Quote
 * 6. Case Study Overview Page
 * 7. Responsive
 */

/* ==========================================================================
   1. Case Study Header Badge & Meta
   ========================================================================== */

.case-study-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 196, 77, 0.15);
    border: 1px solid rgba(255, 196, 77, 0.3);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-badge i {
    font-size: 0.75rem;
}

.case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.case-study-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
}

.case-study-meta-item i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.case-study-meta-item strong {
    color: var(--bg-white);
    font-weight: 600;
}

/* ==========================================================================
   2. Client Overview Box
   ========================================================================== */

.client-overview {
    display: flex;
    gap: 24px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 2.5rem;
    align-items: center;
}

.client-overview-logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.client-overview-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-overview-details {
    flex: 1;
}

.client-overview-details h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.client-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
}

.client-overview-field {
    display: flex;
    gap: 8px;
    font-size: 0.9375rem;
}

.client-overview-field .label {
    color: var(--text-light);
    white-space: nowrap;
}

.client-overview-field .value {
    color: var(--text-dark);
    font-weight: 500;
}

/* ==========================================================================
   3. Case Study Results Box
   ========================================================================== */

.case-study-results {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1b1a 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 2.5rem;
}

.case-study-results-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.case-study-results-header i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.case-study-results-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bg-white);
    margin: 0;
}

.case-study-results .stats-highlight {
    margin: 0;
}

.case-study-results .stat-highlight-item {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.case-study-results .stat-highlight-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   4. Before/After Comparison
   ========================================================================== */

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 2rem 0;
}

.before-after-col {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.before-after-col.before {
    background: #FEF3F2;
    border-color: #FECACA;
}

.before-after-col.after {
    background: #ECFDF5;
    border-color: #A7F3D0;
}

.before-after-col h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.before-after-col.before h4 {
    color: #DC2626;
}

.before-after-col.after h4 {
    color: #059669;
}

.before-after-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.before-after-col li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.before-after-col.before li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #DC2626;
    font-weight: 700;
}

.before-after-col.after li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 700;
}

/* ==========================================================================
   5. Testimonial Quote
   ========================================================================== */

.testimonial-quote {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 28px 32px;
    margin: 2.5rem 0;
    border-radius: 0 16px 16px 0;
    position: relative;
}

.testimonial-quote::before {
    content: "\201C";
    position: absolute;
    top: -8px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-quote blockquote {
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0 0 16px 0;
    padding: 0;
    border: none;
}

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

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-dark);
}

.testimonial-author-role {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ==========================================================================
   6. Case Study Overview Page
   ========================================================================== */

/* Hero */
.case-studies-hero {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1b1a 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}

.case-studies-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 196, 77, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.case-studies-hero .container {
    position: relative;
    z-index: 1;
}

.case-studies-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 196, 77, 0.15);
    border: 1px solid rgba(255, 196, 77, 0.3);
    color: var(--primary-color);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-studies-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.case-studies-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Client logos — reuses .hero-clients from styles.css */
.case-studies-hero .hero-clients {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Case Study Cards Grid */
.case-studies-grid-section {
    padding: 5rem 0;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.case-study-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.case-study-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.case-study-card-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1b1a 100%);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.case-study-card-logo {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: var(--bg-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.case-study-card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.case-study-card-company {
    flex: 1;
}

.case-study-card-company h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 4px;
}

.case-study-card-company .industry {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.case-study-card-body {
    padding: 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-study-card-body h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.case-study-card-body p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.case-study-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.case-study-card-metric {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-light);
    border-radius: 8px;
}

.case-study-card-metric .value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: block;
}

.case-study-card-metric .label {
    font-size: 0.75rem;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

.case-study-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.case-study-card:hover .case-study-card-link {
    color: var(--primary-dark);
}

.case-study-card-link i {
    transition: transform 0.2s ease;
}

.case-study-card:hover .case-study-card-link i {
    transform: translateX(4px);
}

/* ==========================================================================
   7. Screenshot Figures
   ========================================================================== */

.case-study-screenshot {
    margin: 2.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
}

.case-study-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-screenshot .screenshot-placeholder {
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, #f0f0f5 0%, #e8e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--text-light);
}

.case-study-screenshot .screenshot-placeholder i {
    font-size: 2.5rem;
    opacity: 0.4;
}

.case-study-screenshot .screenshot-placeholder span {
    font-size: 0.875rem;
    opacity: 0.6;
    font-weight: 500;
}

.case-study-screenshot figcaption {
    padding: 12px 20px;
    font-size: 0.8125rem;
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

@media (max-width: 968px) {
    .case-studies-hero {
        padding: 6rem 0 3rem;
    }

    .case-studies-hero h1 {
        font-size: 2.25rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .before-after {
        grid-template-columns: 1fr;
    }

    .client-overview {
        flex-direction: column;
        text-align: center;
    }

    .client-overview-grid {
        grid-template-columns: 1fr;
    }

    .case-study-meta {
        gap: 1rem;
    }

    .case-study-results .stats-highlight {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .case-studies-hero h1 {
        font-size: 1.875rem;
    }

    .case-studies-hero p {
        font-size: 1.0625rem;
    }

    .case-study-card-header {
        padding: 24px;
    }

    .case-study-card-body {
        padding: 20px 24px;
    }

    .case-study-card-metrics {
        grid-template-columns: 1fr;
    }

    .client-overview {
        padding: 20px;
    }

    .case-study-results {
        padding: 24px;
    }

    .testimonial-quote {
        padding: 24px;
    }
}
