/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d8659;
    --secondary-color: #3a9e6f;
    --accent-color: #ff6b35;
    --text-dark: #e0e0e0;
    --text-light: #ffffff;
    --background-light: #1a1a1a;
    --background-dark: #0d0d0d;
    --card-bg: #242424;
    --border-color: #333;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
}

.slideshow-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
    background: #000; 
}

.fade {
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 30%, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero-content-top {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.hero-content-bottom {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-light);
    padding: 20px;
}

.memorial-title {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.memorial-title .name {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: normal;
    text-transform: none;
    margin-top: 8px;
}

.dates {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.memorial-text {
    margin: 0 0 20px 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.memorial-text p {
    margin-bottom: 0;
}

/* ===== BUTTONS ===== */
.cta-buttons {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: #e85a2a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}

/* ===== CELEBRATION INFO SECTION ===== */
.about-sean {
    padding: 60px 20px;
    background-color: var(--background-dark);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.about-sean h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.about-sean p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 800px;
    margin: 20px auto;
}

.celebration-info {
    padding: 60px 20px;
    background-color: var(--background-light);
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.celebration-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.event-details {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: inline-block;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.event-details p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--text-dark);
}

.invitation {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--background-dark);
    color: var(--text-light);
    text-align: center;
    padding: 30px 20px;
    font-size: 1.1rem;
    font-style: italic;
}

/* ===== THE WALL PAGE ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.filter-controls {
    background: var(--card-bg);
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    background: var(--background-dark);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ===== MEMORY GRID ===== */
.memories-grid {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.memory-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.memory-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.memory-media {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--background-dark);
    position: relative;
}

.memory-media img,
.memory-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-media .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.memory-content {
    padding: 20px;
}

.memory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.memory-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.memory-relationship {
    color: #666;
    font-size: 0.9rem;
}

.memory-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--secondary-color);
    color: white;
    border-radius: 15px;
    font-size: 0.85rem;
}

.memory-story {
    color: var(--text-dark);
    line-height: 1.8;
    margin-top: 15px;
}

.memory-date {
    color: #999;
    font-size: 0.85rem;
    margin-top: 15px;
    text-align: right;
}

.audio-player {
    margin-top: 15px;
    width: 100%;
}

.audio-player audio {
    width: 100%;
}

/* ===== SHARE FORM PAGE ===== */
.share-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 20px;
}

.form-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--background-dark);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background-dark);
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.file-upload-area input[type="file"] {
    display: none;
}

.voice-recorder {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: var(--background-dark);
}

.record-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px auto;
    display: block;
}

.record-button:hover {
    transform: scale(1.05);
}

.record-button.recording {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 30px;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
}

.error-message {
    background: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.success-message {
    background: #efe;
    color: #060;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .name {
        font-size: 4rem;
    }
    
    .memorial-title {
        font-size: 1.8rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .name {
        font-size: 5rem;
    }
}

@media (max-width: 767px) {
    .hero-content-top {
        top: 20px;
        padding: 10px;
    }
    
    .hero-content-bottom {
        bottom: 20px;
        padding: 10px;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .memorial-title {
        font-size: 1.2rem;
    }
    
    .memorial-text {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .form-card {
        padding: 20px;
    }
}
