/* Individual Case Study Page Styles */

/* Case Header */
.case-header {
    background: linear-gradient(180deg, #0a0f1a 0%, #111827 100%);
    padding: 100px 24px 40px;
}

.case-header-content {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #106af3;
}

.case-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.case-headline {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 24px;
}

/* Quick Facts */
.case-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    background: #1f2937;
    border-radius: 12px;
    padding: 20px;
}

.fact {
    text-align: center;
}

.fact-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fact-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Case Main Layout */
.case-main {
    background: #0a0f1a;
    padding: 40px 24px 80px;
}

.case-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* Case Article */
.case-article {
    max-width: 800px;
}

.case-section {
    margin-bottom: 40px;
}

.case-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1f2937;
}

.case-summary {
    font-size: 18px;
    color: #d1d5db;
    line-height: 1.7;
}

.case-content {
    color: #9ca3af;
    line-height: 1.8;
    font-size: 16px;
}

.case-content p {
    margin-bottom: 16px;
}

.case-content p:last-child {
    margin-bottom: 0;
}

/* Timeline */
.case-timeline {
    margin: 0;
}

.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #1f2937;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: #106af3;
    border-radius: 50%;
    border: 3px solid #0a0f1a;
    z-index: 1;
}

.timeline-content {
    padding-left: 8px;
}

.timeline-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.timeline-stage {
    font-size: 13px;
    font-weight: 600;
    color: #106af3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-date {
    font-size: 13px;
    color: #6b7280;
}

.timeline-description {
    font-size: 15px;
    color: #9ca3af;
    line-height: 1.6;
    margin: 0;
}

/* Highlight Section (How The AI Defense Suite Tools Could Have Helped) */
.case-section-highlight {
    background: linear-gradient(135deg, rgba(16, 106, 243, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border: 1px solid rgba(16, 106, 243, 0.2);
    border-radius: 12px;
    padding: 24px;
}

.case-section-highlight h2 {
    color: #106af3;
    border-bottom-color: rgba(16, 106, 243, 0.3);
}

.case-section-highlight .case-content {
    color: #d1d5db;
}

/* Key Lessons */
.case-lessons {
    list-style: none;
    padding: 0;
}

.case-lessons li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: #d1d5db;
    line-height: 1.6;
}

.case-lessons li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #106af3;
    border-radius: 2px;
}

/* Key Takeaways (LLM-optimized section) */
.case-section-takeaways {
    background: linear-gradient(135deg, rgba(16, 106, 243, 0.1) 0%, rgba(30, 58, 95, 0.2) 100%);
    border: 1px solid rgba(16, 106, 243, 0.3);
    border-radius: 12px;
    padding: 24px;
}

.case-section-takeaways h2 {
    color: #106af3;
    margin-bottom: 16px;
}

.case-takeaways {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-takeaways .takeaway-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: #e5e7eb;
    line-height: 1.6;
    font-size: 16px;
}

.case-takeaways .takeaway-item:last-child {
    margin-bottom: 0;
}

.case-takeaways .takeaway-item::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: #106af3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}

/* FAQ Section */
.case-faq {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid #374151;
    padding: 16px 0;
}

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

.faq-question {
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 8px;
    font-size: 16px;
}

.faq-answer {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 15px;
}

/* Sources */
.case-sources {
    list-style: none;
    padding: 0;
}

.case-sources li {
    margin-bottom: 8px;
}

.case-sources a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #106af3;
    text-decoration: none;
    font-size: 15px;
}

.case-sources a:hover {
    text-decoration: underline;
}

.case-sources a svg {
    width: 14px;
    height: 14px;
}

/* Tags */
.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Sidebar */
.case-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #1f2937 100%);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-cta h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.sidebar-cta p {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 16px;
}

.cta-button {
    display: block;
    text-align: center;
    background: #106af3;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: #0c52c2;
}

.cta-label {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
}

/* App Store Buttons in Sidebar */
.sidebar-cta .app-store-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-cta .app-store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #000000;
    border: 1px solid #374151;
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-cta .app-store-btn:hover {
    background: #1f2937;
    border-color: #4b5563;
}

.sidebar-cta .app-store-btn.google-play {
    background: #000000;
}

.sidebar-cta .app-store-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.sidebar-cta .app-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sidebar-cta .app-store-label {
    font-size: 10px;
    color: #9ca3af;
}

.sidebar-cta .app-store-name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.sidebar-related {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
}

.sidebar-related h4 {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.related-case {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #1f2937;
    text-decoration: none;
}

.related-case:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-case-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 4px;
}

.related-case-meta {
    font-size: 12px;
    color: #6b7280;
}

.related-case:hover .related-case-title {
    color: #106af3;
}

/* Badges (shared with index) */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-successful_fraud {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.badge-prevented {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.badge-ongoing {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
}

.badge-resolved {
    background: rgba(16, 106, 243, 0.15);
    color: #4a96f7;
}

.badge-victim {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.badge-attack {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background: #1f2937;
    border-radius: 4px;
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 1024px) {
    .case-main {
        grid-template-columns: 1fr;
    }
    
    .case-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-marker {
        left: -20px;
        width: 12px;
        height: 12px;
    }
    
    .timeline::before {
        left: 5px;
    }
    
    .timeline-header {
        flex-direction: column;
        gap: 4px;
    }
    
    .timeline-description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .case-header {
        padding: 80px 16px 32px;
    }
    
    .case-facts {
        grid-template-columns: 1fr 1fr;
    }
    
    .case-main {
        padding: 32px 16px 60px;
    }
    
    .case-sidebar {
        grid-template-columns: 1fr;
    }
}
