/* LifeList Story Slider Widget Styles */

/* ============================================
   SKELETON LOADING STYLES
   ============================================ */

/* Skeleton loading animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.skeleton-loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: skeleton-shimmer 2s infinite linear;
}

/* Skeleton container */
.lifelist-story-slider-container.loading {
    pointer-events: none;
}

/* Skeleton Tabs */
.skeleton-tabs {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px 12px 0 0;
}

.skeleton-tab {
    width: 120px;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: skeleton-shimmer 2s infinite linear;
}

/* Skeleton Cards Container */
.skeleton-slider-wrapper {
    background: white;
    border-radius: 0 0 12px 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.skeleton-card-container {
    display: flex;
    gap: 20px;
    overflow: hidden;
}

/* Individual skeleton card */
.skeleton-card {
    flex: 0 0 calc(33.333% - 14px);
    aspect-ratio: 3/4;
    border-radius: 12px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: skeleton-shimmer 2s infinite linear;
    position: relative;
    overflow: hidden;
}

/* Skeleton card content elements */
.skeleton-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

.skeleton-card-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        #e9ecef 0px,
        #f8f9fa 40px,
        #e9ecef 80px
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 12px 12px 0 0;
}

.skeleton-card-title {
    height: 24px;
    width: 80%;
    border-radius: 4px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.9);
}

.skeleton-card-subtitle {
    height: 16px;
    width: 60%;
    border-radius: 4px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.85);
}

.skeleton-card-date {
    height: 16px;
    width: 40%;
    border-radius: 4px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.skeleton-card-location {
    height: 16px;
    width: 60%;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
}

/* Skeleton Streak Calculator */
.skeleton-streak {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.skeleton-streak-title {
    height: 28px;
    width: 70%;
    border-radius: 4px;
    margin-bottom: 16px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: skeleton-shimmer 2s infinite linear;
}

.skeleton-streak-number {
    height: 64px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: skeleton-shimmer 2s infinite linear;
}

.skeleton-streak-bar {
    height: 12px;
    width: 100%;
    border-radius: 6px;
    margin-bottom: 12px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: skeleton-shimmer 2s infinite linear;
}

.skeleton-streak-text {
    height: 16px;
    width: 80%;
    border-radius: 4px;
    background: linear-gradient(
        90deg,
        #f0f0f0 0px,
        #f8f8f8 40px,
        #f0f0f0 80px
    );
    background-size: 1000px 100%;
    animation: skeleton-shimmer 2s infinite linear;
}

/* Mobile skeleton adjustments */
@media (max-width: 768px) {
    .skeleton-card-container {
        flex-direction: column;
    }
    
    .skeleton-card {
        flex: 0 0 auto;
        width: 100%;
        max-height: 400px;
    }
    
    .skeleton-tabs {
        justify-content: space-between;
    }
    
    .skeleton-tab {
        flex: 1;
        max-width: 30%;
    }
}

/* ============================================
   END SKELETON LOADING STYLES
   ============================================ */

.lifelist-story-slider-container {
    max-width: 1200px;
    margin: 20px;
    padding: 0;
}

.story-main-section {
    display: flex;
    gap: 30px;
    margin: 20px;
    margin-bottom: 30px;
}

/* Slider Section (2/3 width) */
.story-slider-section {
    flex: 2;
    position: relative;
    max-width: 100%; /* Prevent overflow */
    min-width: 0; /* Allow flex shrinking */
}

.story-slider-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden; /* Contain children properly */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%; /* Explicit width */
}

.story-slides {
    position: relative;
    height: 456px; /* 400px for content + 56px for footer */
    overflow: hidden; /* Prevent content overflow */
    border-radius: 12px;
    width: 100%; /* Explicit width */
}

.story-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(50px);
    pointer-events: none; /* Prevent inactive slides from blocking interactions */
    overflow: hidden; /* Contain all child elements */
}

/* Ensure fallback slides fill width */
.story-slide[data-fallback="true"] {
    width: 100% !important;
}

.story-slide[data-fallback="true"] .slide-content {
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-slide.active {
    opacity: 1;
    transform: translateX(0); /* Reset transform for active slide */
    z-index: 10; /* Higher z-index for active slide */
    pointer-events: auto; /* Allow interactions on active slide */
}

/* Allow nav overlays to be interactive only on active slides */
.story-slide.active .slide-nav-overlay {
    pointer-events: auto;
}

.slide-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden; /* Prevent canvas and other children from overflowing */
}

/* Fallback content needs to be centered */
.slide-content.fallback-content {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Canvas elements must not exceed slide dimensions */
.slide-content canvas {
    max-width: 100%;
    max-height: 100%;
    display: block; /* Remove inline spacing */
}

/* Legacy slide-overlay for non-card slides (Here & Now) */
.slide-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    width: 100%;
    padding: 30px;
    color: white;
}

.slide-header {
    margin-bottom: 20px;
}

.experience-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
}

