/* Copyright (c) 2025. Jericho Crosby (Chalwk) */

.simbrief-section {
    padding: 80px 0;
    background-color: white;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
}

.quick-link {
    background: #f0f9ff;
    border: 2px solid #2d6bc9;
    border-radius: 8px;
    padding: 12px 20px;
    color: #2d6bc9;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: #2d6bc9;
    color: white;
    transform: translateY(-3px);
}

.manual-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #2d6bc9;
    transition: transform 0.3s ease;
}

.manual-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h3 {
    color: #1a365d;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-badge {
    background: #2d6bc9;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.card-body {
    color: #4b5563;
}

.card-intro {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #1a365d;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.principle-item {
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease;
}

.principle-item:hover {
    transform: translateY(-5px);
    border-color: #2d6bc9;
}

.principle-icon {
    font-size: 2.5rem;
    color: #2d6bc9;
    margin-bottom: 15px;
}

.principle-item h4 {
    color: #1a365d;
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.principle-item p {
    color: #4b5563;
    line-height: 1.6;
}

.aircraft-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.aircraft-table th, .aircraft-table td {
    border: 1px solid #e2e8f0;
    padding: 15px;
    text-align: left;
}

.aircraft-table th {
    background: #f8fafc;
    color: #1a365d;
    font-weight: 600;
}

.aircraft-table tr:nth-child(even) {
    background: #f8fafc;
}

.aircraft-table tr:hover {
    background: #f0f9ff;
}

.policy-notes {
    background: #f0f9ff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    border-left: 4px solid #2d6bc9;
}

.policy-notes h5 {
    color: #1a365d;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-notes ul {
    padding-left: 20px;
    margin: 0;
}

.policy-notes li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.command-overview {
    margin: 25px 0;
}

.command-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
}

