/* Responsive styles for detail pages (puzzle, simulator, games) */

/* Fenêtre Header - Responsive Layout */
@media (max-width: 576px) {
    /* Header ultra-compact for mobile */
    .detail-window-header {
        flex-wrap: nowrap !important;
        gap: 0.25rem !important;
        padding: 0.35rem 0.5rem !important;
        overflow-x: auto;
        align-items: center !important;
    }

    /* Left side (dots) - minimal gaps */
    .detail-window-header .d-flex:first-child {
        gap: 0.15rem !important;
        flex-shrink: 0;
    }

    /* Left side circles - even smaller */
    .detail-window-header .rounded-circle {
        width: 6px !important;
        height: 6px !important;
    }

    /* Right side content - minimal spacing, no wrapping */
    .detail-window-header .d-flex:last-child {
        gap: 0.3rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Font size adjustments for mobile - balance size and space */
    .detail-window-header .small {
        font-size: 0.75rem !important;
        line-height: 1.2;
    }

    /* Monospace font adjustments */
    .detail-window-header .font-monospace {
        font-size: 0.75rem !important;
        font-weight: 400;
    }

    /* Spacing adjustments */
    .detail-window-header .me-3 {
        margin-right: 0 !important;
    }

    .detail-window-header .me-2 {
        margin-right: 0 !important;
    }

    .detail-window-header .me-1 {
        margin-right: 0.1rem !important;
    }

    /* Timer flex adjustments */
    .detail-window-header [id$="-timer"] {
        white-space: nowrap;
        gap: 0.15rem !important;
        flex-shrink: 0;
    }

    /* Status dot - tiny */
    .detail-window-header .simulator-status-dot {
        width: 4px !important;
        height: 4px !important;
    }

    /* Status text adjustments */
    .detail-window-header [id$="-status-text"],
    .detail-window-header #status-text {
        font-size: 0.65rem !important;
        white-space: nowrap;
    }

    /* Icon spacing */
    .detail-window-header i {
        font-size: 0.7rem !important;
    }
}

/* Tablet adjustments (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .detail-window-header {
        padding: 0.65rem 1rem !important;
        gap: 0.75rem !important;
    }

    .detail-window-header .small {
        font-size: 0.8rem !important;
    }

    .detail-window-header .font-monospace {
        font-size: 0.8rem !important;
    }
}

/* Medium screens - adjust spacing (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .detail-window-header {
        padding: 0.5rem 1.5rem !important;
    }

    .detail-window-header .small {
        font-size: 0.85rem !important;
    }

    .detail-window-header .font-monospace {
        font-size: 0.85rem !important;
    }
}

/* Large screens and up */
@media (min-width: 993px) {
    .detail-window-header {
        padding: 0.5rem 1rem !important;
    }
}