.experience-date {
    font-size: 16px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Stamp Count Subtitle */
.stamp-count-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.stamp-count-subtitle i {
    font-size: 16px;
    color: white; /* Same color as text */
}

/* Plans slide gets the same white color */
.plans-fallback .stamp-count-subtitle i,
.story-slide[data-slide="next-up"] .stamp-count-subtitle i {
    color: white; /* Same color as text */
}

.stamp-count-label {
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Same shadow as the subtitle container */
}

.stamp-count-numbers {
    font-weight: normal;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); /* Same shadow as the subtitle container */
}

/* Action Icons - TTD Banner inspired placement */
.slide-actions {
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-content:hover .slide-actions,
.slide-content.touch-active .slide-actions {
    opacity: 1;
}

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: none;
    z-index: 100; /* Ensure action icons are always above slide content */
}

.action-icon:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
}

.action-icon i {
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.action-icon.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.action-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF6B6B;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Fallback Slide Styles */
.fallback-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    height: 100%;
    box-sizing: border-box;
}

/* Fallback slides need to fill full width */
.fallback-slide {
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stamps fallback - brand gradient with warm accent */
.stamps-fallback {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
}

/* Plans fallback - vibrant cyan/turquoise gradient */
.plans-fallback {
    background: linear-gradient(135deg, #00f5ed 0%, #00d9d1 100%) !important;
}

.fallback-content {
    text-align: center;
    color: white !important;
    padding: 15px;
    max-width: 100% !important; /* Changed from 280px to fill width */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fallback-icon i {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 1;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.fallback-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: white !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.fallback-text {
    font-size: 13px;
    margin: 0 0 15px 0;
    color: white !important;
    opacity: 1;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    padding: 0 5px;
}

.fallback-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    padding: 8px 16px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fallback-cta:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* ============================================
   MATERIAL DESIGN 3 SECONDARY TABS
   Matches my-account widget style
   ============================================ */

.md3-secondary-tabs {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFFFFF;
    border-radius: 12px 12px 0 0;
    padding: 8px 16px 0;
    margin-bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    overflow-y: hidden; /* Prevent vertical overflow */
    scrollbar-width: none; /* Firefox */
    width: 100%; /* Explicit width to match parent */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Prevent overflow beyond parent */
}

.md3-secondary-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.md3-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 48px;
    border: none;
    background: transparent;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    color: #49454F; /* M3 on-surface-variant */
    white-space: nowrap;
    flex-shrink: 0;
}

.md3-tab i {
    font-size: 18px;
    transition: all 0.2s ease;
}

.md3-tab-label {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.1px;
}

.md3-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #E8DEF8; /* M3 secondary-container */
    color: #1D192B; /* M3 on-secondary-container */
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

/* Hover State */
.md3-tab:hover:not(.active) {
    background: rgba(103, 80, 164, 0.08); /* M3 primary with 8% opacity */
    color: #1C2E3D;
}

.md3-tab:hover:not(.active) i {
    transform: scale(1.1);
}

/* Active State */
.md3-tab.active {
    color: #1C2E3D; /* M3 primary */
    font-weight: 600;
    background: rgba(103, 80, 164, 0.12);
}

.md3-tab.active i {
    transform: scale(1.05);
    color: #1C2E3D;
}

.md3-tab.active .md3-tab-count {
    background: #1C2E3D;
    color: #FFFFFF;
}

/* Active Indicator (M3 style underline) */
.md3-tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #1C2E3D;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0;
}

.md3-tab.active ~ .md3-tab-indicator {
    opacity: 1;
}

/* Focus State (Accessibility) */
.md3-tab:focus-visible {
    outline: 2px solid #1C2E3D;
    outline-offset: 2px;
}

/* Pressed State */
.md3-tab:active {
    background: rgba(103, 80, 164, 0.16);
    transform: scale(0.98);
}

/* Disabled State */
.md3-tab:disabled {
    color: rgba(28, 27, 31, 0.38);
    cursor: not-allowed;
    pointer-events: none;
}

.md3-tab:disabled .md3-tab-count {
    background: rgba(28, 27, 31, 0.12);
    color: rgba(28, 27, 31, 0.38);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .md3-secondary-tabs {
        padding: 8px 20px 0; /* 20px left/right margin */
        gap: 6px;
        justify-content: space-between; /* Distribute tabs evenly */
        width: 100%;
        border-radius: 0; /* Full width on mobile */
        box-sizing: border-box;
    }
    
    .md3-tab {
        flex: 1; /* Equal width tabs */
        padding: 10px 8px;
        min-height: 48px;
        font-size: 13px;
        gap: 4px; /* Reduced gap for tighter spacing */
        flex-direction: row; /* Icon, text, count - horizontal layout */
        justify-content: center;
        align-items: center; /* Center all items vertically */
    }
    
    .md3-tab i {
        font-size: 18px; /* Slightly smaller icon */
        flex-shrink: 0; /* Prevent icon from shrinking */
    }
    
    .md3-tab-label {
        display: block; /* Show labels on mobile */
        font-size: 11px;
        line-height: 1.2;
        flex-shrink: 1; /* Allow label to shrink if needed */
        white-space: nowrap; /* Keep label on one line */
    }
    
    .md3-tab-count {
        position: relative; /* Changed from absolute to relative */
        top: auto; /* Reset positioning */
        right: auto; /* Reset positioning */
        margin-left: 4px; /* Space after label */
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
        flex-shrink: 0; /* Prevent count from shrinking */
    }
}

/* Extra small mobile (< 375px) */
@media (max-width: 374px) {
    .md3-secondary-tabs {
        padding: 6px 16px 0; /* Slightly smaller margins on very small screens */
    }
    
    .md3-tab {
        padding: 8px 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    .md3-tab i {
        font-size: 18px;
    }
    
    .md3-tab-label {
        font-size: 10px;
    }
}

/* Slider Navigation - Hidden (replaced by MD3 tabs) */
.story-slider-nav {
    display: none !important;
}

.story-nav-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.story-nav-btn.active {
    background: #0E1664;
    color: white;
    border-color: #0E1664;
}

.story-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Streak Calculator Section (1/3 width) */
.story-streak-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-calculator {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 250px;
}

.streak-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.streak-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.streak-count {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.streak-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    max-width: 150px;
    line-height: 1.3;
}

.streak-active .streak-count {
    color: #FF6B6B;
}

.streak-warning .streak-count {
    color: #0E1664;
}

.streak-grey .streak-count {
    color: #999;
}

/* Companion Grid Section */
.story-grid-section {
    margin-top: 40px;
}

.grid-content-wrapper {
    position: relative;
}

.grid-past-content,
.grid-future-content {
    transition: opacity 0.3s ease;
}

.lifelist-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.grid-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.grid-item-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.grid-item-date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.grid-item-title {
    padding: 15px;
    font-weight: 600;
    color: #333;
}

.grid-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-style: italic;
}

/* Modal Styles */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100010; /* Higher than fullscreen map modal (100003-100006) */
    justify-content: center;
    align-items: center;
}

.story-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 30px;
}

