/* Case Study Page Styles - Clean & Professional */
/* Path: static/css/case-study.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6;
    color: #334155;
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #0f172a;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.nav-brand:hover {
    background: #f1f5f9;
}

.brand-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #3b82f6;
    background: #f1f5f9;
}

/* Hero Section - Accessible Dark Design */
.gradient-bg {
    background: #1e293b;
    padding: 5rem 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.gradient-bg > * {
    position: relative;
    z-index: 1;
}

.success-badge {
    background: #16a34a;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 30px;
    border: 2px solid #22c55e;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #f1f5f9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e2e8f0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-number.green { color: #4ade80; }
.stat-number.blue { color: #60a5fa; }
.stat-number.purple { color: #c084fc; }

.stat-label {
    font-weight: 600;
    opacity: 1;
    color: #f8fafc;
}

/* Content Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: #f8fafc;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #64748b;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Solution Section */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.solution-card {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
    padding: 2rem;
    border-radius: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: #3b82f6;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 3px solid white;
}

.solution-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.solution-card p {
    color: #1e40af;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Challenge Section */
.challenge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.challenge-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-left: 4px solid #ef4444;
    padding: 2rem;
    border-radius: 1rem;
}

.challenge-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1.5rem;
}

.challenge-list {
    list-style: none;
}

.challenge-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #7f1d1d;
}

.bullet {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.comparison-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.comparison-section {
    margin-bottom: 1.5rem;
}

.comparison-label {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.comparison-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.comparison-number.red { color: #dc2626; }
.comparison-number.green { color: #16a34a; }

.comparison-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.vs-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ef4444;
    margin: 1rem 0;
}

/* Results Section */
.results-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
    padding: 3rem;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.result-item .number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.result-item .number.green { color: #16a34a; }
.result-item .number.blue { color: #2563eb; }
.result-item .number.purple { color: #7c3aed; }

.result-item .label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #166534;
}

.result-item .detail {
    font-size: 0.9rem;
    color: #22c55e;
    opacity: 0.8;
}

/* Testimonial Section */
.testimonial-section {
    background: #1e293b;
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.testimonial-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.quote-mark {
    font-size: 4rem;
    color: #60a5fa;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.author-info .name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info .title {
    color: #93c5fd;
    font-size: 0.9rem;
}

/* Portfolio Links */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portfolio-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.portfolio-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.portfolio-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.portfolio-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.portfolio-card a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portfolio-card a:hover {
    color: #2563eb;
}

/* CTA Section - Matching Dark Theme */
.cta-section {
    background: #1e293b;
    color: #ffffff;
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #e2e8f0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-stat .number {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.cta-stat .text {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.cta-button {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.contact-info {
    color: #e2e8f0;
}

.contact-info a {
    color: #60a5fa;
    text-decoration: none;
}

.contact-info a:hover {
    color: #93c5fd;
}

/* Article Links Section */
.articles-section {
    background: #f8fafc;
    padding: 4rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.article-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-card .platform {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-card.linkedin .platform {
    background: #0077b5;
}

.article-card.medium .platform {
    background: #000000;
}

.article-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.article-card a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.article-card a:hover {
    color: #2563eb;
}

/* Footer */
.footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.footer-link {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #93c5fd;
}

/* Footer styling */
.border-t {
    border-top: 1px solid #d1d5db;
    margin-top: 2rem;
    padding-top: 2rem;
}

.text-center {
    text-align: center;
}

.text-gray-600 {
    color: #6b7280;
}

/* Contact list styling for CTA section */
.font-semibold {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 1rem;
}

.space-y-2 li {
    margin-bottom: 0.5rem;
}

.hover\:text-white:hover {
    color: white;
}

.transition {
    transition: color 0.3s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .challenge-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .results-grid,
    .portfolio-grid,
    .cta-stats {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 3rem 0;
    }
}
