/**
 * Memorial Detail Page Styles
 */

/* Memorial Cover Section */
.memorial-cover {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
}

.memorial-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

/* Memorial Header */
.memorial-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding: 2rem 0;
}

.memorial-header-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.memorial-profile-photo {
    flex-shrink: 0;
}

.memorial-profile-photo img,
.profile-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.profile-placeholder {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
}

.memorial-header-info {
    flex: 1;
}

.memorial-header-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.maiden-name,
.nickname {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.memorial-dates {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 1rem 0;
}

.date-birth i,
.date-death i {
    margin-right: 0.5rem;
}

.date-separator {
    color: var(--text-light);
}

.age {
    color: var(--text-light);
    font-size: 1rem;
}

.memorial-actions {
    display: flex;
    gap: 1rem;
}

/* Memorial Stats */
.memorial-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.memorial-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.memorial-stats .stat i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.memorial-stats .stat span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.memorial-stats .stat small {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Memorial Content Grid */
.memorial-content {
    padding: 3rem 0;
    background: var(--bg-light);
}

.memorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.memorial-main,
.memorial-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Content Cards */
.content-card,
.sidebar-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.content-card h2,
.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.sidebar-card h3 {
    font-size: 1.3rem;
}

/* Biography & Obituary */
.biography,
.obituary {
    margin-bottom: 1.5rem;
}

.biography h3,
.obituary h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.biography p,
.obituary p {
    line-height: 1.8;
    color: var(--text-dark);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.timeline-marker i {
    color: var(--primary-color);
    font-size: 0.6rem;
}

.timeline-content {
    padding-left: 1rem;
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
}

.timeline-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.photo-caption {
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

/* Stories */
.stories-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.story-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.story-author {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.story-date {
    margin-left: 0.5rem;
}

.story-content {
    line-height: 1.7;
    color: var(--text-dark);
}

/* Tributes Section */
.tribute-form {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.tribute-form h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tributes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tribute-item {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.tribute-item:hover {
    box-shadow: var(--shadow-sm);
}

.tribute-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tribute-avatar {
    flex-shrink: 0;
}

.tribute-avatar i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.tribute-info {
    flex: 1;
}

.tribute-info strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.tribute-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.tribute-message {
    line-height: 1.7;
    color: var(--text-dark);
}

.no-tributes {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Sidebar */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.info-list i {
    color: var(--primary-color);
    width: 20px;
    flex-shrink: 0;
}

.relationships-list {
    list-style: none;
    padding: 0;
}

.relationships-list li {
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.relationships-list strong {
    color: var(--primary-color);
}

/* Candles & Flowers Lists */
.candles-list,
.flowers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.candle-item,
.flower-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 5px;
}

.candle-icon {
    color: #FFD700;
    font-size: 1.2rem;
}

.flower-icon {
    color: #FF69B4;
    font-size: 1.2rem;
}

.candle-item strong,
.flower-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.candle-item small,
.flower-item small {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-share {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    font-size: 1rem;
}

.btn-share:hover {
    background: var(--primary-color);
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideUp 0.3s;
}

.photo-modal-content {
    max-width: 90%;
    padding: 1rem;
}

.photo-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Flower Options */
.flower-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.flower-option {
    flex: 1;
    cursor: pointer;
}

.flower-option input {
    display: none;
}

.flower-option span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.flower-option input:checked + span {
    border-color: var(--primary-color);
    background: var(--accent-color);
}

.flower-option span i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .memorial-grid {
        grid-template-columns: 1fr;
    }
    
    .memorial-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .memorial-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .memorial-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .memorial-profile-photo img,
    .profile-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .memorial-header-info h1 {
        font-size: 2rem;
    }
    
    .content-card,
    .sidebar-card {
        padding: 1.5rem;
    }
    
    .flower-options {
        flex-direction: column;
    }
}