/* Media Modal Specific */
.media-upload-section {
    margin-bottom: 30px;
    text-align: center;
}

#media-upload {
    display: none;
}

.upload-btn {
    display: inline-block;
    background: #0E1664;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.upload-btn:hover {
    background: #0A1354;
}

.upload-btn i {
    margin-right: 10px;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

/* Rating Modal Specific */
.star-rating {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.star-rating i {
    font-size: 30px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating i:hover,
.star-rating i.active {
    color: #0E1664;
}

#review-text {
    width: 100%;
    height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 20px;
}

.submit-rating-btn {
    background: #0E1664;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.submit-rating-btn:hover {
    background: #0A1354;
}

/* Friends Modal Specific */
.friends-search {
    margin-bottom: 20px;
}

#friends-search {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.friends-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
}

.tagged-friends h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
}

.tagged-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Logged Out State */
.logged-out-content {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.logged-out-icon i {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.logged-out-content h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.logged-out-content p {
    font-size: 16px;
    margin: 0 0 25px 0;
    opacity: 0.9;
}

.login-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.login-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-main-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .story-slider-section,
    .story-streak-section {
        flex: none;
        width: 100%;
    }
    
    .story-slides {
        height: 300px;
    }
    
    .slide-overlay {
        padding: 20px;
    }
    
    .experience-title {
        font-size: 20px;
    }
    
    .action-icon {
        width: 38px;
        height: 38px;
    }
    
    .action-icon i {
        font-size: 20px;
        color: white;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    }
    
    .streak-calculator {
        max-width: none;
        padding: 20px;
    }
    
    .streak-count {
        font-size: 36px;
    }
    
    .lifelist-story-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    /* Mobile masonry-style grid */
    .lifelist-story-grid.mobile-masonry {
        display: block;
        columns: 2;
        column-gap: 15px;
    }
    
    .lifelist-story-grid.mobile-masonry .grid-item {
        display: inline-block;
        width: 100%;
        margin-bottom: 15px;
        break-inside: avoid;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
        max-height: calc(100vh - 40px) !important; /* Full screen height minus margins */
        min-height: calc(100vh - 40px) !important; /* Extend to bottom */
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .lifelist-story-slider-container {
        padding: 15px;
    }
    
    /* Center MD3 tabs on mobile */
    .md3-secondary-tabs {
        justify-content: center;
        padding: 8px 8px 0;
    }
    
    .story-slides {
        height: 250px;
    }
    
    .slide-actions {
        gap: 10px;
    }
    
    .action-icon {
        width: 34px;
        height: 34px;
    }
    
    .action-icon i {
        font-size: 18px;
        color: white;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
    }
    
    .story-nav-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .streak-content {
        gap: 15px;
    }
    
    .streak-image img {
        width: 50px;
        height: 50px;
    }
    
    .streak-count {
        font-size: 32px;
    }
    
    .lifelist-story-grid.mobile-masonry {
        columns: 1;
    }
    
    /* Force modal to extend to bottom on small mobile screens */
    .modal-content {
        margin: 10px !important;
        max-height: calc(100vh - 20px) !important;
        min-height: calc(100vh - 20px) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Remove margin for edit stamp modal */
    #editStampModal .modal-content {
        margin: 0 !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        border-radius: 0 !important;
        padding-top: 80px !important;
        background: transparent !important;
    }
    
    #editStampModal .modal-form-content {
        background: white !important;
    }
    
    .modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
    }
}

