/* User Content Manager - Frontend Styles */

.ucm-form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ucm-form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.ucm-field {
    margin-bottom: 25px;
}

.ucm-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
}

.ucm-field input[type="text"],
.ucm-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.ucm-field input[type="text"]:focus,
.ucm-field textarea:focus {
    outline: none;
    border-color: #667eea;
}

.ucm-field input[type="file"] {
    padding: 10px 0;
}

#ucm-photo-preview {
    margin-top: 15px;
}

#ucm-photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ucm-submit {
    text-align: center;
    margin-top: 30px;
}

#ucm-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#ucm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#ucm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#ucm-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

#ucm-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#ucm-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ucm-login-required {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
}

.ucm-login-required a {
    color: #667eea;
    font-weight: 600;
}

/* Single Post Display */
.ucm-featured-image {
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
}

.ucm-featured-image img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.ucm-audio-player {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.ucm-audio-label {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.ucm-audio-player audio {
    width: 100%;
    max-width: 400px;
}

/* Hide comment attachment */
.comment-form input[type="file"],
.comment-form label[for*="attachment"],
.comment-form .comment-form-attachment {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .ucm-form-container {
        padding: 20px;
        margin: 10px;
    }

    .ucm-featured-image img {
        max-height: 300px;
    }
}

/* ===============================
   Memorial Card Grid
   =============================== */

.ucm-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 25px;
    margin: 30px 0;
}

.ucm-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ucm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ucm-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ucm-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ucm-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.3s;
}

.ucm-card:hover .ucm-card-image img {
    transform: scale(1.05);
}

.ucm-card-image.ucm-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.ucm-card-content {
    padding: 20px;
}

.ucm-card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.ucm-card-date {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px 0;
}

.ucm-card-excerpt {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.ucm-no-posts {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

/* Grid Responsive */
@media (max-width: 992px) {
    .ucm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ucm-grid {
        grid-template-columns: 1fr;
    }

    .ucm-card-image {
        height: 180px;
    }
}