/* 1. Reset și fundal general */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 2. Containerul tip ecran de telefon */
.story-container {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    max-height: 750px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* 3. Bara de progres de sus */
.progress-container {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #ffffff;
    transition: width 0.3s ease;
}

/* 4. Slide-urile și animația */
.slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 60px 30px 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.slide.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. Culorile fiecărui slide (vibe Spotify Wrapped) */
.slide-1 {
    background: linear-gradient(135deg, #1db954, #191414);
}
.slide-2 {
    background: linear-gradient(135deg, #ff007f, #590d82);
}
.slide-3 {
    background: linear-gradient(135deg, #ff6b00, #d40055);
}
.slide-4 {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
}
.slide-5 {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
}

/* 6. Tipografie, listă și butoane */
.subtitle {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 15px;
}

h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 25px;
}

p {
    font-size: 1.1rem;
    line-height: 1.5;
    max-width: 300px;
}

.top-list {
    list-style: none;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.top-list li {
    background: rgba(0, 0, 0, 0.25);
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-list span {
    font-weight: 900;
    color: #1db954;
}

.note {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.9;
    margin-top: 10px;
}

/* 1. Reset și fundal general */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Space Mono", monospace;
    background-color: #050505;
    color: #e5e5e5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 2. Containerul tip ecran de telefon cu glow roșu */
.story-container {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    max-height: 750px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #150101;
    box-shadow: 0 0 35px rgba(139, 0, 0, 0.45);
}

/* 3. Bara de progres de sus */
.progress-container {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: #dc143c; /* roșu crimson */
    box-shadow: 0 0 8px #dc143c;
    transition: width 0.3s ease;
}

/* 4. Slide-urile și animația */
.slide {
    display: none;
    width: 100%;
    height: 100%;
    padding: 60px 30px 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.slide.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-1 {
    background: radial-gradient(circle at top, #4a0010, #09090b 75%);
}
.slide-2 {
    background: radial-gradient(circle at bottom, #2e0249, #09090b 75%);
}
.slide-3 {
    background: linear-gradient(160deg, #1a1a1d, #3b0000 90%);
}
.slide-4 {
    background: linear-gradient(160deg, #0d0d12, #240046 90%);
}
.slide-5 {
    background: radial-gradient(circle at center, #660708, #0b090a 80%);
}

/* 6. Tipografie gotică, listă și butoane */
.subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #dc143c;
    margin-bottom: 12px;
}

h1 {
    font-family: "Pirata One", system-ui;
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(220, 20, 60, 0.6);
}

h2 {
    font-family: "Pirata One", system-ui;
    font-size: 2.6rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 25px;
    color: #ffffff;
}

p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
    color: #cfcfcf;
}

.top-list {
    list-style: none;
    width: 100%;
    text-align: left;
    margin-bottom: 20px;
}

.top-list li {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(220, 20, 60, 0.35);
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-list span {
    font-weight: 700;
    color: #dc143c;
}

.note {
    font-size: 0.85rem;
    font-style: italic;
    color: #e5e5e5;
    margin-top: 10px;
}

button {
    margin-top: 30px;
    padding: 12px 34px;
    border: 1px solid #dc143c;
    border-radius: 4px;
    background-color: rgba(220, 20, 60, 0.15);
    color: #ffffff;
    font-family: "Space Mono", monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

button:hover {
    background-color: #dc143c;
    box-shadow: 0 0 18px rgba(220, 20, 60, 0.8);
    transform: scale(1.04);
}

/* Poza de pe primul și ultimul slide */
.single-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #dc143c;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.45);
    margin-bottom: 18px;
}

/* Slide-ul cu poze interactive */
.slide-photos {
    background: radial-gradient(circle at top, #3b0014, #09090b 80%);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 15px;
}

.photo-grid img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(220, 20, 60, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.photo-grid img:hover,
.photo-grid img.selected {
    transform: scale(1.04);
    border-color: #dc143c;
    box-shadow: 0 0 15px rgba(220, 20, 60, 0.7);
}

.photo-caption {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(220, 20, 60, 0.45);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.85rem;
    min-height: 60px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}