/* BTF Memory Services — Front-end Styles
   Designed to work on top of Astra/Hello Elementor.
   Soft, elegant — appropriate for weddings, memorials, graduations.
*/

/* ── Upload form ─────────────────────────────────────────────────────────── */

.btf-memory-upload-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 16px;
    font-family: inherit;
}

.btf-memory-header {
    text-align: center;
    margin-bottom: 32px;
}

.btf-memory-event-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c2c2c;
}

.btf-memory-event-date {
    color: #888;
    font-size: 0.95em;
    margin: 0;
}

/* Fields */
.btf-memory-field {
    margin-bottom: 20px;
}

.btf-memory-field label {
    display: block;
    font-size: 0.88em;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.btf-memory-field input[type="text"],
.btf-memory-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.btf-memory-field input[type="text"]:focus,
.btf-memory-field textarea:focus {
    outline: none;
    border-color: #a8956b;
    box-shadow: 0 0 0 3px rgba(168,149,107,0.12);
}

.btf-memory-hint {
    font-size: 0.82em;
    color: #aaa;
    margin-top: 6px;
    margin-bottom: 0;
}

/* FilePond overrides */
.filepond--root {
    border-radius: 8px;
    border: 2px dashed #ddd;
    background: #fafafa;
    font-family: inherit;
}

.filepond--root:hover {
    border-color: #a8956b;
    background: #fdf9f3;
}

.filepond--panel-root {
    background: transparent;
}

/* Progress bar */
.btf-memory-progress {
    margin: 16px 0;
}

.btf-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.btf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a8956b, #c8ae82);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

#btf-progress-label {
    font-size: 0.82em;
    color: #888;
    margin-top: 6px;
    margin-bottom: 0;
}

/* Submit button */
.btf-memory-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #a8956b;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.btf-memory-btn:hover {
    background: #937f5a;
}

.btf-memory-btn:active {
    transform: scale(0.99);
}

.btf-memory-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Status messages */
.btf-memory-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95em;
}

.btf-status--success {
    background: #f0f9f0;
    border: 1px solid #b8ddb8;
    color: #2d6a2d;
}

.btf-status--error {
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    color: #c0392b;
}

.btf-memory-message {
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
}

.btf-message--error {
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    color: #c0392b;
}

.btf-message--info {
    background: #f5f9ff;
    border: 1px solid #c6d9f5;
    color: #2c5aa0;
}

/* ── Gallery view ───────────────────────────────────────────────────────── */

.btf-gallery-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.btf-submission {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.btf-submission:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btf-submission.btf-sub--pending {
    border-color: #f5c518;
    opacity: 0.85;
}

.btf-submission.btf-sub--rejected {
    opacity: 0.5;
    border-color: #f5c6c6;
}

/* Media grid within a submission */
.btf-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 4px;
}

.btf-media-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

video.btf-media-item {
    aspect-ratio: auto;
    min-height: 120px;
    max-height: 280px;
    background: #000;
}

/* Submission meta */
.btf-sub-meta {
    padding: 12px 16px 4px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btf-sub-name {
    font-weight: 600;
    font-size: 0.95em;
    color: #2c2c2c;
}

.btf-sub-table {
    font-size: 0.8em;
    color: #888;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px 8px;
}

.btf-sub-message {
    margin: 8px 16px 16px;
    padding: 0;
    border-left: 3px solid #a8956b;
    padding-left: 12px;
    font-style: italic;
    color: #555;
    font-size: 0.92em;
    line-height: 1.5;
}

/* Moderation controls (admin only) */
.btf-mod-controls {
    background: #fffbe6;
    border-bottom: 1px solid #f5e08a;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82em;
}

.btf-mod-status {
    font-weight: 600;
    color: #555;
}

.btf-mod-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
}

.btf-approve { background: #d4edda; color: #155724; }
.btf-approve:hover { background: #b8ddc8; }
.btf-reject  { background: #f8d7da; color: #721c24; }
.btf-reject:hover  { background: #e8b8bc; }

/* Gallery password form */
.btf-gallery-password-wrap {
    max-width: 400px;
    margin: 60px auto;
    text-align: center;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.btf-gallery-password-wrap h3 {
    margin-bottom: 20px;
    color: #333;
}

.btf-gallery-password-wrap input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    margin-bottom: 12px;
    box-sizing: border-box;
    letter-spacing: 0.1em;
    text-align: center;
}

/* Mobile */
@media (max-width: 600px) {
    .btf-gallery-wrap {
        grid-template-columns: 1fr;
    }

    .btf-memory-event-title {
        font-size: 1.4em;
    }
}