/* Touch device specific styles */
@media (hover: none) and (pointer: coarse) {
    .slide-actions {
        opacity: 1; /* Always show on touch devices */
    }
    
    .action-icon:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.8);
    }
}

/* BuddyPress Friends Integration Styles */
.friends-search {
    position: relative;
    margin-bottom: 20px;
}

.search-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #fff;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.tag-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.tag-status.pending {
    background: #fff3cd;
    color: #856404;
}

.tag-status.accepted {
    background: #d4edda;
    color: #155724;
}

.tag-status.declined {
    background: #f8d7da;
    color: #721c24;
}

.tag-friend-btn,
.untag-friend-btn {
    padding: 6px 12px;
    border: 1px solid #0E1664;
    background: white;
    color: #0E1664;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-friend-btn:hover {
    background: #0E1664;
    color: white;
}

.untag-friend-btn.tagged {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.untag-friend-btn.tagged:hover {
    background: #c82333;
    border-color: #bd2130;
}

.tag-options {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tag-options label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}

.tag-options input[type="radio"] {
    margin-right: 8px;
}

.tag-notes {
    margin: 15px 0;
}

.tag-notes textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}

.friends-empty,
.friends-error {
    text-align: center;
    padding: 30px;
    color: #666;
}

.friends-error {
    color: #dc3545;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-secondary,
.btn-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #0E1664;
    color: white;
}

.btn-primary:hover {
    background: #0a1352;
}

/* User Gamification Styles */
.user-gamification {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.achievements-title {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 600;
}

.achievements-list {
    max-height: 120px;
    overflow-y: auto;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.achievement-item:last-child {
    border-bottom: none;
}

.achievement-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #0E1664;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-info {
    flex: 1;
    min-width: 0;
}

.achievement-name {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-date {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 1px;
}

/* Tagged Experience Indicators - Enhanced Collaborative Features */
.your-lifelist-story-slider .tagged-experience {
    position: relative;
}

.your-lifelist-story-slider .tagged-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.your-lifelist-story-slider .tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.your-lifelist-story-slider .tag-badge.joined {
    background: rgba(46, 125, 50, 0.9);
}

.your-lifelist-story-slider .tag-badge.invited {
    background: rgba(33, 150, 243, 0.9);
}

.your-lifelist-story-slider .tag-badge.shared {
    background: rgba(255, 152, 0, 0.9);
}

/* Collaborative Rating Display */
.your-lifelist-story-slider .collaborative-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
}

.your-lifelist-story-slider .collaborative-rating .rating-value {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #0E1664;
    font-weight: 600;
}

.your-lifelist-story-slider .collaborative-rating .rating-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

/* Action Icons Enhancements for Tagged Bookings */
.your-lifelist-story-slider .slide-actions[data-is-tagged="1"] .action-icon {
    position: relative;
}

.your-lifelist-story-slider .view-only-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Rating Icon for Collaborative Ratings */
.your-lifelist-story-slider .rating-icon i.fa-star-half-alt {
    background: linear-gradient(90deg, #0E1664 50%, transparent 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Permission-based styling */
.your-lifelist-story-slider .action-icon.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.your-lifelist-story-slider .action-icon.disabled i {
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.your-lifelist-story-slider .action-icon:not(.disabled):hover {
    transform: scale(1.15);
    transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.1);
}

.your-lifelist-story-slider .action-icon:not(.disabled):hover i {
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7), 0 2px 5px rgba(0, 0, 0, 0.9);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}

/* Tagged experience overlay adjustments */
.your-lifelist-story-slider .tagged-experience .slide-overlay {
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.8) 100%
    );
}

.your-lifelist-story-slider .own-experience .slide-overlay {
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Experience type border indicators */
.your-lifelist-story-slider .tagged-experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2196F3, #4CAF50, #FF9800);
    z-index: 5;
}

/* Mobile responsiveness for tagged indicators */
@media (max-width: 768px) {
    .your-lifelist-story-slider .tag-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .your-lifelist-story-slider .collaborative-rating {
        font-size: 11px;
    }
    
    .your-lifelist-story-slider .view-only-indicator {
        width: 10px;
        height: 10px;
        font-size: 7px;
    }
}

