/* Tutorial Pages Common Styles - tutorial-styles.css */

/* Page wrapper and content box */
.page-wrapper {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f5f7fa;
    padding: 32px 10%;
    min-height: 100vh;
}

.content-box {
    background: white;
    border-radius: 15px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 24px;
    padding: 16px 0;
    line-height: 1.2;
}

/* Section items and structure */
.section-item {
    position: relative;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.section-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    margin: 24px 0;
    position: relative;
}

.section-item h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.4;
}

.section-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    line-height: 1.4;
}

.section-item p {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Text styling */
strong {
    color: #000000;
    font-weight: 700;
}

/* Lists */
.list-disc, .list-decimal {
    margin-left: 24px;
    margin-bottom: 12px;
}

.list-disc li, .list-decimal li {
    margin-bottom: 6px;
    line-height: 1.6;
    padding-left: 8px;
}

ul.list-disc {
    list-style-type: disc;
}

ol.list-decimal {
    list-style-type: decimal;
}

ul ul, ol ul {
    margin-top: 6px;
    margin-bottom: 6px;
}

/* Special text highlights */
.back-term {
    background-color: #bfdaf9;
    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
}

.lay-term {
    background-color: #ffd4dd;
    padding: 2px 4px;
    border-radius: 2px;
    display: inline-block;
}

/* Info and warning boxes */
.info-boox {
    background-color: #f0f9ff;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid #3b82f6;
}

.warning-box {
    background-color: #fff7ed;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
    border-left: 4px solid #f97316;
}

.tip {
    background-color: #f8fafc;
    padding: 12px;
    border-left: 4px solid #3b82f6;
    margin: 12px 0;
}

.bonus-highlight {
    background-color: #ecfdf5;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 18px;
}

.conclusion {
    text-align: center;
    font-size: 18px;
    margin-top: 24px;
}

/* Tutorial Navigation Section */
.tutorial-nav-section {
    text-align: center;
    margin-top: 20px;
}

.tutorial-nav-section h2 {
    margin-bottom: 20px;
}

/* Tutorial Navigation Button */
.tutorial-next-btn-compact {
    all: unset;
    display: inline-block;
    padding: 12px 24px;
    background: #00a8ff;
    color: white;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #0090e0;
    border-bottom: 4px solid #0070b0;
    box-shadow: 
        0 4px 0 #0070b0,
        0 5px 10px rgba(0, 168, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    top: 0;
    transition: all 0.1s ease;
    user-select: none;
    white-space: nowrap;
}

.tutorial-next-btn-compact:hover {
    background: #0090e0;
    top: -1px;
    box-shadow: 
        0 5px 0 #0070b0,
        0 6px 15px rgba(0, 168, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: white;
    text-decoration: none;
}

.tutorial-next-btn-compact:active {
    top: 3px;
    box-shadow: 
        0 1px 0 #0070b0,
        0 2px 5px rgba(0, 168, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid #0070b0;
}

.tutorial-next-btn-compact .arrow {
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.tutorial-next-btn-compact:hover .arrow {
    transform: translateX(4px);
}

/* Final step button (green) */
.tutorial-next-btn-complete {
    background: #4CAF50;
    border-color: #388E3C;
    border-bottom-color: #2E7D32;
    box-shadow: 
        0 4px 0 #2E7D32,
        0 5px 10px rgba(76, 175, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tutorial-next-btn-complete:hover {
    background: #45a049;
    box-shadow: 
        0 5px 0 #2E7D32,
        0 6px 15px rgba(76, 175, 80, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tutorial-next-btn-complete:active {
    box-shadow: 
        0 1px 0 #2E7D32,
        0 2px 5px rgba(76, 175, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid #2E7D32;
}

/* Inline tutorial buttons (smaller) */
.tutorial-inline-btn {
    all: unset;
    display: inline-block;
    padding: 6px 12px;
    background: #00a8ff;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #0090e0;
    border-bottom: 3px solid #0070b0;
    box-shadow: 
        0 3px 0 #0070b0,
        0 4px 8px rgba(0, 168, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    top: 0;
    transition: all 0.1s ease;
    margin: 0 4px;
}

.tutorial-inline-btn:hover {
    background: #0090e0;
    top: -1px;
    box-shadow: 
        0 4px 0 #0070b0,
        0 5px 12px rgba(0, 168, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: white;
}

.tutorial-inline-btn:active {
    top: 2px;
    box-shadow: 
        0 1px 0 #0070b0,
        0 2px 4px rgba(0, 168, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid #0070b0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 16px 5%;
    }
    
    .content-box {
        padding: 24px;
    }
    
    .page-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .section-item {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .section-item:not(:last-child)::after {
        margin: 16px 0;
    }

    .section-item h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .section-item h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .tutorial-next-btn-compact {
        padding: 10px 20px;
        font-size: 1rem;
    }
}