/* ========================================
   TUTORIAL PAGE STYLES
   ======================================== */

/* Tutorial Header */
.tutorial-header {
    padding: 100px 0 40px;
    background: linear-gradient(135deg, #fef7f6 0%, #ffffff 100%);
    border-bottom: 1px solid #e8eaed;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--gmail-red);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.tutorial-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.tutorial-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 800px;
}

.tutorial-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e8eaed;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Progress Section */
.progress-section {
    padding: 2rem 0;
    background: white;
    border-bottom: 1px solid #e8eaed;
}

.progress-card {
    background: var(--background-light);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.progress-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e8eaed;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gmail-red) 0%, var(--gmail-blue) 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Tutorial Content Layout */
.tutorial-content {
    padding: 3rem 0;
    background: white;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

/* Sidebar */
.tutorial-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tutorial-sidebar h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.lesson-list {
    list-style: none;
}

.lesson-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border: 1px solid #e8eaed;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: var(--background-light);
    border-color: var(--gmail-red-light);
}

.lesson-item.active {
    background: var(--background-lighter);
    border-color: var(--gmail-red);
}

.lesson-item.completed {
    background: #f0f9ff;
    border-color: var(--gmail-blue);
}

.lesson-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--background-light);
    border-radius: 50%;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.lesson-item.active .lesson-number {
    background: var(--gmail-red);
    color: white;
}

.lesson-item.completed .lesson-number {
    background: var(--gmail-blue);
    color: white;
}

.lesson-info {
    flex: 1;
}

.lesson-info h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.lesson-duration {
    font-size: 0.85rem;
    color: var(--text-light);
}

.lesson-status {
    font-size: 1.2rem;
}

.lesson-item.completed .lesson-status::before {
    content: '✅';
}

/* Main Content */
.tutorial-main {
    max-width: 800px;
}

.lesson-content {
    animation: fadeIn 0.5s ease;
}

.lesson-content.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lesson-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.lesson-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.lesson-section {
    margin-bottom: 3rem;
}

.lesson-section h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.lesson-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Lists */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.step-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--gmail-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.step-list li strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.step-list li p {
    margin: 0.5rem 0;
}

.step-list li ul {
    margin-top: 0.75rem;
    padding-left: 1.5rem;
}

.step-list li ul li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.step-list li ul li::before {
    display: none;
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-secondary);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gmail-red);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Info Boxes */
.tip-box,
.warning-box {
    padding: 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.tip-box {
    background: #f0f9ff;
    border-color: var(--gmail-blue);
}

.warning-box {
    background: #fef7f6;
    border-color: var(--gmail-red);
}

.tip-box strong,
.warning-box strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

.interface-item,
.action-item {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.interface-item h4,
.action-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.interface-item ul,
.action-item ul {
    list-style: none;
    padding: 0;
}

.interface-item li,
.action-item li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.interface-item strong,
.action-item strong {
    color: var(--text-primary);
}

/* Lesson Actions */
.lesson-actions {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e8eaed;
    flex-wrap: wrap;
}

.btn-back,
.btn-complete,
.btn-next,
.btn-certificate,
.btn-next-course {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-back {
    background: var(--background-light);
    color: var(--text-primary);
    border: 1px solid #e8eaed;
}

.btn-back:hover {
    background: #e8eaed;
}

.btn-complete {
    background: var(--gmail-blue);
    color: white;
}

.btn-complete:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.3);
}

.btn-next,
.btn-next-course {
    background: var(--gmail-red);
    color: white;
}

.btn-next:hover,
.btn-next-course:hover {
    background: var(--gmail-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(234, 67, 53, 0.3);
}

.btn-certificate {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.btn-certificate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.4);
}

/* Course Complete */
.course-complete {
    text-align: center;
    padding: 4rem 2rem;
}

.course-complete.hidden {
    display: none;
}

.complete-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: linear-gradient(135deg, #fef7f6 0%, #ffffff 100%);
    border-radius: 16px;
    border: 2px solid var(--gmail-red-light);
}

.complete-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.complete-card h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.complete-card>p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.complete-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gmail-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.complete-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .tutorial-sidebar {
        position: static;
    }

    .tutorial-header h1 {
        font-size: 2rem;
    }

    .tutorial-meta {
        gap: 1rem;
    }

    .lesson-actions {
        flex-direction: column;
    }

    .btn-back,
    .btn-complete,
    .btn-next,
    .btn-certificate {
        width: 100%;
    }

    .complete-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .tutorial-header {
        padding: 80px 0 30px;
    }

    .tutorial-header h1 {
        font-size: 1.75rem;
    }

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

    .lesson-content h2 {
        font-size: 1.5rem;
    }

    .step-list li {
        padding-left: 2.5rem;
    }

    .step-list li::before {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}