/**
 * MO Museo - Reseñas Frontend Styles
 *
 * @package MO_Museo
 */

/* ===========================================
   Resena Card (link reset)
   =========================================== */
a.museo-resena-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.museo-resena-card:hover,
a.museo-resena-card:focus {
    text-decoration: none;
    color: inherit;
}

/* ===========================================
   Resena Card
   =========================================== */
.museo-resena-card {
    background: var(--mo-white, #fff);
    border-radius: var(--mo-radius-md, 8px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.museo-resena-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.museo-resena-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.museo-resena-card-body {
    padding: var(--mo-spacing-md, 1rem);
}

.museo-resena-card-body h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.museo-resena-card-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mo-gray-600, #555);
    line-height: 1.5;
}

/* ===========================================
   Category Badge
   =========================================== */
.museo-resena-card-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mo-accent, #C17A4A);
    background: rgba(193, 122, 74, 0.1);
    padding: 3px 10px;
    border-radius: 3px;
}

/* ===========================================
   Resena Card Placeholder (no cover)
   =========================================== */
.museo-resena-card-placeholder {
    width: 100%;
    height: 200px;
    background: var(--mo-gray-200, #e5e5e5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.museo-resena-card-placeholder::after {
    content: '';
    width: 48px;
    height: 48px;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.5'%3E%3Cpath d='M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cline x1='10' y1='9' x2='8' y2='9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

/* ===========================================
   Resena Grid
   =========================================== */
.museo-resena-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--mo-spacing-lg, 1.5rem);
}

/* ===========================================
   Filters
   =========================================== */
.museo-resena-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--mo-spacing-xl, 2rem);
    justify-content: center;
}

.museo-filter-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--mo-gray-700, #333);
    background: var(--mo-gray-100, #f5f5f5);
    border: 1px solid var(--mo-gray-300, #ddd);
    transition: all 0.2s ease;
}

.museo-filter-btn:hover {
    color: var(--mo-primary, #8B5E3C);
    border-color: var(--mo-primary, #8B5E3C);
    text-decoration: none;
}

.museo-filter-btn.active {
    background: var(--mo-primary, #8B5E3C);
    color: var(--mo-white, #fff);
    border-color: var(--mo-primary, #8B5E3C);
}

.museo-filter-btn.active:hover {
    color: var(--mo-white, #fff);
}

/* ===========================================
   Single Resena — Cover
   =========================================== */
.museo-resena-cover {
    margin-bottom: var(--mo-spacing-lg, 1.5rem);
    border-radius: var(--mo-radius-md, 8px);
    overflow: hidden;
}

.museo-resena-cover img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* ===========================================
   Single Resena — Meta
   =========================================== */
.museo-resena-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mo-spacing-md, 1rem);
    margin-bottom: var(--mo-spacing-md, 1rem);
}

.museo-resena-date {
    font-size: 0.9rem;
    color: var(--mo-gray-500, #888);
}

/* ===========================================
   Single Resena — Content
   =========================================== */
.museo-resena-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--mo-gray-800, #222);
}

.museo-resena-content p {
    margin-bottom: 1.2em;
}

.museo-resena-content h2,
.museo-resena-content h3,
.museo-resena-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.museo-resena-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--mo-radius-md, 8px);
}

.museo-resena-content blockquote {
    border-left: 4px solid var(--mo-accent, #C17A4A);
    margin: 1.5em 0;
    padding: 0.5em 1.5em;
    color: var(--mo-gray-600, #555);
    font-style: italic;
}

/* ===========================================
   Responsive
   =========================================== */
@media screen and (max-width: 768px) {
    .museo-resena-grid {
        grid-template-columns: 1fr;
    }

    .museo-resena-cover img {
        max-height: 250px;
    }

    .museo-resena-content {
        font-size: 1rem;
    }

    .museo-resena-filters {
        justify-content: flex-start;
    }
}
