/* style-s2.css — Card-based layout for Script 2 (Fatal Mistakes) */

/* === Quick Fix Summary Table === */
.quick-fix-summary {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
    background: rgba(18, 20, 28, 0.6);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.quick-fix-summary thead th {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.quick-fix-summary tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #9ca3af;
    line-height: 1.5;
}
.quick-fix-summary tbody td:first-child {
    color: #f59e0b;
    font-weight: 700;
    width: 40px;
    text-align: center;
}
.quick-fix-summary tbody td:nth-child(2) {
    color: #e4e4e7;
    font-weight: 600;
}
.quick-fix-summary tbody tr:hover td {
    background: rgba(245, 158, 11, 0.04);
}
.quick-fix-summary tbody tr:last-child td {
    border-bottom: none;
}

/* === Mistake Cards === */
.mistake-card {
    background: rgba(18, 20, 28, 0.5);
    border-left: 4px solid #ef4444;
    border-radius: 0 10px 10px 0;
    padding: 20px 24px;
    margin-bottom: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mistake-card:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.mistake-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}
.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e4e4e7;
    margin: 0;
}
.card-section {
    margin-top: 12px;
}
.card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}
.label-wrong { color: #ef4444; }
.label-why   { color: #f59e0b; }
.label-fix   { color: #00ff88; }
.card-section p {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.7;
    margin: 0;
}

/* === Ad Slot Between Cards === */
.ad-slot-mid-card {
    margin: 20px 0;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
}

/* === Bottom Line Callout === */
.bottom-line-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 28px 0;
}
.bottom-line-box h2 {
    font-size: 1.2rem;
    color: #f59e0b;
    margin: 0 0 8px 0;
    border-bottom: none;
}
.bottom-line-box p {
    font-size: 0.95rem;
    color: #d1d5db;
    line-height: 1.7;
    margin: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    .quick-fix-summary { font-size: 0.8rem; }
    .quick-fix-summary thead th { padding: 8px 10px; font-size: 0.75rem; }
    .quick-fix-summary tbody td { padding: 8px 10px; }
    .mistake-card { padding: 16px; border-left-width: 3px; }
    .card-number { width: 28px; height: 28px; min-width: 28px; font-size: 0.85rem; }
    .card-title { font-size: 1rem; }
    .card-section p { font-size: 0.88rem; }
    .bottom-line-box { padding: 16px; }
}
