/* ==========================================================================
   Mindeside (Memory Page) Specific Stylesheet
   ========================================================================== */

/* Navigation Bar */
.navigation-bar {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;
}

.back-to-portal-link {
    text-align: left;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-to-portal-link:hover {
    color: var(--text-primary);
    transform: translateX(-4px);
}

/* Sections */
.minder-section {
    width: 100%;
    animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-header {
    margin-bottom: 2rem;
    text-align: left;
}

.minder-page-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.minder-page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    margin-top: 0.25rem;
}

/* Helper hidden class */
.hidden {
    display: none !important;
}

/* ==========================================================================
   Albums Grid & Cards
   ========================================================================== */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Album Card Glassmorphic Styling */
.album-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 320px;
    box-shadow: 0 8px 32px var(--card-shadow);
    transition: var(--transition-smooth);
    cursor: pointer;
    z-index: 5;
}

.album-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-border-hover);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Cover Image Layer */
.album-card-cover {
    height: 180px;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Preset Gradients (when no cover photo is uploaded) */
.cover-gradient-1 {
    background: linear-gradient(135deg, #81b29a, #3d5a80);
}
.cover-gradient-2 {
    background: linear-gradient(135deg, #e07a5f, #f2cc8f);
}
.cover-gradient-3 {
    background: linear-gradient(135deg, #f4a261, #e76f51);
}
.cover-gradient-4 {
    background: linear-gradient(135deg, #a8a29e, #1c1917);
}

.album-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(12, 11, 10, 0.8) 100%);
    z-index: 1;
}

.album-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--text-primary);
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.album-card-details {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
    background: rgba(22, 20, 19, 0.4);
}

.album-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.album-card-desc {
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: auto;
}

.album-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.album-card-date {
    font-size: 0.75rem;
    color: var(--text-dark);
}

.album-card-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: var(--transition-smooth);
    z-index: 10;
}

.album-card-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Opret Album / Dashed Card */
.create-album-trigger {
    background: rgba(255, 255, 255, 0.01);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.create-album-trigger:hover {
    background: rgba(224, 122, 95, 0.03);
    border-color: rgba(224, 122, 95, 0.3);
}

.create-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.create-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.create-album-trigger:hover .create-icon-wrapper {
    background: var(--accent-terracotta);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(224, 122, 95, 0.25);
    transform: scale(1.05);
}

.create-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.create-subtitle {
    font-size: 0.85rem;
    color: var(--text-dark);
    max-width: 200px;
}


/* ==========================================================================
   Album Detail & Cover Banner
   ========================================================================== */
.album-detail-header-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
    min-height: 220px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 40px var(--card-shadow);
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.album-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 11, 10, 0.9) 20%, rgba(22, 20, 19, 0.4) 100%);
    z-index: 1;
}

.album-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.back-to-albums-btn {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.back-to-albums-btn:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.album-meta {
    max-width: 70%;
    text-align: left;
    margin-top: 1.5rem;
}

.album-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.album-description {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.album-date-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    background: rgba(242, 204, 143, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    border: 1px solid rgba(242, 204, 143, 0.2);
}

.album-actions {
    margin-bottom: 0;
}

.add-memory-btn {
    background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-rose));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(224, 122, 95, 0.2);
}

.add-memory-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.35);
}

/* Empty State */
.timeline-empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-dark);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.timeline-empty-state svg {
    color: rgba(255, 255, 255, 0.15);
}

.timeline-empty-state h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.25rem;
}

.timeline-empty-state p {
    font-size: 0.9rem;
    line-height: 1.5;
}


/* ==========================================================================
   Timeline UI
   ========================================================================== */
.timeline-wrapper {
    position: relative;
    padding: 1.5rem 0 3rem 0;
    margin-top: 1rem;
}

/* Timeline Vertical Line */
.timeline-stem {
    position: absolute;
    top: 0;
    left: 2rem; /* Stem is lined up with left side */
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-terracotta) 0%, rgba(255, 255, 255, 0.05) 90%, transparent 100%);
    z-index: 1;
}

/* Timeline Group (Month & Year) */
.timeline-group {
    position: relative;
    margin-bottom: 3.5rem;
    z-index: 2;
}

.timeline-group:last-child {
    margin-bottom: 0;
}

/* Group Header: Month and Year Banner */
.timeline-group-header {
    display: inline-flex;
    align-items: center;
    position: relative;
    left: 2rem; /* Offset to center circle node exactly on the stem */
    transform: translateX(-50%); /* Center the node */
    margin-bottom: 1.75rem;
    width: auto;
}

.timeline-group-header-node {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-terracotta);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 10px rgba(224, 122, 95, 0.6);
    z-index: 3;
}

