/**
 * @fileoverview Tutorial-specific styles for the QR Digital tutorial
 * 
 * This file contains styles specifically for the tutorial steps and navigation.
 * Uses centralized CSS variables to ensure consistency and avoid conflicts.
 * 
 * Key Features:
 * - Tutorial step layout and styling
 * - Responsive image handling
 * - Navigation controls
 * - Typography and spacing
 */

/* ===== TUTORIAL CONTAINER ===== */
.tutorial-step {
    min-height: 200px;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.tutorial-step p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 20px auto;
}

/* ===== TUTORIAL LAYOUT ===== */
.tutorial-step section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

.tutorial-step figure {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    height: 22rem;
}

.tutorial-step div {
    flex: 1;
}

/* ===== TYPOGRAPHY ===== */
.tutorial-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #3d4461;
}

.tutorial-step a,
.tutorial-step a:hover {
    color: #3fabf3 !important;
}

.tutorial-step p {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    color: #6c757d;
}

/* Text Size Utilities */
.tutorial-step .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.tutorial-step .text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.tutorial-step .text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

/* Text Alignment Utilities */
.tutorial-step .text-center {
    text-align: center;
}

.tutorial-step .text-justify {
    text-align: justify;
}

.tutorial-step .text-lowercase {
    text-transform: lowercase;
}

/* ===== IMAGE STYLES ===== */
.tutorial-step img {
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Image Size Classes */
.tutorial-step img.w-100 {
    width: 100%;
}

.tutorial-step img.max-w-tw-40 {
    max-width: 10rem;
}

.tutorial-step img.max-w-tw-48 {
    max-width: 12rem;
}

.tutorial-step img.max-w-tw-52 {
    max-width: 13rem;
}

.tutorial-step img.max-w-tw-60 {
    max-width: 15rem;
}

.tutorial-step img.max-w-tw-80 {
    max-width: 20rem;
}

/* Image Styling Classes */
.tutorial-step img.rounded-tw-lg {
    border-radius: 0.5rem;
}

.tutorial-step img.object-tw-cover {
    object-fit: cover;
}

.tutorial-step img.object-tw-center {
    object-position: center;
}

.tutorial-step img.object-tw-top {
    object-position: top;
}

.tutorial-step img.object-tw-bottom {
    object-position: bottom;
}

/* ===== SPACING UTILITIES ===== */
.tutorial-step .m-0 {
    margin: 0;
}

.tutorial-step .mb-4 {
    margin-bottom: 1rem;
}

.tutorial-step .mt-tw-2 {
    margin-top: 0.5rem;
}

.tutorial-step .mt-tw-4 {
    margin-top: 1rem;
}

.tutorial-step .mt-tw-8 {
    margin-top: 2rem;
}

.tutorial-step .px-tw-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Gap Utilities */
.tutorial-step .gap-tw-4 {
    gap: 1rem;
}

.tutorial-step .gap-tw-6 {
    gap: 1.5rem;
}

.tutorial-step .gap-tw-8 {
    gap: 2rem;
}

/* ===== POSITION UTILITIES ===== */
.tutorial-step .position-relative {
    position: relative;
}

/* ===== VISIBILITY UTILITIES ===== */
.tutorial-step .hidden-tw {
    display: none;
}

.tutorial-step .visible-tw {
    display: block;
}

/* ===== NAVIGATION ===== */
#tutorial-navigation {
    display: none;
    text-align: center;
    margin: 20px 0;
}

#tutorial-prev-button:disabled,
#tutorial-next-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 640px) {

    /* Layout Changes */
    .tutorial-step section {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    .tutorial-step figure {
        width: auto;
        min-width: 13rem;
    }

    .tutorial-step figure.sm\:min-w-tw-48 {
        min-width: 12rem;
    }

    /* Image Responsive Classes */
    .tutorial-step img.sm\:max-w-tw-14 {
        max-width: 3.5rem;
    }

    .tutorial-step img.sm\:max-w-tw-40 {
        max-width: 10rem;
    }

    .tutorial-step img.sm\:max-w-tw-48 {
        max-width: 12rem;
    }

    /* Visibility Classes - Fixed */
    .tutorial-step .sm\:hidden-tw {
        display: none !important;
    }

    .tutorial-step .sm\:visible-tw {
        display: block !important;
    }

    /* Typography Responsive */
    .tutorial-step .sm\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    /* Flexbox Responsive */
    .tutorial-step .sm\:justify-content-tw-center {
        justify-content: center;
    }

    .tutorial-step .sm\:align-items-tw-center {
        align-items: center;
    }

    /* Padding Responsive */
    .tutorial-step .sm\:pl-tw-0 {
        padding-left: 0;
    }

    .tutorial-step .sm\:pr-tw-10 {
        padding-right: 2.5rem;
    }

    .tutorial-step .sm\:pl-tw-2 {
        padding-left: 0.5rem;
    }

    /* Margin Responsive */
    .tutorial-step .sm\:mt-tw-8 {
        margin-top: 2rem;
    }
}

/* Mobile visibility - ensure proper hiding/showing */
@media (max-width: 639px) {
    .tutorial-step .hidden-tw {
        display: none !important;
    }

    .tutorial-step .sm\:hidden-tw {
        display: block !important;
    }

    .tutorial-step .sm\:visible-tw {
        display: none !important;
    }
}

/* Desktop typography */
@media (min-width: 768px) {
    .tutorial-step h3 {
        font-size: 1.5rem;
        line-height: 1.5;
    }

    .tutorial-step p {
        font-size: 1.125rem;
        line-height: 1.7;
    }
}

/* Mobile typography */
@media (max-width: 767px) {
    .tutorial-step h3 {
        font-size: 1.125rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .tutorial-step p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* Small mobile typography */
@media (max-width: 480px) {
    .tutorial-step h3 {
        font-size: 1rem;
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }

    .tutorial-step p {
        font-size: 0.8125rem;
        line-height: 1.4;
    }
}