.command {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.command h4 {
    color: #1a365d;
    margin-top: 0;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
}

.command-desc {
    color: #4b5563;
    margin-bottom: 15px;
    line-height: 1.5;
}

.command-details {
    background: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.reporting-flow {
    background: #f0f9ff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #059669;
}

.reporting-flow h5 {
    color: #065f46;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reporting-flow ol {
    padding-left: 25px;
    margin: 0;
}

.reporting-flow li {
    margin-bottom: 15px;
    line-height: 1.6;
}

.procedure-section {
    margin-bottom: 35px;
}

.procedure-section h4 {
    color: #1a365d;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.requirement-grid, .standard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.requirement, .standard {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.requirement h5, .standard h5 {
    color: #1a365d;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.requirement p, .standard ul {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.standard ul {
    padding-left: 20px;
}

.standard li {
    margin-bottom: 8px;
}

.charter-tips {
    background: #fef3c7;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #f59e0b;
}

.charter-tips h5 {
    color: #92400e;
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.charter-tips ul {
    padding-left: 20px;
    margin: 0;
}

.charter-tips li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.steps-container {
    margin: 40px 0;
}

.step-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #2d6bc9;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #2d6bc9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-content h4 {
    color: #1a365d;
    margin-bottom: 10px;
}

.step-content p {
    color: #4b5563;
    line-height: 1.6;
}

.step-content ul {
    padding-left: 25px;
    margin-top: 10px;
}

.step-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.command-example {
    background: #f8fafc;
    border-left: 4px solid #059669;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
}

.command-example h5 {
    color: #065f46;
    margin-bottom: 10px;
}

.discord-bot-section {
    background: linear-gradient(135deg, #f8fafc, #e6f0ff);
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #e2e8f0;
}

.embed-preview {
    background: #36393f;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    color: white;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    max-width: 600px;
}

.embed-header {
    display: flex;
    margin-bottom: 15px;
}

.embed-color-bar {
    width: 4px;
    height: 100%;
    background: #2d6bc9;
    border-radius: 3px;
    margin-right: 15px;
}

.embed-content {
    flex: 1;
}

.embed-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
    font-size: 16px;
}

.embed-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.embed-author img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.embed-thumbnail {
    float: right;
    margin-left: 15px;
    margin-bottom: 15px;
}

.embed-thumbnail img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
}

.embed-fields {
    clear: both;
}

.embed-field {
    margin-bottom: 12px;
    background: #2f3136;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #2d6bc9;
}

.embed-field.inline {
    display: inline-block;
    width: calc(33.333% - 8px);
    margin-right: 12px;
    vertical-align: top;
}

.embed-field.inline:last-child {
    margin-right: 0;
}

.embed-field.block {
    display: block;
    width: 100%;
}

.field-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field-value {
    color: #b9bbbe;
    font-size: 14px;
    line-height: 1.4;
}

.embed-footer {
    color: #72767d;
    font-size: 12px;
    margin-top: 15px;
    border-top: 1px solid #2f3136;
    padding-top: 10px;
}

.pdf-button {
    background: #5865f2;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.pdf-button:hover {
    background: #4752c4;
}

.requirements-section {
    margin: 50px 0;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.requirement-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.requirement-card h5 {
    color: #1a365d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tips-section {
    margin: 50px 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tip-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.tip-card h5 {
    color: #d97706;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.screenshot {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.screenshot img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.screenshot-caption {
    padding: 15px;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #4b5563;
}

.note-box {
    background: #f0f9ff;
    border-left: 5px solid #2d6bc9;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.note-box i {
    font-size: 1.8rem;
    color: #2d6bc9;
    margin-top: 5px;
}

.note-box h4 {
    margin-top: 0;
    color: #1a365d;
}

.note-box ul, .note-box ol {
    margin: 15px 0;
    padding-left: 20px;
}

.note-box li {
    margin-bottom: 8px;
    color: #2d3748;
}

.note-box p {
    color: #2d3748;
    margin-bottom: 10px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
}

.role-pilot-under-training {
    background-color: #34d399;
    color: #065f46;
}

.role-charter-pilot {
    background-color: #60a5fa;
    color: #1e40af;
}

.role-senior-charter-pilot {
    background-color: #f59e0b;
    color: #78350f;
}

.role-lead-pilot {
    background-color: #ef4444;
    color: #7f1d1d;
}

.role-instructor {
    background-color: #8b5cf6;
    color: #4c1d95;
}

.api-response {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

.api-response h5 {
    color: #1e40af;
    margin-bottom: 10px;
}

.api-response code {
    color: #1e40af;
    background: transparent;
    padding: 0;
}

.debug-box {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border-left: 4px solid #f59e0b;
}

.debug-box code {
    color: #569cd6;
    background: transparent;
    padding: 0;
}

.section-subtitle {
    text-align: center;
}

.weather-requirement {
    background-color: #f0f9ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid #2d6bc9;
    margin: 20px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.weather-requirement i {
    font-size: 1.8rem;
    color: #2d6bc9;
    flex-shrink: 0;
}

.weather-requirement h5 {
    margin-top: 0;
    color: #1a365d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshot-checklist {
    margin: 25px 0;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.checklist-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.checklist-item i {
    font-size: 1.5rem;
    color: #2d6bc9;
    flex-shrink: 0;
}

.checklist-item strong {
    display: block;
    color: #1a365d;
    margin-bottom: 5px;
}

.checklist-item p {
    margin: 0;
    color: #4b5563;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .simbrief-section {
        padding: 60px 0;
    }

    .quick-links {
        margin: 30px 0;
    }

    .quick-link {
        width: 100%;
        justify-content: center;
    }

    .manual-card, .step-card {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-badge {
        align-self: flex-start;
    }

    .principle-grid, .command-row, .requirement-grid, .standard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .embed-field.inline {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }

    .discord-bot-section {
        padding: 20px;
    }

    .weather-requirement {
        flex-direction: column;
        gap: 10px;
    }

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

@media (max-width: 480px) {
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .step-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .step-number {
        margin-bottom: 15px;
        margin-right: 0;
    }

    .embed-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .embed-author img {
        margin-right: 0;
    }

    .role-badge {
        margin-left: 0;
        margin-top: 5px;
    }
}