.timeline-group-title {
    margin-left: 1.25rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(34, 30, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Timeline Item (Individual Memory Card) */
.timeline-item {
    position: relative;
    margin-left: 4.5rem; /* Margin to shift cards away from stem */
    margin-bottom: 2rem;
    text-align: left;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Mini indicator on the stem for each card */
.timeline-item-node {
    position: absolute;
    left: calc(-4.5rem + 2rem);
    top: 24px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-dark);
    border: 2px solid var(--bg-dark);
    z-index: 3;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-item-node {
    background: var(--accent-rose);
    box-shadow: 0 0 8px rgba(244, 162, 97, 0.6);
}

/* Timeline Glassmorphic Card */
.timeline-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px var(--card-shadow);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.timeline-card:hover {
    border-color: rgba(224, 122, 95, 0.2);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.timeline-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.timeline-item-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.timeline-item-date {
    font-size: 0.8rem;
    color: var(--text-dark);
}

.timeline-item-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.timeline-item-delete-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.timeline-item-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
}

/* Timeline Image Element & Responsive Grid (Multiple Photos) */
.timeline-item-photos-container {
    width: 100%;
    display: grid;
    gap: 0.75rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    margin-top: 0.5rem;
    align-items: start;
}

/* Grid styles based on number of items */
.photos-grid-1 {
    grid-template-columns: 1fr;
}

.photos-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.photos-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.photos-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.photos-grid-more {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.timeline-photo-wrapper {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: zoom-in;
    position: relative;
    width: 100%;
}

/* For single photo, display in its natural proportion without cropping */
.photos-grid-1 .timeline-photo-wrapper {
    max-height: 520px;
    background: transparent;
}

.timeline-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

/* Single image inherits natural width/height but capped height */
.photos-grid-1 .timeline-photo {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain; /* Shows full picture without any crop! */
    border-radius: var(--border-radius-md);
}

/* Multiple images are scaled proportionally width-wise so they stretch and show the full tall photo */
.photos-grid-2 .timeline-photo,
.photos-grid-3 .timeline-photo,
.photos-grid-4 .timeline-photo,
.photos-grid-more .timeline-photo {
    width: 100%;
    height: auto;
    object-fit: contain; /* Never crop, scale naturally */
}

.timeline-photo-wrapper:hover .timeline-photo {
    transform: scale(1.03);
}

/* Lightbox Modal */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 5, 5, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    z-index: 2010;
}

.lightbox-close-btn:hover {
    color: var(--accent-terracotta);
    transform: scale(1.1);
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.open .lightbox-image {
    transform: scale(1);
}

/* Upload Preview Grid for multiple photos in modal */
.photos-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.5rem;
    z-index: 3;
}

.preview-thumb-wrapper {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-thumb-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.85);
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 5;
}

.remove-thumb-btn:hover {
    background: rgb(239, 68, 68);
    transform: scale(1.1);
}


/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 11, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 1.5rem;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(28, 25, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
    padding: 2.25rem 2rem;
    width: 100%;
    max-width: 500px;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Modal Form Styles */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.form-input:focus {
    border-color: var(--accent-terracotta);
    background: rgba(0, 0, 0, 0.35);
}

.form-textarea {
    resize: none;
}

/* Photo Uploader / Selector */
.image-upload-wrapper {
    position: relative;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-md);
    background: rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-upload-wrapper:hover {
    border-color: rgba(224, 122, 95, 0.35);
    background: rgba(224, 122, 95, 0.01);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-dummy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
    color: var(--text-dark);
}

.upload-icon {
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.25);
    transition: var(--transition-smooth);
}

.image-upload-wrapper:hover .upload-icon {
    color: var(--accent-terracotta);
}

.file-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.file-info {
    font-size: 0.7rem;
    color: var(--text-dark);
}

.image-preview {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.remove-image-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition-smooth);
}

.remove-image-btn:hover {
    background: rgba(239, 68, 68, 1);
    transform: translateY(-1px);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.modal-btn {
    flex: 1;
    padding: 0.85rem;
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-terracotta), var(--accent-rose));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(224, 122, 95, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}


/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Tablet adjustments */
@media (max-width: 1024px) {
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

/* Mobile adjustments (under 768px) */
@media (max-width: 768px) {
    .minder-page-title {
        font-size: 1.85rem;
    }
    
    .album-detail-header-card {
        min-height: auto;
    }
    
    .album-header-content {
        padding: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .back-to-albums-btn {
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
    }
    
    .album-meta {
        max-width: 100%;
        margin-top: 0;
    }
    
    .album-title {
        font-size: 1.75rem;
    }
    
    .album-actions {
        width: 100%;
    }
    
    .add-memory-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Move timeline stem left on mobile */
    .timeline-stem {
        left: 1rem;
    }
    
    .timeline-group-header {
        left: 1rem;
    }
    
    .timeline-item {
        margin-left: 2.25rem;
    }
    
    .timeline-item-node {
        left: calc(-2.25rem + 1rem);
    }
    
    .timeline-card {
        padding: 1.25rem;
    }
    
    .modal-card {
        padding: 1.5rem;
    }
}
