/* ============================================
   RESOURCES PAGE – IT Support Training
   Soft, Neurodiversity-Friendly Design
   ============================================ */

/* ---- Page Hero ---- */
.page-hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, #f2f4f8 0%, #e6e9f0 100%);
    border-radius: 16px;
    margin-bottom: 2.5rem;
    border: 1px solid #d5dbe3;
}
.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
}
.page-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #000000;
    max-width: 700px;
    margin: 0 auto;
}

/* ---- Learning Tips ---- */
.learning-tips {
    margin-bottom: 3rem;
}
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #000000;
}
.section-subtitle {
    color: #000000;
    font-size: 1.1rem;
}
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.tip-card {
    background: #ffffff;
    border: 1px solid #dce1e8;
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.tip-icon {
    font-size: 2.2rem;
    color: #8fb4e3;
    margin-bottom: 0.75rem;
}
.tip-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6fa1d0;
    margin-bottom: 0.5rem;
}
.tip-card p {
    font-size: 0.95rem;
    color: #4a5a6e;
    line-height: 1.6;
}

/* ---- Resources Grid ---- */
.resources-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.category-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #dce1e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.category-icon {
    font-size: 2rem;
    color: #4a6a8b;
}
.category-header h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2a689f;
    margin: 0;
}
.category-description {
    color: #5a6a7e;
    margin-left: auto;
    width: 100%;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.resources-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.resource-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 14px;
    border-left: 4px solid #6a8bae;
    transition: background 0.2s, transform 0.2s;
}
.resource-card:hover {
    background: #eef1f5;
    transform: translateX(4px);
}
.resource-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background-color: #6a7a8e;
}
.resource-badge.video {
    background-color: #b34a5a;
}
.resource-badge.website {
    background-color: #3a7a5a;
}
.resource-badge.article {
    background-color: #c47a3a;
}
.resource-content {
    flex: 1 1 200px;
}
.resource-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6fa1d0;
    margin: 0.25rem 0;
}
.resource-description {
    font-size: 0.95rem;
    color: #4a5a6e;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.resource-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #5a6a7e;
}
.meta-item i {
    margin-right: 0.3rem;
    color: #6a8bae;
}
.resource-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
}
.resource-actions.dual-buttons .btn {
    min-width: 100px;
}
.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #6a7a8e;
    cursor: pointer;
    transition: color 0.2s;
}
.btn-icon:hover {
    color: #4a6a8b;
}
.watch-site-btn {
    background-color: #4a6a8b;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}
.watch-site-btn:hover {
    background-color: #3a5a7b;
    color: #fff;
}
.youtube-btn {
    background-color: #b34a5a;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}
.youtube-btn:hover {
    background-color: #9a3a4a;
    color: #fff;
}
.resource-btn {
    background-color: #6a7a8e;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}
.resource-btn:hover {
    background-color: #5a6a7e;
    color: #fff;
}

/* ---- Video Modal ---- */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.video-modal.active {
    display: flex;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 40, 50, 0.8);
    backdrop-filter: blur(6px);
}
.modal-container {
    position: relative;
    background: #ffffff;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f5f7fa;
    border-bottom: 1px solid #dce1e8;
    flex-shrink: 0;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #4a5a6e;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.modal-close:hover {
    opacity: 1;
}
.modal-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.video-info {
    width: 100%;
    max-width: 800px;
    flex-shrink: 0;
    padding: 0.5rem 0;
}
.video-info p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #6fa1d0;
    line-height: 1.6;
}
.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #5a6a7e;
}
.video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dce1e8;
    background: #f5f7fa;
    gap: 0.5rem;
    flex-shrink: 0;
}
.nav-btn {
    background: #eef1f5;
    border: 1px solid #dce1e8;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    transition: background 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-btn:hover {
    background: #dce1e8;
}
.nav-btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ---- Additional Resources ---- */
.additional-resources {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #dce1e8;
}
.additional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.additional-card {
    background: #ffffff;
    border: 1px solid #dce1e8;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.additional-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6fa1d0;
    margin-bottom: 0.75rem;
}
.additional-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.additional-card ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 0.95rem;
    color: #3a4a5e;
    line-height: 1.5;
}
.additional-card ul li:last-child {
    border-bottom: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.8rem; }
    .category-header h2 { font-size: 1.3rem; }
    .resource-card { flex-direction: column; align-items: stretch; }
    .resource-actions { margin-left: 0; justify-content: flex-start; }
    .resource-actions.dual-buttons .btn { min-width: auto; flex: 1; }
    .modal-container { width: 95%; max-height: 95vh; }
    .modal-footer { flex-wrap: wrap; justify-content: center; }
    .modal-footer .nav-btn { flex: 1; text-align: center; min-width: 100px; }
    .tips-grid { grid-template-columns: 1fr 1fr; }
    .additional-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .tips-grid { grid-template-columns: 1fr; }
    .category-header { flex-direction: column; align-items: flex-start; }
    .category-description { margin-left: 0; }
}

