/* Incident Management Page Styles */

/* Hero Section */
.incident-hero {
    padding: 4rem 0;
}

.incident-hero h2 {
    font-size: 2.5rem;
}

/* Theory Grid */
.theory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.theory-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.theory-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.theory-card p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.theory-card ul,
.theory-card ol {
    padding-left: 1.5rem;
}

.theory-card li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #555;
}

/* Best Practices Section */
.best-practices-section {
    margin-top: 3rem;
}

.best-practices-section h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.practices-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.practice-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.practice-item h4 {
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.practice-item p {
    line-height: 1.7;
    color: #555;
}

/* Calculator Card */
.calculator-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.calculator-card h3 {
    color: #667eea;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Severity Calculator Inputs */
.severity-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.severity-select,
.text-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.severity-select:focus,
.text-input:focus {
    outline: none;
    border-color: #667eea;
}

.severity-select:hover,
.text-input:hover {
    border-color: #667eea;
}

.calculate-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.calculate-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Severity Result */
.severity-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.severity-badge-large {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.severity-result h4 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.severity-result p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.severity-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin-top: 1.5rem;
}

.severity-actions h5 {
    color: #667eea;
    margin-bottom: 1rem;
}

.severity-actions ul {
    list-style: none;
    padding-left: 0;
}

.severity-actions li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.severity-actions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* Severity Badges */
.severity-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.severity-badge.p0,
.severity-badge-large.p0 {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.severity-badge.p1,
.severity-badge-large.p1 {
    background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
}

.severity-badge.p2,
.severity-badge-large.p2 {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.severity-badge.p3,
.severity-badge-large.p3 {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

/* Severity Table */
.severity-reference {
    margin-top: 3rem;
}

.severity-reference h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.severity-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.severity-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.severity-table th,
.severity-table td {
    padding: 1rem;
    text-align: left;
}

.severity-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.severity-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.severity-table tbody tr:last-child {
    border-bottom: none;
}

.severity-table tbody tr:hover {
    background: #f8f9fa;
}

/* Tool Filters */
.tool-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tool-filters label {
    display: block;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #667eea;
    color: white;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.filter-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Table wrapper for horizontal scroll */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0;
}

/* Tools Table */
.tool-comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tools-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.tools-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tools-table th,
.tools-table td {
    padding: 1rem;
    text-align: left;
}

.tools-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.tools-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
}

.tools-table tbody tr:last-child {
    border-bottom: none;
}

.tools-table tbody tr:hover {
    background: #f8f9fa;
}

.tools-table tbody tr.hidden {
    display: none;
}

/* Tool Decision Framework */
.tool-decision-framework {
    margin-top: 3rem;
}

.tool-decision-framework h3 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.decision-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.decision-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.decision-card h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.decision-card ul {
    list-style: none;
    padding-left: 0;
}

.decision-card li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #555;
}

/* CUJ Sections */
.cuj-what,
.cuj-why,
.cuj-playbook {
    margin: 3rem 0;
}

.cuj-what h3,
.cuj-why h3,
.cuj-playbook h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.cuj-examples {
    list-style: none;
    padding-left: 0;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cuj-examples li {
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 3px solid #667eea;
}

.benefit-card h4 {
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.benefit-card p {
    color: #555;
    line-height: 1.6;
}

/* Playbook Steps */
.playbook-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.step-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.step-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: 700;
}

/* CUJ Mapper Inputs */
.cuj-mapper-inputs {
    margin-bottom: 2rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkbox-label:hover {
    background: #e9ecef;
}

.cuj-checkbox {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* CUJ Result */
.cuj-result {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
}

.cuj-result h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.cuj-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.cuj-recommendations {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.cuj-recommendations h5 {
    color: #28a745;
    margin-bottom: 1rem;
}

.cuj-recommendations ul {
    list-style: none;
    padding-left: 0;
}

.cuj-recommendations li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.cuj-recommendations li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}

/* CUJ Example */
.cuj-example {
    margin-top: 3rem;
}

.cuj-example h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

/* Info Table (reusable) */
.info-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

.info-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
}

.info-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.info-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.info-table tbody tr:last-child {
    border-bottom: none;
}

.info-table tbody tr:hover {
    background: #f8f9fa;
}

/* FAQ */
.faq {
    max-width: 900px;
    margin: 2rem auto;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid #667eea;
}

.faq-item h4 {
    color: #667eea;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #555;
    line-height: 1.7;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.resource-card h4 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.resource-card ul {
    list-style: none;
    padding-left: 0;
}

.resource-card li {
    margin-bottom: 1rem;
}

.resource-card a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-card a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Section Intro */
.section-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .incident-hero {
        padding: 3rem 0;
    }

    .incident-hero h2 {
        font-size: 1.75rem;
    }

    .theory-grid {
        grid-template-columns: 1fr;
    }

    .practices-list {
        grid-template-columns: 1fr;
    }

    .severity-inputs {
        grid-template-columns: 1fr;
    }

    .calculator-card {
        padding: 1.5rem;
    }

    .calculator-card h3 {
        font-size: 1.5rem;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    /* Transform tables into mobile-friendly cards */
    .tools-table,
    .severity-table,
    .info-table {
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .tools-table thead,
    .severity-table thead,
    .info-table thead {
        display: none;
    }

    .tools-table tbody,
    .severity-table tbody,
    .info-table tbody {
        display: block;
    }

    .tools-table tr,
    .severity-table tr,
    .info-table tr {
        display: block;
        margin-bottom: 1.5rem;
        background: white;
        border-radius: 8px;
        padding: 1.25rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: none;
        border-left: 4px solid #667eea;
    }

    .tools-table td,
    .severity-table td,
    .info-table td {
        display: block;
        text-align: left;
        padding: 0.5rem 0;
        border: none;
    }

    .tools-table td:before,
    .severity-table td:before,
    .info-table td:before {
        content: attr(data-label);
        font-weight: 700;
        color: #667eea;
        display: block;
        margin-bottom: 0.25rem;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Special styling for tool names - make them prominent */
    .tools-table td:first-child {
        font-size: 1.3rem; /* Moderate size for tool names as card titles */
        padding-bottom: 1rem;
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 0.75rem;
    }

    .tools-table td:first-child:before {
        display: none;
    }

    /* Severity badges in mobile cards */
    .severity-table td:first-child {
        text-align: center;
        padding: 1rem 0;
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 0.75rem;
    }

    .severity-table td:first-child:before {
        display: none;
    }

    .severity-table .severity-badge {
        font-size: 1.2rem;
        padding: 0.6rem 1.5rem;
    }

    /* CUJ example table - highlight incident name */
    .info-table td:first-child {
        font-size: 1.1rem; /* Slightly larger for incident names as descriptive titles */
        font-weight: 600;
        color: #2c3e50;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e0e0e0;
        margin-bottom: 0.75rem;
    }

    .info-table td:first-child:before {
        display: none;
    }

    .decision-cards {
        grid-template-columns: 1fr;
    }

    .playbook-step {
        flex-direction: column;
    }

    .step-number {
        align-self: flex-start;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .severity-badge-large {
        font-size: 2rem;
        padding: 0.75rem 2rem;
    }

    .section h2 {
        font-size: 1.75rem;
    }

    .section-intro {
        font-size: 1rem;
    }
}

/* Additional Utility Classes */
.bg-light {
    background-color: #f8f9fa;
}

.section {
    padding: 4rem 0;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}
