@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap');

.resource-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.resource-header {
    background: #ffffff;
    border-radius: 18px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.resource-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.resource-header p {
    font-size: 1.1rem;
    color: #475569;
}

.template-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.section-title {
    font-size: 1.75rem;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

.copy-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    z-index: 10;
}

.copy-btn:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: #10b981;
}

.template-content {
    font-family: 'Monaco', 'Courier New', monospace;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    white-space: pre-wrap;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    max-height: 600px;
    overflow-y: auto;
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.info-box strong {
    color: #1e40af;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.warning-box strong {
    color: #92400e;
}

.success-box {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
}

.success-box strong {
    color: #065f46;
}

.back-link {
    display: inline-block;
    margin: 2rem 0;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.section-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.highlight-section {
    background: #f0fdf4;
    border: 2px solid #10b981;
}

.highlight-section .section-title {
    color: #047857;
    border-color: #10b981;
}

.highlight-section .copy-btn {
    background: #10b981;
}

.highlight-section .copy-btn:hover {
    background: #059669;
}

@media (max-width: 768px) {
    .resource-page {
        padding: 1rem;
    }

    .resource-header h1 {
        font-size: 1.75rem;
    }

    .resource-header p {
        font-size: 1rem;
    }

    .copy-btn {
        position: static;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* Case-study specific styles */
 .case-studies {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.summary-card {
    background: #eef2ff;
    border-radius: 12px;
    padding: 1.5rem;
    color: #1e293b;
    border: 1px solid #c7d2fe;
    margin-bottom: 2rem;
}

.summary-card strong {
    color: #4338ca;
}

.case-grid {
    display: grid;
    gap: 2rem;
}

.case-card {
    border-radius: 18px;
    padding: 2.5rem;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
}

.case-card:nth-child(2) {
    border-color: #c7d2fe;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.12);
}

.case-card:nth-child(3) {
    border-color: #fde68a;
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.12);
}

.case-title {
    font-size: 1.9rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.case-subtitle {
    color: #475569;
    margin-bottom: 1.5rem;
}

.case-content {
    background: #f8fafc;
    border-radius: 14px;
    border: 1px dashed #cbd5f5;
    padding: 1.5rem;
    font-size: 0.95rem;
    color: #1f2937;
    line-height: 1.7;
}

.case-content h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    margin: 1rem 0 0.35rem;
}

.case-content h4:first-child {
    margin-top: 0;
}

.case-content ul {
    margin: 0 0 1rem 1.25rem;
    padding: 0;
    list-style: disc;
}

.case-content ul li {
    margin-bottom: 0.4rem;
}

.case-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight-card {
    background: #e0f2fe;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid #bae6fd;
    color: #0f172a;
}

.highlight-card strong {
    display: block;
    color: #0ea5e9;
    margin-bottom: 0.35rem;
}

.highlight-card p {
    margin: 0;
    color: #0f172a;
}

.tip-card {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #ecfccb;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    color: #166534;
}

@media (max-width: 768px) {
    .case-studies {
        padding: 2rem 1.5rem;
    }

    .case-card {
        padding: 1.5rem;
    }

    .resource-header h1 {
        font-size: 2rem;
    }
}