/* Tooltip styles for permission indicators */
.your-lifelist-story-slider .action-icon[title] {
    position: relative;
}

.your-lifelist-story-slider .action-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

.your-lifelist-story-slider .action-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

/* Here & Now Slide Styles */
.here-and-now-slide {
    background: linear-gradient(135deg, #0E1664 0%, #667eea 50%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* TikTok/Instagram style navigation overlay */
.slide-nav-overlay {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 30;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: auto;
    background: transparent;
    border: none;
}

.slide-nav-overlay:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-nav-overlay:active {
    opacity: 0.7;
    transform: scale(1.05);
}

.slide-nav-overlay.left {
    left: 20px;
}

.slide-nav-overlay.right {
    right: 20px;
}

.slide-nav-overlay i {
    margin-right: 8px;
    font-size: 14px;
}

/* Hide old circular buttons */
.slide-nav-btn {
    display: none !important;
}

.here-and-now-slide .slide-overlay {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.here-and-now-slide .slide-hero {
    margin-bottom: 40px;
}

.here-and-now-slide .hero-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.here-and-now-slide h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.here-and-now-slide .slide-content-inner {
    width: 100%;
    max-width: 300px;
}

.here-and-now-slide .cta-main {
    background: #0E1664;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    width: fit-content;
}

.here-and-now-slide .cta-main:hover {
    background: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.here-and-now-slide .cta-main i {
    font-size: 20px;
}

/* Hide traditional navigation on mobile when using integrated nav */
@media (max-width: 768px) {
    /* 20px margin on mobile */
    .lifelist-story-slider-container {
        padding: 0;
        margin: 20px;
    }
    
    .story-main-section {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    
    .story-slider-section {
        width: 100%;
        flex: none;
        margin: 0;
        padding: 0;
    }
    
    .story-slider-wrapper {
        border-radius: 0; /* Remove border radius on mobile */
        margin: 0;
    }
    
    .story-slider-nav {
        display: none;
    }
    
    .here-and-now-slide h2 {
        font-size: 22px;
        margin: 0;
    }
    
    .here-and-now-slide .hero-icon {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .here-and-now-slide .slide-hero {
        margin-bottom: 25px;
    }
    
    .here-and-now-slide .slide-overlay {
        margin: 15px;
        width: calc(100% - 30px);
        height: calc(100% - 30px);
        padding: 30px 15px;
    }
    
    .here-and-now-slide .cta-main {
        font-size: 15px;
        padding: 12px 24px;
        gap: 8px;
    }
    
    .here-and-now-slide .cta-main i {
        font-size: 16px;
    }
    
    /* Mobile-optimized overlay navigation */
    .slide-nav-overlay {
        bottom: 15px;
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .slide-nav-overlay.left {
        left: 15px;
    }
    
    .slide-nav-overlay.right {
        right: 15px;
    }
    
    .slide-nav-overlay i {
        font-size: 12px;
        margin-right: 6px;
    }
    
    /* Mobile fallback content adjustments */
    .fallback-slide {
        padding: 10px;
    }
    
    .fallback-content {
        padding: 10px;
        max-width: 260px;
    }
    
    .fallback-icon i {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .fallback-title {
        font-size: 16px;
        margin-bottom: 8px;
        line-height: 1.1;
    }
    
    .fallback-text {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.2;
        padding: 0 2px;
    }
    
    .fallback-cta {
        font-size: 11px;
        padding: 6px 12px;
        max-width: 150px;
    }
}

.here-and-now-slide .cta-main i {
    font-size: 20px;
}

/* Update Navigation for Three Buttons */
.story-slider-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.story-nav-btn {
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.story-nav-btn i {
    font-size: 16px;
}

.story-nav-btn.active {
    background: #0E1664;
    color: white;
    border-color: #0E1664;
}

.story-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Updates */
@media (max-width: 768px) {
    .here-and-now-slide h2 {
        font-size: 24px;
    }
    
    .here-and-now-slide .hero-icon {
        font-size: 36px;
    }
    
    .here-and-now-slide .navigation-hints {
        flex-direction: column;
        gap: 15px;
    }
    
    .here-and-now-slide .nav-hint {
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .here-and-now-slide .cta-main {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .story-nav-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .story-nav-btn i {
        font-size: 14px;
    }
}

/* Gallery Modal Styles */
.gallery-modal {
    z-index: 100010; /* Higher than fullscreen map modal (100003-100006) */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal .modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex; /* Use flexbox for proper child sizing */
    flex-direction: column; /* Stack header and body vertically */
}

.gallery-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.gallery-modal .modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.gallery-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal .modal-body {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    /* Use flexbox to fill remaining space after header */
    flex: 1;
    min-height: 0; /* Allow flexbox shrinking */
    display: flex;
    flex-direction: column;
}

.modal-grid-container {
    position: relative;
    /* Fill the modal-body completely */
    width: 100%;
    height: 100%; /* Take full height of parent */
    min-height: min-content; /* Grow to fit content */
}

/* Story Cards Modal Grid */
.story-cards-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
    min-height: 100%; /* Ensure grid fills container */
}

/* Modal Slide Content - use same styling as regular slide content */
.modal-slide-content {
    position: relative;
    width: 100%;
    height: 456px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modal-slide-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Modal uses the same story-card structure */
.modal-slide-content.story-card {
    height: 456px;
}

.modal-slide-content .story-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.modal-slide-content .slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: white;
}

.modal-slide-content .slide-info {
    width: 100%;
    color: white;
}

.modal-slide-content .experience-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-slide-content .experience-date {
    font-size: 16px;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    color: white;
    margin-bottom: 15px;
    display: inline-block;
}

.modal-slide-content .slide-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 10px;
}

.modal-slide-content .action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: none;
    color: white;
    z-index: 100;
}

.modal-slide-content .action-icon:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
}

.modal-slide-content .action-icon i {
    font-size: 24px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.modal-slide-content .action-icon .action-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF6B6B;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Loading States */
.modal-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    display: none;
}

.modal-loading.active {
    display: block;
}

.modal-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.modal-load-more {
    text-align: center;
    padding: 30px;
}

.load-more-btn {
    background: linear-gradient(135deg, #0E1664 0%, #1976d2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(14, 22, 100, 0.3);
}

.load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Empty State */
.lifelist-modal-empty {
    text-align: center;
    padding: 60px 30px;
    color: #666;
}

.lifelist-modal-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
    display: block;
}

.lifelist-modal-empty h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.lifelist-modal-empty p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Your Day Modal Specific Styles */
.your-day-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
}

.your-day-empty-state {
    text-align: center;
    padding: 60px 30px;
    color: #666;
}

.your-day-empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #ddd;
    display: block;
}

.your-day-empty-state h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.your-day-empty-state p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.your-day-cta {
    text-align: center;
    padding-bottom: 100px;
}

.your-day-cta .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #0E1664 0%, #1976d2 100%);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 22, 100, 0.2);
}

.your-day-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 22, 100, 0.3);
}

.your-day-cta .cta-button i {
    margin-right: 8px;
}

/* Clickable Stamp/Plan Count */
.stamp-count-numbers.clickable {
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
}

.stamp-count-numbers.clickable:hover {
    color: #FFD700;
    text-decoration-color: #FFD700;
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .gallery-modal .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .story-cards-modal-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .your-day-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
    }
    
    .gallery-modal .modal-header {
        padding: 15px 20px;
    }
    
    .gallery-modal .modal-header h3 {
        font-size: 20px;
    }
    
    .modal-slide-content,
    .modal-slide-content.story-card {
        width: 100%;
        height: auto !important;
        aspect-ratio: 1 / 1;
        min-height: unset;
    }
    
    .modal-slide-content .experience-title {
        font-size: 16px;
    }
    
    .modal-slide-content .slide-overlay {
        padding: 15px;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: 17px; /* Compensate for scrollbar */
}

/* Smooth scrolling for modal content */
.gallery-modal .modal-body {
    scroll-behavior: smooth;
}

/* Action icon hover effects in modal */
.modal-card .action-icon:hover {
    background: #0E1664;
    color: white;
    transform: scale(1.1);
}

.modal-card .action-icon.has-rating {
    background: #4CAF50;
    color: white;
}

.modal-card .action-icon.has-rating:hover {
    background: #45a049;
}

/* Slide Navigation Overlay Styles */
.slide-nav-overlay {
    position: absolute;
    bottom: 20px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 20;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.slide-nav-overlay.left {
    left: 20px;
}

.slide-nav-overlay.right {
    right: 20px;
}

.slide-nav-overlay i {
    font-size: 16px;
}

.slide-nav-overlay:hover {
    transform: scale(1.05);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Media Gallery Styles */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: all 0.3s ease;
}

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.media-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.media-preview {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

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

.media-type-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #666;
}

.file-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.file-name {
    font-size: 12px;
    text-align: center;
    padding: 0 10px;
    word-break: break-word;
}

.media-info {
    padding: 10px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.media-author {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.media-date {
    font-size: 11px;
    color: #999;
}

.media-actions {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-actions {
    opacity: 1;
}

.media-actions button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.media-actions button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.delete-media {
    background: rgba(220, 53, 69, 0.8) !important;
}

.delete-media:hover {
    background: rgba(220, 53, 69, 1) !important;
}

.drag-handle {
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.no-media {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

/* Media Lightbox */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.media-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Media Upload States */
.media-upload-section.uploading {
    opacity: 0.7;
    pointer-events: none;
}

.media-upload-section.uploading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top-color: #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Media Grid */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .media-preview {
        height: 120px;
    }
    
    .media-actions {
        opacity: 1; /* Always show on mobile */
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* ===================================================================
   NEW STORY CARD DESIGN (Based on Design Sketch)
   =================================================================== */

/* Story Card Container */
.story-card {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #000; /* Fallback background */
}

.story-card-overlay {
    background-image: inherit; /* Will be set inline */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    padding-bottom: 64px; /* Make room for footer button */
    border-radius: inherit; /* Inherit from parent */
    /* Gradient overlay on top of background */
    background-blend-mode: normal;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through overlay */
}

.story-card-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.1) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 0;
}

.story-card-overlay > * {
    position: relative;
    z-index: 1;
    pointer-events: auto; /* Re-enable clicks for content inside overlay */
}

/* Card Header: Icon + Date (Top Left) */
.story-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.story-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.story-card-icon i {
    font-size: 24px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.story-card-date {
    font-size: 18px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    line-height: 1.2; /* Tight line height for two-line layout */
    display: flex;
    flex-direction: column;
    gap: 2px; /* Tight gap between lines */
    justify-content: center;
    min-height: 48px; /* Maintain alignment with icon */
}

.story-card-date .days-ago,
.story-card-date .date-primary {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.story-card-date .actual-date,
.story-card-date .date-secondary {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.9;
}

/* Card Content: Title + Venue (Center) */
.story-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0 80px 0 0; /* More space for larger action icons on right */
}

.story-card-title-box {
    padding: 0;
}

.story-card-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.story-card-title-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.story-card-title-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.story-card-venue {
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.story-card-venue-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.story-card-venue-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Action Icons Column (Right Side) - TikTok/Instagram Reel Style */
.story-card-actions {
    position: absolute;
    bottom: 30px;
    right: 12px;
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
    z-index: 20;
}

.story-action-icon {
    width: 56px;
    height: 56px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding: 0;
}

.story-action-icon i {
    font-size: 32px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.story-action-icon:hover:not(.disabled) {
    transform: scale(1.15);
}

.story-action-icon.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.story-action-icon .action-badge {
    position: absolute;
    top: -6px;
    right: 2px;
    background: #FF0050;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Card Footer: See All Button */
.story-card-footer {
    background: transparent !important;
    border-radius: 0 0 12px 12px;
    margin: 0;
    padding: 8px;
    backdrop-filter: none;
    height: 56px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: auto;
}

.see-all-btn {
    width: auto;
    height: auto;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.see-all-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.see-all-btn i {
    font-size: 18px;
    color: white;
}

/* Mobile Responsive for Story Cards */
@media (max-width: 768px) {
    .story-card-overlay {
        padding: 16px;
    }
    
    .story-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .story-card-icon i {
        font-size: 20px;
    }
    
    .story-card-date {
        font-size: 16px;
        line-height: 1.2; /* Tight line height for two-line layout */
        min-height: 40px; /* Match icon height on mobile */
    }
    
    .story-card-date .days-ago {
        font-size: 16px;
    }
    
    .story-card-date .actual-date {
        font-size: 12px;
    }
    
    .story-card-content {
        padding: 0 70px 0 0; /* More space for larger icons on mobile */
    }
    
    .story-card-title-box {
        padding: 0;
    }
    
    .story-card-title {
        font-size: 18px;
    }
    
    .story-card-venue {
        font-size: 14px;
    }
    
    .story-card-actions {
        top: 0;
        bottom: 0;
        right: 8px;
        gap: 0;
        flex-direction: column;
        justify-content: space-evenly;
    }
    
    .story-action-icon {
        width: 48px;
        height: 48px;
    }
    
    .story-action-icon i {
        font-size: 28px;
    }
    
    .story-card-footer {
        background: transparent !important;
    }
    
    .see-all-btn {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Chat Coming Soon Modal Styling */
.chat-coming-soon {
    text-align: center;
    padding: 40px 20px;
}

.chat-coming-soon h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1C2E3D;
    margin: 0 0 12px;
}

.chat-coming-soon p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Spotlight Modal Specific Styles */
#spotlight-modal .story-card-actions {
    top: 50px; /* Add 50px margin to top */
}

/* Note: Spotlight close button styles moved to lifelist-spotlight-modal.css to avoid duplication */

/* Reusable star rating component - matching edit-stamp-modal */
#spotlight-modal .lifelist-star-rating,
.lifelist-star-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    padding: 15px 0;
    max-width: 300px;
}

#spotlight-modal .lifelist-star,
.lifelist-star {
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: transparent;
}

#spotlight-modal .lifelist-star:hover,
.lifelist-star:hover {
    background-color: rgba(28, 46, 61, 0.05);
    transform: scale(1.05);
}

#spotlight-modal .lifelist-star i,
.lifelist-star i {
    font-size: 30px;
    color: #1c2e3d !important; /* Dark color, not yellow */
    transition: all 0.2s ease;
    pointer-events: none;
}

#spotlight-modal .lifelist-star.active i,
.lifelist-star.active i {
    font-weight: 900;
}

/* Material Design 3 Tab Bar (Spotlight Modal Only) */
.spotlight-tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    z-index: 25;
}

.spotlight-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 100px; /* Full pill shape */
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 64px;
    outline: none;
}

.spotlight-tab i {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-tab .tab-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tab hover state */
.spotlight-tab:hover:not(.disabled):not(.active) {
    background: rgba(255, 255, 255, 0.08);
}

.spotlight-tab:hover:not(.disabled) i,
.spotlight-tab:hover:not(.disabled) .tab-label {
    color: rgba(255, 255, 255, 1);
}

/* Tab active state - Material Design 3 Secondary Container */
.spotlight-tab.active {
    background: #E8DEF8; /* MD3 Secondary Container */
}

.spotlight-tab.active i {
    color: #1D192B; /* MD3 On Secondary Container */
}

.spotlight-tab.active .tab-label {
    color: #1D192B; /* MD3 On Secondary Container */
    font-weight: 600;
}

/* Tab disabled state */
.spotlight-tab.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Tab badge */
.spotlight-tab .tab-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: #FF0050;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Info Section Styles */
#spotlight-info .info-details {
    padding: 20px;
}

#spotlight-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#spotlight-info .info-item:last-child {
    border-bottom: none;
}

#spotlight-info .info-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    min-width: 140px;
    margin: 0;
}

#spotlight-info .info-item label i {
    color: #6750A4; /* MD3 Primary */
    font-size: 16px;
}

#spotlight-info .info-item .info-value {
    flex: 1;
    color: #666;
    line-height: 1.5;
}

#spotlight-info .info-item.description {
    flex-direction: column;
    align-items: stretch;
}

#spotlight-info .info-item.description .info-value {
    margin-top: 8px;
}

/* Description wrapper and expand functionality */
#spotlight-info .description-wrapper {
    position: relative;
}

#spotlight-info .description-content {
    line-height: 1.6;
    transition: all 0.3s ease;
}

