:root {
    --primary: #7a8ba8;
    --primary-dark: #5d6f8c;
    --primary-light: #a8b9d4;
    --primary-subtle: #eef2f7;
    --accent: #c4a882;
    --accent-light: #f0e8dc;
    --bg: #faf7f5;
    --bg-alt: #f5f0eb;
    --surface: #ffffff;
    --text: #2c2c2c;
    --text-muted: #8a8a8a;
    --border: #e8e2dc;
    --border-light: #f0ebe4;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 2px 12px rgba(44, 44, 44, 0.06);
    --shadow-hover: 0 8px 24px rgba(44, 44, 44, 0.08);
    --transition: all 0.2s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0.6rem 0;
}

.navbar-brand {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    color: var(--primary);
    font-size: 1.2rem;
}

.navbar-brand .brand-text {
    color: var(--primary-dark);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-subtle);
}

.nav-link i {
    margin-right: 0.35rem;
}

.nav-cta {
    color: white !important;
    padding: 0.4rem 1rem !important;
    border-radius: var(--radius-sm);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
}


.hero-section {
    background: linear-gradient(180deg, var(--primary-subtle) 0%, var(--bg) 100%);
    padding: 3rem 1rem;
}

.hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

.hero-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-dates {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem auto;
    opacity: 0.5;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}


.section-title {
    font-size: 1.75rem;
    color: var(--primary-dark);
}


.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 139, 168, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.btn-lg {
    border-radius: var(--radius);
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
}


.card {
    border-radius: var(--radius);
    background: var(--surface);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-body {
    padding: 1.25rem;
}


.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--surface);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(122, 139, 168, 0.15);
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}


.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.9rem;
}


.auth-card {
    border-radius: var(--radius-lg);
}

.auth-icon {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.7;
}


.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.badge-type {
    background: var(--primary-subtle);
    color: var(--primary-dark);
    font-weight: 500;
    text-transform: capitalize;
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
}


.photo-gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.photo-card {
    overflow: hidden;
    border-radius: var(--radius);
}

.photo-card:hover .photo-gallery-img {
    transform: scale(1.03);
}

.photo-card-img-wrapper {
    overflow: hidden;
    height: 200px;
}

.photo-timeline-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}


.video-thumb-wrapper video {
    width: 100%;
    border-radius: var(--radius-sm);
    background: #000;
}


.audio-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
}

.audio-big-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.7;
}

.audio-timeline-item {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: var(--radius-sm);
}


.playlist-icon {
    font-size: 2rem;
    color: var(--accent);
}

.playlist-big-icon {
    font-size: 3.5rem;
    color: var(--accent);
    opacity: 0.8;
}

.playlist-card:hover .playlist-icon {
    color: var(--primary);
}


.track-number {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 24px;
}


.memory-card:hover {
    border-color: var(--primary-light) !important;
}


.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-alt);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.upload-area:hover,
.upload-area-active {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.upload-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 0.5rem;
    pointer-events: none;
}

.file-info {
    padding: 0.35rem 0.75rem;
    background: var(--primary-subtle);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    word-break: break-all;
    max-width: 100%;
}


.avatar-circle-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-item {
    position: relative;
}

.comment-body {
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    min-width: 0;
}

.comment-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-form textarea {
    resize: vertical;
    min-height: 48px;
}

.empty-state .empty-icon {
    font-size: 3rem;
    color: var(--border);
}

.empty-state .empty-icon i {
    opacity: 0.5;
}


.memory-content {
    font-size: 1.05rem;
    line-height: 1.8;
}


audio {
    border-radius: var(--radius-sm);
}

audio::-webkit-media-controls-panel {
    background: var(--primary-subtle);
}


.footer {
    border-top: 1px solid var(--border-light);
    background: var(--bg);
}


@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 2rem 0.75rem;
    }

    .photo-gallery-img {
        height: 150px;
    }

    .photo-card-img-wrapper {
        height: 150px;
    }

    .card-body {
        padding: 1rem;
    }

    .audio-timeline-item {
        padding: 0.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .timeline-item {
        margin-bottom: 1rem !important;
    }
}


@media (max-width: 768px) {
    .navbar-nav .nav-link {
        padding: 0.4rem 0.75rem;
    }

    .nav-cta {
        margin-top: 0.25rem;
    }
}


@media (min-width: 992px) {
    .photo-gallery-img {
        height: 220px;
    }

    .photo-card-img-wrapper {
        height: 220px;
    }
}