/* ---- High Contrast (Soft, Neurodivergent-Friendly) ---- */
.high-contrast .resource-card {
    background: #1e2a36;
    border-color: #c9a86c;
    color: #f0e8d8;
}
.high-contrast .resource-card .resource-description,
.high-contrast .resource-card .resource-meta {
    color: #e0d8c8;
}
.high-contrast .resource-badge {
    background: #c9a86c;
    color: #1e2a36;
}
.high-contrast .watch-site-btn {
    background-color: #c9a86c;
    color: #1e2a36;
}
.high-contrast .youtube-btn {
    background-color: #c9a86c;
    color: #1e2a36;
}
.high-contrast .modal-container {
    background: #1e2a36;
    border: 2px solid #c9a86c;
    color: #f0e8d8;
}
.high-contrast .modal-close {
    color: #f0e8d8;
}
.high-contrast .nav-btn {
    background: #1e2a36;
    color: #f0e8d8;
    border-color: #c9a86c;
}
.high-contrast .nav-btn:hover {
    background: #2a3a4a;
}
.high-contrast .tip-card {
    background: #1e2a36;
    border-color: #c9a86c;
}
.high-contrast .tip-card p {
    color: #e0d8c8;
}
.high-contrast .additional-card {
    background: #1e2a36;
    border-color: #c9a86c;
}
.high-contrast .additional-card ul li {
    border-bottom-color: #c9a86c;
    color: #e0d8c8;
}
.high-contrast .page-hero {
    background: #1e2a36;
    border-color: #c9a86c;
}
.high-contrast .page-hero h1,
.high-contrast .page-hero .hero-subtitle {
    color: #f0e8d8;
}
.high-contrast .category-section {
    background: #1e2a36;
    border-color: #c9a86c;
}
.high-contrast .category-header h2 {
    color: #f000000;
}
.high-contrast .category-description {
    color: #d0c8b8;
}
.high-contrast .section-header h2 {
    color: #000000;
}
.high-contrast .section-subtitle {
    color: #000000;
}

/* ---- Bookmark (Soft Gold) ---- */
.resource-card.bookmarked {
    border-left-color: #c9a86c;
    background-color: #f8f4ec;
}
.high-contrast .resource-card.bookmarked {
    border-left-color: #c9a86c;
    background-color: #2a3a4a;
}
.bookmark-btn .fas.fa-bookmark {
    color: #c9a86c;
}
.high-contrast .bookmark-btn .fas.fa-bookmark {
    color: #c9a86c;
}

/* ---- Dyslexic Mode ---- */
.dyslexic-mode .resource-card,
.dyslexic-mode .tip-card,
.dyslexic-mode .additional-card {
    font-family: 'OpenDyslexic', 'Comic Sans MS', sans-serif !important;
    letter-spacing: 0.08em;
    word-spacing: 0.12em;
}
.dyslexic-mode .resource-content h3,
.dyslexic-mode .tip-card h4,
.dyslexic-mode .additional-card h4 {
    font-weight: 600;
}

/* ---- General Accessibility Improvements ---- */
body {
    font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.01em;
}
a, button {
    transition: color 0.2s, background 0.2s, transform 0.2s;
}

.other-ways {
    margin: 3rem 0 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #f6ad55;
    margin-bottom: 0.25rem;
}

.section-header .section-subtitle {
    color: #c4b5a5;
    font-size: 1rem;
}

.way-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.way-card {
    background: #2d241e;
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid #3d322a;
    text-align: center;
    transition: all 0.3s ease;
}

.way-card:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 173, 85, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.way-icon {
    font-size: 2.5rem;
    color: #f6ad55;
    margin-bottom: 0.5rem;
}

.way-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #f6ad55;
    margin: 0 0 0.5rem;
}

.way-card p {
    color: #c4b5a5;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.btn.small-btn {
    display: inline-block;
    background: #f6ad55;
    color: #1a1410;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn.small-btn:hover {
    background: #f8c17a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(246, 173, 85, 0.3);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .way-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Page ===== */
.contact-section {
    text-align: center;
    padding: 2rem 1rem;
}

.linkedin-container {
    margin: 2rem 0;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #0077b5;
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linkedin-link:hover {
    background-color: #005582;
    text-decoration: none;
    transform: translateY(-2px);
}

.linkedin-icon {
    width: 24px;
    height: 24px;
}

.contact-note {
    margin-top: 1.5rem;
    color: #666;
    font-style: italic;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Forms ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

form label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

form input,
form textarea,
form select {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

input[type="submit"] {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}
