/**
 * Posting Modal Styles
 * Modern Enhanced Posting Modal - Phase 1
 * 
 * Features:
 * - Toggle switch for schedule mode in header (Bootstrap 5)
 * - Responsive two-column layout
 * - Dynamic schedule section
 * - Post audience selector
 */

/* ============================================
   MODAL HEADER STYLES
   ============================================ */

.posting-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
}

.posting-schedule-label-header {
    font-weight: 500;
    color: #65676b;
    transition: color 0.2s ease;
}

.posting-schedule-label-header:hover {
    color: #4a90e2;
}

/* ============================================
   BOOTSTRAP 5 TOGGLE SWITCH CUSTOMIZATION
   ============================================ */

.posting-schedule-toggle {
    width: 40px !important;
    height: 24px !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    background-color: #ccc !important;
    border: none !important;
}

.posting-schedule-toggle:checked {
    background-color: #4a90e2 !important;
    border-color: #4a90e2 !important;
}

.posting-schedule-toggle:focus {
    border-color: #4a90e2 !important;
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25) !important;
}

.posting-schedule-toggle:hover {
    opacity: 0.9;
}

.form-switch .posting-schedule-toggle {
    margin-top: 0;
}

/* ============================================
   CONTENT LAYOUT STYLES
   ============================================ */

.posting-modal-content-unified {
    display: flex;
    flex-direction: column;
}

.posting-modal-body {
    flex: 1;
}

.posting-audience-section {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.remove-image-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #ff4d4f;
}

/* ============================================
   SCHEDULE SECTION STYLES
   ============================================ */

.posting-schedule-section {
    animation: slideIn 0.3s ease forwards;
    margin-top: 20px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-block {
    background: #f0f7ff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #d0e8ff;
}

.schedule-title {
    font-size: 13px;
    font-weight: 600;
    color: #4a90e2;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .row.g-3 > div {
        flex: 0 0 100%;
    }

    .posting-modal-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .posting-schedule-toggle {
        width: 36px !important;
        height: 20px !important;
    }

    .posting-schedule-label-header {
        font-size: 11px;
    }
}
/* ============================================
   BUTTON ICON FIX - Ensure icons visible on hover
   ============================================ */

.btn-outline-secondary i,
.btn-outline-danger i {
    color: inherit;
    transition: color 0.15s ease-in-out;
}

.btn-outline-secondary:hover i,
.btn-outline-danger:hover i {
    color: inherit;
}

/* Specifically for edit and delete buttons */
.edit-scheduled-post i,
.delete-scheduled-post i {
    color: inherit;
}

.edit-scheduled-post:hover i,
.delete-scheduled-post:hover i {
    color: inherit;
}