/* Ana Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

/* Hareketli Emojiler */
.decoration {
    position: fixed;
    font-size: 1.6rem;
    z-index: 1;
    opacity: 0.7;
    animation: floatAround 12s ease-in-out infinite;
    pointer-events: none;
}

.decoration:nth-child(1) {
    top: 8%;
    left: 2%;
    animation-delay: 0s;
}

.decoration:nth-child(2) {
    top: 15%;
    right: 3%;
    animation-delay: 2s;
}

.decoration:nth-child(3) {
    bottom: 12%;
    left: 3%;
    animation-delay: 4s;
}

.decoration:nth-child(4) {
    bottom: 20%;
    right: 2%;
    animation-delay: 6s;
}

.decoration:nth-child(5) {
    top: 50%;
    right: 8%;
    animation-delay: 8s;
}

.decoration:nth-child(6) {
    bottom: 30%;
    right: 15%;
    animation-delay: 10s;
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(-3deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
        opacity: 0.9;
    }
}

/* Ana Container */
.container {
    width: 90%;
    max-width: 800px;
    height: 90vh;
    position: relative;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(255, 182, 193, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    z-index: 2;
    border: 1px solid rgba(255, 182, 193, 0.4);
}

/* Container köşe süslemeleri */
.container::before {
    content: "💕 ✨ 💖";
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.2rem;
    opacity: 0.6;
    z-index: 3;
}

.container::after {
    content: "🌸 💝 🌹";
    position: absolute;
    bottom: 15px;
    left: 20px;
    font-size: 1.2rem;
    opacity: 0.6;
    z-index: 3;
}

.slide {
    display: none;
    height: 100%;
    padding: 40px 40px 80px 40px;
    text-align: center;
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
}

.slide.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content {
    text-align: center;
    max-width: 100%;
}

/* Tipografi */
h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: 600;
}

p {
    color: #34495e;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.date {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(196, 69, 105, 0.3);
}

/* Mesaj Kutusu */
.message {
    background: rgba(255, 240, 245, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(255, 182, 193, 0.4);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.2);
}

.message p {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
}

/* Görsel Stili */
.slide-image {
    max-height: 300px;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 20px 0;
    object-fit: cover;
}

.image-container {
    margin: 20px 0;
}

/* Buton Stili */
.next-btn {
    background: linear-gradient(45deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(196, 69, 105, 0.3);
    margin-top: 30px;
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 69, 105, 0.4);
}

.next-btn:active {
    transform: translateY(0);
}

/* Slide Indicator */
.slide-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.dot {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff6b9d;
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 107, 157, 0.7);
}

/* Future Message Özel Stili */
.future-message {
    color: #e74c3c;
    font-weight: 600;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        width: 95%;
        height: 94vh;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
    }
    
    .slide {
        padding: 35px 18px 70px 18px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-top: 15px;
        margin-bottom: 20px;
    }
    
    .date {
        font-size: 1.1rem;
        margin-bottom: 20px;
        padding: 10px 20px;
    }
    
    p {
        font-size: 1rem;
    }
    
    .slide-image {
        max-height: 200px;
    }
    
    .next-btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin-bottom: 50px;
    }
    
    .slide-indicator {
        bottom: 15px;
    }
    
    /* Mobilde dekorasyonlar */
    .decoration {
        font-size: 1.4rem;
        opacity: 0.7;
    }
    
    .container::before {
        content: "💕 ✨";
        font-size: 1rem;
        top: 10px;
        right: 15px;
    }
    
    .container::after {
        content: "🌸 💝";
        font-size: 1rem;
        bottom: 10px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        margin-top: 8px;
        line-height: 1.1;
    }
    
    .slide {
        padding: 20px 12px 55px 12px;
    }
    
    .message {
        padding: 15px;
        margin: 15px 0;
        font-size: 0.95rem;
        background: rgba(255, 240, 245, 0.5);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 182, 193, 0.3);
    }
    
    .slide-image {
        max-height: 130px;
    }
    
    .date {
        font-size: 1rem;
        margin-bottom: 15px;
        padding: 8px 15px;
    }
    
    .next-btn {
        margin-bottom: 40px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .slide-indicator {
        bottom: 8px;
    }
    
    .container::before,
    .container::after {
        font-size: 0.9rem;
        opacity: 0.5;
    }
    
    .dot {
        height: 8px;
        width: 8px;
    }
    
    .slide-indicator {
        bottom: 10px;
    }
    
    .next-btn {
        margin-bottom: 45px;
        padding: 10px 25px;
    }
}

/* Redmi Note 8 ve benzer küçük telefonlar için özel optimizasyon */
@media (max-width: 400px) {
    body {
        padding: 5px;
    }
    
    .container {
        width: 98%;
        height: 92vh;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.25);
        backdrop-filter: blur(8px);
        margin: 10px auto;
    }
    
    .slide {
        padding: 12px 8px 50px 8px;
        overflow-y: auto;
        height: calc(100% - 20px);
    }
    
    .content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        text-align: center;
    }
    
    h1 {
        font-size: 1.3rem !important;
        margin: 8px 0 12px 0 !important;
        line-height: 1.2 !important;
        word-break: break-word;
        padding: 0 5px;
    }
    
    .date {
        font-size: 0.9rem !important;
        margin: 8px 0 !important;
        padding: 6px 12px !important;
    }
    
    p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin: 8px 0 !important;
        padding: 0 5px;
    }
    
    .message {
        padding: 12px !important;
        margin: 8px 0 !important;
        background: rgba(255, 255, 255, 0.4);
        flex: 1;
        overflow-y: auto;
    }
    
    .message p {
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
        margin: 5px 0 !important;
    }
    
    .slide-image {
        max-height: 120px !important;
        max-width: 90%;
        margin: 8px auto;
        object-fit: contain;
    }
    
    .next-btn {
        padding: 10px 18px !important;
        font-size: 0.9rem !important;
        margin: 15px 0 8px 0 !important;
        min-height: 40px;
        border-radius: 20px;
    }
    
    .slide-indicator {
        bottom: 5px !important;
        gap: 6px !important;
    }
    
    .dot {
        height: 8px !important;
        width: 8px !important;
    }
    
    .decoration {
        font-size: 1rem !important;
        opacity: 0.6 !important;
    }
    
    .container::before,
    .container::after {
        font-size: 0.8rem !important;
        opacity: 0.5 !important;
    }
    
    .container::before {
        top: 8px !important;
        right: 8px !important;
    }
    
    .container::after {
        bottom: 8px !important;
        left: 8px !important;
    }
    
    /* Özel slide düzenlemeleri */
    .slide#slide-0 .content {
        justify-content: center;
        gap: 20px;
    }
    
    .slide#slide-3 .message p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}
