/* =================================================================
   EDUCATIONAL PAGE - SHARED STYLES
   First Steps print fundamentals pages
   ================================================================= */

/* =================================================================
   BODY OVERRIDES
   Reset constraints from brand.css for full-width header/footer
   ================================================================= */

/* When edu-header is present, override body constraints */
body:has(.edu-header) {
    max-width: none;
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
}

/* =================================================================
   PAGE HEADER
   ================================================================= */

.edu-header {
    background: var(--primary, #022662);
    color: #fff;
    /* Account for fixed nav bar height: 143px desktop, 107px tablet */
    padding: 163px 0 40px; /* 143px nav + 20px top padding */
}

@media (max-width: 1024px) {
    .edu-header {
        padding-top: 127px; /* 107px nav + 20px top padding */
    }
}

.edu-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.edu-header__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.edu-header__back:hover {
    color: #fff;
}

.edu-header__back svg {
    width: 18px;
    height: 18px;
}

.edu-header__title-group {
    max-width: 600px;
}

.edu-header__module {
    display: inline-block;
    background: rgba(246, 139, 31, 0.2);
    border: 1px solid rgba(246, 139, 31, 0.4);
    color: var(--secondary, #f68b1f);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.edu-header__title {
    font-family: 'Circular Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.1;
}

.edu-header__subtitle {
    font-size: 18px;
    margin: 0;
    opacity: 0.8;
}

/* =================================================================
   MAIN LAYOUT (Two-Column)
   ================================================================= */

.edu-layout {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.edu-content {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

.edu-sidebar {
    width: 300px;
    flex-shrink: 0;
}

/* =================================================================
   CONTENT SECTIONS
   ================================================================= */

.edu-section {
    margin-bottom: 60px;
}

.edu-section h2 {
    font-family: 'Circular Std', 'Helvetica Neue', Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary, #022662);
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary, #f68b1f);
}

.edu-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text, #363636);
    margin: 0 0 15px;
}

.edu-section p:last-child {
    margin-bottom: 0;
}

/* =================================================================
   SIDEBAR COMPONENTS
   ================================================================= */

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary, #022662);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary, #f68b1f);
}

/* Quick Reference */
.quick-ref {
    background: var(--accent-light, #e7f0fb);
    border-radius: 8px;
    padding: 15px;
}

.quick-ref__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(2, 38, 98, 0.1);
}

.quick-ref__item:last-child {
    border-bottom: none;
}

.quick-ref__label {
    font-size: 13px;
    color: #555;
}

.quick-ref__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #022662);
    font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* Best Practice Box */
.best-practice {
    background: var(--highlight, #fff1e6);
    border-left: 4px solid var(--secondary, #f68b1f);
    border-radius: 0 8px 8px 0;
    padding: 15px;
}

.best-practice p {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

/* Sidebar Tip */
.sidebar-tip {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.sidebar-tip p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 10px;
}

.sidebar-tip ul {
    margin: 0;
    padding-left: 18px;
}

.sidebar-tip li {
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    margin-bottom: 5px;
}

.sidebar-tip li:last-child {
    margin-bottom: 0;
}

/* Downloads */
.sidebar-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark, #263238);
    font-size: 14px;
    transition: all 0.2s ease;
}

.download-link:hover {
    border-color: var(--primary, #022662);
    background: var(--accent-light, #e7f0fb);
}

.download-link svg {
    width: 20px;
    height: 20px;
    color: var(--secondary, #f68b1f);
    flex-shrink: 0;
}

/* =================================================================
   TUTORIAL CARDS
   ================================================================= */

.tutorial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.tutorial-card {
    max-width: 100%;
}

.tutorial-card__trigger {
    display: block;
    width: 100%;
    padding: 0;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
}

.tutorial-card__trigger:hover {
    border-color: var(--primary, #022662);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tutorial-card__thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tutorial-card__app-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    z-index: 2;
}

.tutorial-card__app-icon svg,
.tutorial-card__app-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.tutorial-card__app-icon--photoshop,
.tutorial-card__app-icon--illustrator,
.tutorial-card__app-icon--indesign {
    background: transparent;
}

.tutorial-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #022662 0%, #033a8c 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.tutorial-card__trigger:hover .tutorial-card__overlay {
    opacity: 0.95;
}

.tutorial-card__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--secondary, #f68b1f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 20px rgba(246, 139, 31, 0.5);
}

.tutorial-card__icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
    margin-left: 3px;
}

.tutorial-card__trigger:hover .tutorial-card__icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.tutorial-card__trigger:hover .tutorial-card__app-icon {
    opacity: 0.3;
}

.tutorial-card__info {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tutorial-card__label {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutorial-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark, #263238);
}

.tutorial-card__steps {
    font-size: 13px;
    color: #888;
}

/* =================================================================
   TUTORIAL MODAL ENHANCEMENTS
   ================================================================= */

.tutorial-modal__app-badge--photoshop,
.tutorial-modal__app-badge--illustrator,
.tutorial-modal__app-badge--indesign {
    background: transparent;
}

.tutorial-modal__app-badge img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Tutorial step screenshot images */
.tutorial-step__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Placeholder for screenshots (fallback) */
.tutorial-step__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 250px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.tutorial-step__placeholder span {
    font-size: 14px;
    color: #888;
    font-style: italic;
}

/* Tip and Warning styling overrides */
.tutorial-step__tip-icon,
.tutorial-step__warning-icon {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tutorial-step__tip-icon {
    background: var(--secondary, #f68b1f);
    color: #fff;
}

.tutorial-step__warning-icon {
    background: #e74c3c;
    color: #fff;
}

.tutorial-modal__sidebar-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(2, 38, 98, 0.05);
    border-radius: 6px;
}

.tutorial-modal__sidebar-note strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--primary, #022662);
    margin-bottom: 5px;
}

.tutorial-modal__sidebar-note p {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 1024px) {
    .edu-layout {
        flex-direction: column;
    }

    .edu-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .sidebar-section {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .edu-header__title {
        font-size: 32px;
    }

    .edu-header__subtitle {
        font-size: 16px;
    }

    .edu-section h2 {
        font-size: 24px;
    }

    .tutorial-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .edu-header {
        padding: 15px 0 30px;
    }

    .edu-header__title {
        font-size: 28px;
    }

    .edu-layout {
        padding: 25px 15px 60px;
    }
}
