/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Karşılama Ekranı */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(233, 30, 99, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.welcome-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.welcome-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 500px;
}

.welcome-content h2 {
    color: #e91e63;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.welcome-content p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: #333;
}

.start-button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.start-button i {
    margin-right: 10px;
}

.start-button:hover {
    background-color: #c2185b;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
    position: relative;
    overflow-x: hidden;
}

/* Etkileşimli Arka Plan */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #fff8f9 0%, #fde8ef 100%);
}

.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-hearts::before,
.floating-hearts::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(233, 30, 99, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 30%, rgba(233, 30, 99, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 30% 70%, rgba(233, 30, 99, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 70% 80%, rgba(233, 30, 99, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(233, 30, 99, 0.03) 0%, transparent 70%);
    animation: floating 20s linear infinite;
    pointer-events: none;
}

.floating-hearts::after {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 48.35l-1.45-1.32C19.4 38.36 12 32.28 12 24.5 12 18.42 16.42 14 22.5 14c3.74 0 7.41 2.81 8.5 5.09 1.09-2.28 4.76-5.09 8.5-5.09 6.08 0 10.5 4.42 10.5 10.5 0 7.78-7.4 13.86-17.55 22.54L30 48.35z' fill='%23e91e63' fill-opacity='0.03'/%3E%3C/svg%3E");
    animation: floating 15s linear infinite reverse;
}

@keyframes floating {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Hareketli Kalpler */
#animated-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.animated-heart {
    position: absolute;
    background-color: #e91e63;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);
    pointer-events: none;
    animation: float-up 8s ease-in-out forwards;
}

.animated-heart::before,
.animated-heart::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: inherit;
    border-radius: 50%;
}

.animated-heart::before {
    top: -50%;
    left: 0;
}

.animated-heart::after {
    top: 0;
    left: -50%;
}

@keyframes float-up {
    0% {
        transform: rotate(45deg) translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: rotate(45deg) translateY(-100vh) scale(0.5);
        opacity: 0;
    }
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Card Styles */
.card-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    margin: 40px 0;
}

.card {
    width: 100%;
    max-width: 1200px;
    height: 550px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.8s ease;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    will-change: transform;
}

.card:hover:not(.flipped) {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.card-front {
    background: url('https://images.unsplash.com/photo-1513151233558-d860c5398176?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.7), rgba(156, 39, 176, 0.7));
}

.front-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.card-back {
    transform: rotateY(180deg);
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto;
}

.back-content {
    width: 100%;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-right: 5px;
    padding-bottom: 20px;
}

.back-content::-webkit-scrollbar {
    width: 5px;
}

.back-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.back-content::-webkit-scrollbar-thumb {
    background: #e91e63;
    border-radius: 10px;
}

h1 {
    font-size: 3.5rem;
    margin: 20px 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.heart {
    color: #fff;
    font-size: 3.8rem;
    animation: heartbeat 1.5s infinite;
    display: inline-block;
    margin: 0 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.date {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 10px;
    font-style: italic;
    letter-spacing: 1px;
}

.flip-button {
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 1.1rem;
    background-color: rgba(233, 30, 99, 0.7);
    padding: 15px 30px;
    border-radius: 25px;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 250px;
    max-width: 90%;
    margin: 0 auto;
    left: 0;
    right: 0;
}

.flip-button:hover {
    background-color: rgba(233, 30, 99, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.elegant-decoration {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    position: relative;
    margin: 15px 0;
}

.elegant-decoration::before,
.elegant-decoration::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    top: -4px;
}

.elegant-decoration::before {
    left: 30px;
}

.elegant-decoration::after {
    right: 30px;
}

.elegant-decoration.left {
    align-self: flex-start;
    transform: rotate(-5deg);
}

.elegant-decoration.right {
    align-self: flex-end;
    transform: rotate(5deg);
}

.continue-button {
    text-align: center;
    margin-top: 30px;
}

.continue-button button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.continue-button button:hover {
    background-color: #c2185b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}

/* Message Section */
.message {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.message-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 15px;
    max-width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #e91e63;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.dynamic-message {
    font-size: calc(1vw + 1vh + 0.5vmin);
    line-height: 1.5;
    color: #333;
    text-align: center;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    font-weight: 500;
    margin: 10px 0;
    flex-grow: 1;
}

.message-card h2 {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2rem;
    margin-top: 20px;
    color: #e91e63;
    font-weight: 700;
    padding: 10px 0;
}

.message-card p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
}

.signature {
    font-style: italic;
    text-align: right;
    margin-top: 20px;
    font-size: 1.2rem;
    color: #e91e63;
    font-weight: 600;
}

.flip-back-button {
    margin-top: 30px;
    color: #fff;
    font-size: 1.1rem;
    background-color: rgba(233, 30, 99, 0.7);
    padding: 15px 30px;
    border-radius: 25px;
    border: 2px solid #e91e63;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 280px;
    max-width: 90%;
}

.flip-back-button:hover {
    background-color: rgba(233, 30, 99, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


/* ==========================================
   Mobil Cihazlar İçin Özel Stiller (768px ve altı)
   ========================================== */
@media (max-width: 768px) {
    .card-container {
        perspective: 800px; /* Mobil için perspektifi biraz azalt */
        margin-bottom: 30px; /* Alt boşluğu artır */
    }

    .card {
        width: 90vw; /* Ekran genişliğinin %90'ı */
        max-width: 340px; /* Maksimum genişlik sınırı */
        height: auto; /* Yüksekliği içeriğe göre otomatik ayarla */
        padding: 25px 20px; /* Üst ve alt padding'i biraz artır */
        display: flex; /* İçeriği dikeyde ortalamak için flex kullanabiliriz */
        flex-direction: column;
    }

    .card-front,
    .card-back {
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* İçeriği üste ve alta yasla, arayı dağıt */
        flex-grow: 1; /* Eğer kart flex ise yüzeylerin de büyümesini sağla */
        text-align: center; /* İçerik metinlerini ortala */
        min-height: 100%; /* Kart yüzü kartın tüm yüksekliğini kaplamasını sağla */
    }

    .card-front h2, .card-back h3 {
        font-size: 1.6rem; 
        overflow-wrap: break-word;
        line-height: 1.3;
        margin-bottom: 5px; /* Başlık altına biraz boşluk */
    }

    .card-front .front-subtitle {
        font-size: 0.9rem; /* Tarih yazısını biraz daha küçült */
        margin-bottom: 10px; /* Altındaki butona boşluk bırak */
        color: rgba(255, 255, 255, 0.9);
    }

    .dynamic-message {
        font-size: 0.95rem; /* Mesaj yazı boyutunu küçült */
        margin: 10px 0;
        overflow-wrap: break-word;
        line-height: 1.4;
    }

    .flip-button, .flip-back-button {
        font-size: 0.85rem; /* Buton yazı boyutunu biraz daha küçült */
        padding: 10px 12px; /* Buton iç boşluğunu biraz daha azalt */
        min-width: auto; 
        width: auto; 
        max-width: 90%; /* Kartın %90'ını geçmesin */
        margin-top: 20px; /* Üst boşluğu artır */
        margin-bottom: 10px; /* Alt boşluğu artır */
        align-self: center; 
        box-sizing: border-box; /* Padding ve border hesaba katılsın */
        position: relative; /* Butonun görünürlüğünü sağlamak için */
        z-index: 2; /* Butonun üst katmanda olmasını sağla */
    }

    .flip-button i, .flip-back-button i {
        font-size: 1.1rem; /* Buton ikon boyutunu küçült */
    }

    .card-back p {
        font-size: 0.85rem; /* Arka yüzdeki paragraf yazısını küçült */
        line-height: 1.4;
        overflow-wrap: break-word;
        margin-bottom: 10px;
    }

    /* Galeri ve diğer bölümler için de mobil uyum gerekebilir */
    .gallery-section h2 {
        font-size: 2rem;
    }

    .photo-card {
        width: calc(50% - 20px); /* İki sütunlu görünüm */
    }

    .special-place-section h2 {
        font-size: 2rem;
    }

    .special-place-section p {
        font-size: 1rem;
    }

    .footer-content p {
        font-size: 0.9rem;
    }

    /* Karşılama Ekranı Mobil */
    .welcome-screen h1 {
        font-size: 2.5rem;
    }
    .welcome-screen p {
        font-size: 1rem;
    }
    #startExperienceBtn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }

}

@media (max-width: 480px) {
    .card {
        height: auto; /* Yüksekliği içeriğe göre otomatik ayarla */
        padding: 20px 15px; /* Üst ve alt padding'i biraz artır */
    }

    .card-front h2, .card-back h3 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

    .dynamic-message {
        font-size: 0.85rem;
        margin: 8px 0;
    }

    .flip-button, .flip-back-button {
        font-size: 0.8rem;
        padding: 8px 10px;
        margin-top: 8px;
        margin-bottom: 5px;
        max-width: 85%; /* Daha dar ekranlar için max genişlik */
    }

    .photo-card {
        width: calc(100% - 20px); /* Tek sütunlu görünüm */
    }

     /* Karşılama Ekranı Daha Küçük Mobil */
    .welcome-screen h1 {
        font-size: 2rem;
    }
    .welcome-screen p {
        font-size: 0.9rem;
    }
    #startExperienceBtn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0;
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 40px;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e91e63, transparent);
    flex-grow: 1;
    max-width: 300px;
}

.divider-icon {
    margin: 0 20px;
    width: 40px;
    height: 40px;
    background-color: #e91e63;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
}

.divider-icon i {
    font-size: 1.2rem;
}

/* Special Place Section */
.special-place-section {
    margin: 0 auto 60px;
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.special-place-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #e91e63;
    margin-bottom: 10px;
}

.special-place-section p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #777;
    margin-bottom: 30px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 3px solid #e91e63;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
}

#map {
    width: 100%;
    height: 100%;
}

/* Leaflet Harita Stilleri */
.heart-marker-icon {
    background: none;
    border: none;
}

.fancy-heart {
    position: relative;
    animation: pulse-heart 1.5s infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.fancy-heart svg {
    filter: drop-shadow(0 0 5px rgba(233, 30, 99, 0.5));
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-header h2 {
    color: #e91e63;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gallery-header p {
    color: #777;
    font-size: 1.1rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Photo Card Styles */
.photo-card {
    background-color: transparent;
    width: 100%;
    height: 0;
    padding-bottom: 177.78%; /* 16:9 ters çevrilmiş (9:16 formatı) */
    perspective: 1000px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
}

.photo-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.photo-card:hover .photo-card-inner {
    transform: scale(1.02);
}

.photo-card:hover .photo-card-front, .photo-card:hover .photo-card-back {
    border-color: #e91e63;
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.2);
}

.photo-card.flipped .photo-card-inner {
    transform: rotateY(180deg);
}

.photo-card-front, .photo-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(233, 30, 99, 0.7);
    padding: 3px;
    background-color: #fff;
}

.photo-card-front {
    background-color: #fff;
}

.photo-card-back {
    background-color: #fff;
    transform: rotateY(180deg);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.photo-placeholder {
    width: 100%;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.photo-placeholder::before {
    content: '❤️';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
}

.photo-card .caption {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #e91e63;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Legacy Gallery Item Styles - Keeping for compatibility */
.gallery-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item.expanded {
    grid-column: span 2;
    grid-row: span 2;
    z-index: 10;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.placeholder-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #ffb6c1, #ff69b4);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expanded .placeholder-image {
    height: 400px;
}

.placeholder-image::before {
    content: '❤️';
    position: absolute;
    font-size: 100px;
    opacity: 0.1;
}

.caption {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #e91e63;
    background-color: #fff;
    transition: all 0.3s ease;
}

.expanded .caption {
    font-size: 1.2rem;
    padding: 20px;
}

/* Music Player */
.music-player {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

#youtube-player {
    width: 1px;
    height: 1px;
    position: absolute;
    right: 0;
    bottom: 0;
}

.player-info {
    display: flex;
    align-items: center;
}

.player-info i {
    color: #e91e63;
    font-size: 1.5rem;
    margin-right: 15px;
}

.player-controls button {
    background-color: #e91e63;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
}

.player-controls button:hover {
    background-color: #c2185b;
    transform: scale(1.1);
}

.player-controls button.playing {
    animation: pulse 1.5s infinite;
}

/* Hint Text */
.hint-text-back {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #e91e63;
    text-align: center;
    font-style: italic;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    transition: all 0.3s ease;
    border: 1px dashed #e91e63;
}

.hint-text-back:hover {
    background-color: rgba(233, 30, 99, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(233, 30, 99, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    position: relative;
    margin-top: auto;
}

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

footer p {
    font-size: 1.2rem;
    color: #e91e63;
    font-family: 'Playfair Display', serif;
}

.scroll-top button {
    background-color: transparent;
    color: #e91e63;
    border: 2px solid #e91e63;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.scroll-top button:hover {
    background-color: #e91e63;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 900px) {
    .page-container {
        padding: 15px;
    }
    
    .card {
        max-width: 95%;
        height: 500px;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .heart {
        font-size: 3.2rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-item.expanded {
        grid-column: auto;
        grid-row: auto;
    }
    
    .expanded .placeholder-image {
        height: 250px;
    }
    
    .map-wrapper {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .page-container {
        padding: 10px;
    }
    
    .card {
        height: auto;
        min-height: 450px;
        max-width: 100%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .heart {
        font-size: 2.7rem;
    }
    
    .message-card h2 {
        font-size: 1.8rem;
    }
    
    .message-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-header h2 {
        font-size: 1.8rem;
    }
    
    .special-place-section h2 {
        font-size: 2rem;
    }
    
    .map-wrapper {
        height: 250px;
    }
    
    .section-divider {
        margin: 15px 0 30px;
    }
    
    .photo-card {
        height: 0;
        padding-bottom: 177.78%; /* 9:16 formatı */
    }
}

@media (max-width: 400px) {
    .card {
        height: auto;
        min-height: 450px;
    }
    
    .card-back {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin: 15px 0;
    }
    
    .heart {
        font-size: 2rem;
        margin: 0 3px;
    }
    
    .front-content, .back-content {
        padding: 12px;
    }
    
    .message-card {
        padding: 12px;
    }
    
    .message-card h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .message-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .signature {
        font-size: 1.3rem;
        margin-top: 20px;
    }
    
    .continue-button button, .back-to-card button {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .music-player {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 12px;
    }
    
    .elegant-decoration {
        width: 100px;
        margin: 10px 0;
    }
    
    .date {
        font-size: 1rem;
    }
    
    .hint-text {
        font-size: 0.8rem;
        padding: 6px 12px;
        bottom: 20px;
    }
    
    .special-place-section h2 {
        font-size: 1.6rem;
    }
    
    .special-place-section p {
        font-size: 0.9rem;
    }
    
    .map-wrapper {
        height: 200px;
    }
    
    .photo-card {
        height: 0;
        padding-bottom: 177.78%; /* 9:16 formatı */
    }
}