#spotlight-info .description-content.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#spotlight-info .description-content.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.description-expand-btn {
    background: transparent;
    border: none;
    color: #4a9eff;
    padding: 8px 0;
    margin-top: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.description-expand-btn:hover {
    color: #66b3ff;
}

.description-expand-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.description-expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Font Awesome Camera Icon - Using Solid */
/* All camera icons now use fa-solid fa-camera for consistency */

/* Barcode Display in Info Section */
/* Barcode Display in Info Section */
.info-item.barcode-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: none; /* Hidden by default */
}

.info-item.barcode-section[style*="display: block"],
.info-item.barcode-section[style*="display: flex"] {
    display: block !important; /* Ensure visibility when shown via JS */
}

.info-item.barcode-section label {
    display: block;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

.barcode-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-height: 100px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    max-width: 350px;
    margin: 0 auto;
}

/* WooCommerce Order Barcodes plugin container */
.barcode-display .woocommerce-order-barcodes-container {
    display: block !important;
    width: 100% !important;
    background-color: white !important;
}

.barcode-display .woocommerce-order-barcodes-container > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: white !important;
}

/* Force all child divs to be visible */
.barcode-display .woocommerce-order-barcodes-container div {
    background-color: white !important;
}

.barcode-display img {
    max-width: 100%;
    width: auto !important;
    height: auto;
}

