/*
 * ETERNITUM - Memorial Cards
 * Gravestone-inspired design with oval portrait photos
 */

/* ========== BASE CARD ========== */
.memorial-card-themed {
    border-radius: 16px;
    overflow: visible;
    transition: all 0.35s ease;
    cursor: pointer;
    position: relative;
    background: linear-gradient(180deg, #f8f6f3 0%, #fff 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 60px;
    margin-top: 60px;
}

.memorial-card-themed:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
}

/* ========== CIRCLE PORTRAIT ========== */
.memorial-card-themed .card-img-wrapper {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #D4AF37;
    background: #f5f5f5;
}

.memorial-card-themed .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.memorial-card-themed:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.memorial-card-themed:hover .card-img-wrapper {
    border-color: #C9A227;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

/* ========== CARD BODY ========== */
.memorial-card-themed .card-body {
    padding: 1.5rem 1rem 1.25rem;
    text-align: center;
    background: transparent;
}

/* Decorative divider */
.memorial-card-themed .card-body::before {
    content: '✦ ✦ ✦';
    display: block;
    color: #D4AF37;
    font-size: 0.6rem;
    letter-spacing: 0.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.memorial-card-themed .card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 0.35rem;
    transition: color 0.2s ease;
}

.memorial-card-themed:hover .card-title {
    color: #8B7355;
}

/* Dates */
.memorial-card-themed .card-dates {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Epitaph */
.memorial-card-themed .card-epitaph {
    font-size: 0.875rem;
    color: #555;
    font-style: italic;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    line-height: 1.5;
}

/* ========== BADGES ========== */
.memorial-card-themed .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.6rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
}

.memorial-card-themed .badge.badge-pet {
    background: rgba(139, 195, 74, 0.85) !important;
}

.memorial-card-themed .badge.badge-person {
    background: rgba(212, 175, 55, 0.85) !important;
}

/* ========== THEME ACCENT ========== */
.memorial-card-themed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 3px 3px 0 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.memorial-card-themed:hover::after {
    width: 80%;
    opacity: 1;
}

.memorial-card-themed.theme-classic::after {
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.memorial-card-themed.theme-modern::after {
    background: linear-gradient(90deg, transparent, #4a69bd, transparent);
}

.memorial-card-themed.theme-angelic::after {
    background: linear-gradient(90deg, transparent, #9b59b6, transparent);
}

.memorial-card-themed.theme-military::after {
    background: linear-gradient(90deg, transparent, #2E4A2E, transparent);
}