/*
 * Display Page Styles
 * Estilos para la página de visualización de contenido
 * Combina estilos de completion toggles y responsive mobile


/* ============================================
   COMPLETION TOGGLE SWITCHES STYLES
   ============================================ */
.form-check.form-switch {
    border: none !important;
    border: 0px !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-check-input.switch-resolve:focus {
    box-shadow: 0 0 0 0.25rem rgba(242, 35, 226, 0.25) !important;
    border-color: #F223E2;
}

.form-check-input.switch-resolve:checked {
    background-color: #F223E2;
    border-color: #F223E2;
}

.form-check-input.switch-resolve {
    transition: all 0.3s ease;
}

.form-check-label {
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.form-check-input.switch-resolve:checked + .form-check-label {
    color: #F223E2;
}

/* ============================================
   DESKTOP CONTENT-HEADER STYLES
   ============================================ */
@media (min-width: 769px) {
    .content-header {
        padding: 20px;
        background-color: #f8f9fa;
        border-radius: 8px;
        margin-bottom: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .content-header .d-flex.justify-content-between.align-items-center {
        align-items: center !important;
        flex-direction: row !important;
        gap: 20px !important;
    }
    
    .content-header .d-flex.align-items-center {
        align-items: center !important;
        gap: 15px;
    }
    
    .content-header .content-type-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        font-size: 1.5rem;
    }
    
    .content-header h2 {
        margin: 0;
        font-size: 1.75rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .navigation-buttons {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .navigation-buttons .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 6px;
        font-weight: 500;
    }
    
    /* Admin edit button alignment */
    .content-header .btn-sm.btn-outline-secondary {
        align-self: center;
        margin-left: auto;
        margin-right: 0;
    }
    
    /* Content display area with more padding for desktop */
    .content-display-area {
        padding: 15px !important;
        border-radius: 12px;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
}

/* Fix for long links in content that cause text truncation on mobile */

.content-display-area {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-display-area a {
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Specific fix for content inside textContentBody */
#textContentBody {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#textContentBody a {
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
    display: inline-block;
    max-width: 100%;
}