/* File: assets/css/amum-styles.css */

/* --- AMUM Video List Styling (for the [amum_video_list] shortcode, if used) --- */

/* 1. Grid Container: Sets up a two-column responsive grid */
.amum-video-grid {
    display: grid;
    /* Two columns by default on larger screens, adjusting for spacing */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; /* Space between grid items */
    margin: 20px 0;
}

/* 2. Individual Video Item Styling */
.amum-video-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* Ensures player stays within bounds */
}

/* 3. Video Player Container Styling (for the [video] shortcode output) */
.amum-video-item .wp-video {
    /* Make video player take up full width of the item container */
    width: 100% !important; 
    height: auto !important; 
    max-width: 100%;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* 4. Details Section Styling */
.amum-video-details {
    padding-top: 10px;
}

/* Title Styling */
.amum-video-details h4 {
    font-size: 1.25em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

/* Metadata Paragraph Styling */
.amum-video-details p {
    font-size: 0.9em;
    margin: 5px 0;
    color: #666;
    line-height: 1.4;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .amum-video-grid {
        /* On small screens, stack the videos in a single column */
        grid-template-columns: 1fr;
    }
}


/* ------------------------------------------------------------------- */
/* --- FRONT-END UPLOAD FORM STYLING (Minimal set for functionality) --- */
/* ------------------------------------------------------------------- */

/* Progress Bar and Messages */
.progress-bar {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
    transition: width 0.3s ease;
}
.progress-text {
    text-align: center;
    font-weight: bold;
}
.success-message {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 15px;
}
.error-message {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 15px;
}
.file-size-info {
    display: block;
    margin-top: 5px;
    color: #666;
    font-style: italic;
}

/* Form Groups and Inputs */
.amum-form-group {
    margin-bottom: 15px;
}
.amum-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}
.amum-form-group input[type="text"], 
.amum-form-group select, 
.amum-form-group textarea,
.amum-form-group input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.amum-form-group textarea {
    min-height: 100px;
}
.amum-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}/* Admin Dashboard Container */
.amum-admin-dashboard {
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Headings */
.amum-admin-dashboard h2 {
    margin-bottom: 15px;
    color: #222;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

/* Tables */
.amum-admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.amum-admin-table th,
.amum-admin-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.amum-admin-table th {
    background: #f9f9f9;
    font-weight: bold;
}

/* Table Row Hover */
.amum-admin-table tbody tr:hover {
    background: #f1f1f1;
}

/* Buttons */
.amum-admin-table button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: 0.2s all;
}

.amum-delete-media { background: #e74c3c; color: #fff; }
.amum-restore-media { background: #27ae60; color: #fff; }
.amum-blacklist-user { background: #f39c12; color: #fff; }

.amum-admin-table button:hover {
    opacity: 0.85;
}

/* Role select dropdown */
.amum-role-select {
    padding: 5px;
    font-size: 0.9em;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* Logs Table Smaller Font */
.amum-admin-dashboard table.amum-admin-table tbody tr td {
    font-size: 0.85em;
}

/* Thumbnails immediately visible */
img.wp-post-image,
.post-thumbnail img,
.amum-card-thumb img {
    opacity: 1 !important;
    visibility: visible !important;
    content-visibility: auto;
}

/* Video controls always visible */
#amum-video-player video {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    background: #000;
}
#amum-video-player video::-webkit-media-controls-panel {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