.barcode-display svg {
    max-width: 100%;
    width: auto !important;
    height: auto;
}


/* Description expand/collapse functionality */
.description-wrapper {
    position: relative;
}

.description-text.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
}

.description-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.description-expand-btn {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.description-expand-btn:hover {
    color: #6d28d9;
}

.description-expand-btn i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

/* ============================================
   FALLBACK CONTENT STYLES (Empty Stamps/Plans)
   ============================================ */

/* Fallback content container - centered layout */
.fallback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* Background gradients based on slide type */
.story-slide[data-slide="last-stamp"] .fallback-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.story-slide[data-slide="next-up"] .fallback-content {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

/* Icon styling */
.fallback-icon {
    margin-bottom: 24px;
}

.fallback-icon i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.3s ease;
}

/* Different icon color for light blue gradient */
.story-slide[data-slide="next-up"] .fallback-icon i {
    color: #667eea;
}

.fallback-icon:hover i {
    transform: scale(1.1);
}

/* Title styling */
.fallback-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

/* Different title color for light blue gradient */
.story-slide[data-slide="next-up"] .fallback-title {
    color: #1a202c;
}

/* Text styling */
.fallback-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 400px;
    margin: 0 auto;
}

/* Different text color for light blue gradient */
.story-slide[data-slide="next-up"] .fallback-text {
    color: #4a5568;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fallback-content {
        padding: 30px 20px;
    }
    
    .fallback-icon i {
        font-size: 48px;
    }
    
    .fallback-title {
        font-size: 20px;
    }
    
    .fallback-text {
        font-size: 14px;
    }
}

/* ============================================
   END FALLBACK CONTENT STYLES
   ============================================ */
