/* Genel reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Body ve arka plan */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ana container */
.container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 20px;
    text-align: center;
}

/* Menü üstte */
.menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    background-color: #121212;
    padding: 10px 0;
    z-index: 1000;
    border-bottom: 1px solid #ff6b81;
    flex-wrap: wrap;
}

.menu a {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 18px;
    border: 2px solid #ff6b81;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 0.95rem;
}

.menu a:hover,
.menu a.active {
    background-color: #ff6b81;
    color: #121212;
}

/* Başlık */
.container h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ff6b81;
}

/* Alt başlık */
.subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #d1d1d1;
}

/* 3 bölümlü dikey layout */
.vertical-three {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 30px;
}

/* Bölümler */
.section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Sol: Sözler */
.section.left .quote {
    width: 100%;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff6b81, #ff8fa3);
    color: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.5s, box-shadow 0.5s;
}

.section.left .quote:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 15px 25px rgba(255,107,129,0.6);
}

/* Orta: Metin */
.section.center .custom-text {
    font-size: 1.2rem;
    text-align: center;
    background: linear-gradient(135deg, #ff6b81, #ff8fa3);
    padding: 20px;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.5s, box-shadow 0.5s;
}

.section.center .custom-text:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(255,107,129,0.6);
}

/* Sağ: Fotoğraf */
.section.right .side-photo {
    width: 100%;
    max-width: 250px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.5s, box-shadow 0.5s;
    cursor: pointer;
}

.section.right .side-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 25px rgba(255,107,129,0.6);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
}

/* Galeri grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-grid img,
.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-grid img:hover,
.gallery-item img:hover {
    transform: scale(1.07);
    box-shadow: 0 0 25px rgba(255,107,129,0.7);
}

/* Galeri yükleme formu */
.upload-form {
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.upload-form input[type=file] {
    padding: 8px;
    background: #1e1e1e;
    color: #fff;
    border: 1px solid #ff6b81;
    border-radius: 6px;
}

.upload-form button {
    background: #ff6b81;
    border: none;
    padding: 8px 18px;
    color: #121212;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
}

.upload-form button:hover {
    background: #ff8fa3;
}

/* Müzik player */
audio {
    width: 60%;
    margin: 20px auto;
    display: block;
}

/* Chat container (modern) */
.chat-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

/* Chat başlığı (chat.php içindeki inline ile beraber çalışır) */
.chat-header {
    padding-bottom: 10px;
}

/* Mesaj alanı */
#messages {
    height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #121212;
    border-radius: 16px;
    padding: 12px;
}

/* Mesaj balonları */
.message {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
    font-size: 0.95rem;
}

/* Sen */
.message.self {
    align-self: flex-end;
    background: #25D366;
    color: #000;
    border-bottom-right-radius: 4px;
}

/* Karşı taraf */
.message.other {
    align-self: flex-start;
    background: #333;
    color: #fff;
    border-bottom-left-radius: 4px;
}

/* Chat input alanı */
.chat-input {
    display: flex;
    padding: 10px 0;
    gap: 10px;
    background: #1e1e1e;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ff6b81;
    outline: none;
    font-size: 0.95rem;
    background: #121212;
    color: #fff;
}

.chat-input button {
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: #ff6b81;
    color: #fff;
    cursor: pointer;
}

/* Emoji butonu */
.emoji-btn {
    background:#ff6b81;
    border:none;
    font-size:20px;
    padding:8px 12px;
    border-radius:10px;
    cursor:pointer;
}

/* Emoji paneli */
.emoji-box {
    display:none;
    background:#222;
    border:1px solid #ff6b81;
    padding:10px;
    border-radius:12px;
    font-size:22px;
    margin-bottom:10px;
    max-height:150px;
    overflow-y:auto;
    user-select:none;
}

.emoji-box span {
    cursor:pointer;
    padding:5px;
    border-radius:6px;
}

.emoji-box span:hover {
    background:#444;
}

/* Gizli Buton ve Animasyon */
.hidden-section {
    margin-top: 40px;
    text-align: center;
}

#secret-btn,
#unlock-btn {
    background-color: #ff6b81;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

#secret-btn:hover,
#unlock-btn:hover {
    background-color: #ff8fa3;
}

#secret-pass {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ff6b81;
    margin-right: 8px;
    outline: none;
}

#secret-content {
    transition: all 0.5s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-top: 15px;
}

#secret-content.show {
    opacity: 1;
    max-height: 500px;
}

#secret-div {
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(-20px);
    margin-top: 15px;
}

#secret-div.show {
    opacity: 1;
    transform: translateY(0);
}

/* Why I Love Esma */
.reasons {
    margin-top: 20px;
    padding-left: 20px;
    font-size: 18px;
    line-height: 1.8;
    list-style: square;
}

.reasons li {
    margin-bottom: 10px;
    color: #ff8fa3;
    font-weight: 500;
}

/* Animasyon */
@keyframes fadeIn {
    from {opacity:0; transform:translateY(5px);}
    to {opacity:1; transform:translateY(0);}
}

/* -------------------------------------------------
   RESPONSIVE (TABLET + TELEFON)
-------------------------------------------------- */

/* 900px altı (tablet & dikey telefon) */
@media screen and (max-width: 900px) {
    .container {
        padding: 30px 15px;
    }

    .vertical-three {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .section.right .side-photo {
        max-width: 100%;
    }

    audio {
        width: 90%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .chat-container {
        padding: 15px;
        border-radius: 12px;
        margin-top: 20px;
    }

    #messages {
        height: 350px;
    }
}

/* 600px altı (küçük telefonlar) */
@media screen and (max-width: 600px) {
    .container {
        padding: 25px 10px;
    }

    .container h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .menu {
        gap: 8px;
    }

    .menu a {
        padding: 8px 10px;
        font-size: 0.8rem;
        flex: 1 1 40%;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .upload-form {
        flex-direction: column;
        align-items: stretch;
    }

    .upload-form input[type=file],
    .upload-form button {
        width: 100%;
    }

    .chat-container {
        max-width: 100%;
        border-radius: 0;
        margin: 0 -10px;
    }

    #messages {
        height: 55vh;
    }

    .message {
        max-width: 85%;
        font-size: 0.9rem;
    }

    .chat-input {
        gap: 6px;
    }

    .emoji-btn {
        padding: 6px 10px;
        font-size: 18px;
    }

    .chat-input button {
        padding: 8px 12px;
    }
}
.gallery-item {
    position: relative;
}

.gallery-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 107, 129, 0.9);
    color: #fff;
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-delete {
    opacity: 1;
}

@media (max-width: 600px) {
    .gallery-delete {
        opacity: 1;
    }
}
/* ============================================
      HAKKIMIZDA (DİNAMİK METİN + FOTO) EKLERİ
=============================================== */

.about-edit-form,
.about-upload-form {
    margin-top: 25px;
    background: rgba(255,107,129,0.08);
    padding: 20px;
    border-radius: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,107,129,0.25);
    animation: fadeIn 0.5s ease;
}

.about-edit-form h2,
.about-upload-form h2 {
    color: #ff6b81;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.about-edit-form textarea {
    width: 100%;
    min-height: 180px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #ff6b81;
    background: #1e1e1e;
    color: #fff;
    resize: vertical;
    font-size: 1rem;
}

.about-edit-form button,
.about-upload-form button {
    background: #ff6b81;
    border: none;
    padding: 10px 20px;
    color: #121212;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 8px;
    font-weight: bold;
}

.about-edit-form button:hover,
.about-upload-form button:hover {
    background: #ff8fa3;
    box-shadow: 0 0 18px rgba(255,107,129,0.7);
    transform: translateY(-2px);
}

.about-upload-form input[type="file"] {
    padding: 10px;
    background: #1e1e1e;
    border: 1px solid #ff6b81;
    color: white;
    border-radius: 10px;
}

/* Foto grid sağ kolon içindi */
.section.right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section.right img.side-photo {
    border: 2px solid rgba(255,107,129,0.6);
}

/* Mobil uyum */
@media (max-width: 600px) {
    .about-edit-form,
    .about-upload-form {
        padding: 15px;
    }
    .about-edit-form textarea {
        min-height: 150px;
    }
    .about-edit-form h2,
    .about-upload-form h2 {
        font-size: 1.1rem;
    }
}
.music-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
    gap: 20px;
    margin-top: 30px;
}

.music-card {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(255,107,129,0.2);
    transition: .3s;
    text-align: center;
}

.music-card:hover {
    box-shadow: 0 0 25px rgba(255,107,129,0.4);
    transform: translateY(-5px);
}

.music-thumb {
    width: 100%;
    border-radius: 12px;
}

.music-title {
    margin: 12px 0;
    font-size: 1rem;
    color: #ff8fa3;
    font-weight: bold;
}

.play-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    background: #ff6b81;
    border-radius: 8px;
    color: #121212;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
}

.play-btn:hover {
    background: #ff8fa3;
}

.delete-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #e63946;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
}

.player-box {
    margin-top: 35px;
    box-shadow: 0 0 20px rgba(255,107,129,0.5);
    border-radius: 12px;
    overflow: hidden;
}
.mini-audio-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-top: 2px solid #ff6b81;
    z-index: 9999;
    box-shadow: 0 -3px 15px rgba(255,107,129,0.4);
}

.mini-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
    border: 2px solid #ff6b81;
}

.mini-title {
    flex: 1;
    color: #ff8fa3;
    font-size: 1rem;
    font-weight: 600;
}

.mini-audio-bar button {
    background: #ff6b81;
    color: #121212;
    border: none;
    padding: 8px 12px;
    margin-left: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: .3s;
}
.mini-audio-bar button:hover {
    background: #ff8fa3;
}
/* ==============================
   SPOTIFY TİPİ MÜZİK SAYFASI
============================== */

.music-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 30px;
}

/* Track List (Sol taraf) */
.track-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.track-row {
    width: 100%;
    border: none;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    gap: 10px;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.track-row:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255,107,129,0.4);
}

.track-row-active {
    background: linear-gradient(135deg, #1db954, #1a1a1a);
    box-shadow: 0 0 18px rgba(29,185,84,0.6);
}

.track-index {
    width: 22px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.track-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.track-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.track-title {
    font-size: 0.98rem;
    font-weight: 600;
}

.track-sub {
    font-size: 0.8rem;
    color: #b0b0b0;
}

.track-delete {
    font-size: 0.8rem;
    padding: 4px 8px;
    background: #e63946;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    margin-left: 8px;
}

/* Spotify Player (Sağ taraf) */
.spotify-player {
    flex: 1;
    min-width: 260px;
}

.spotify-player-inner {
    background: #050505;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 0 18px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotify-player-active {
    align-items: stretch;
    justify-content: flex-start;
}

/* Kapak ve arka blur */
.spotify-cover-wrap {
    position: relative;
    flex-shrink: 0;
}

.spotify-cover-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(25px);
    opacity: 0.22;
    z-index: -1;
}

.spotify-cover-lg {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 18px rgba(0,0,0,0.8);
}

/* Şarkı bilgileri ve kontroller */
.spotify-info {
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    z-index: 1;
}

.spotify-title-lg {
    font-size: 1.2rem;
    font-weight: 700;
}

.spotify-sub {
    font-size: 0.9rem;
    color: #b3b3b3;
}

/* Progress bar (fake animasyon) */
.spotify-progress-bar {
    width: 100%;
    height: 5px;
    background: #333;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.spotify-progress-bar span {
    display: block;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #1db954, #ff6b81);
    border-radius: inherit;
    animation: progressFake 4s linear infinite;
}

@keyframes progressFake {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(120%); }
}

/* Kontroller */
.spotify-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spotify-btn {
    background: #222;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.spotify-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(255,107,129,0.4);
}

.spotify-play {
    background: #1db954;
    color: #000;
    font-weight: 700;
}

.spotify-play:hover {
    background: #1ed760;
}

/* Player boşken */
.spotify-empty {
    text-align: center;
    color: #b3b3b3;
    font-size: 0.95rem;
}

/* Responsive müzik layout */
@media (max-width: 900px) {
    .music-layout {
        flex-direction: column;
    }
    .spotify-player {
        width: 100%;
        margin-top: 20px;
    }
    .spotify-player-inner {
        flex-direction: column;
    }
    .spotify-info {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
    .spotify-cover-lg {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 600px) {
    .track-row {
        padding: 8px 10px;
    }
    .track-thumb {
        width: 40px;
        height: 40px;
    }
    .spotify-player-inner {
        padding: 15px;
    }
    .spotify-title-lg {
        font-size: 1.05rem;
    }
}

/* ================================
   GÜNLÜK – INSTAGRAM STORY STYLE
================================ */

.story-bar {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 15px 0;
    margin-bottom: 25px;
}

.story-bar::-webkit-scrollbar {
    display: none;
}

.story-item {
    text-align: center;
    text-decoration: none;
    color: white;
}

.story-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(#121212, #121212) padding-box,
                linear-gradient(135deg, #ff6b81, #ff8fa3) border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2.5s infinite;
}

.story-item.active .story-circle {
    border-width: 4px;
    background: linear-gradient(#121212, #121212) padding-box,
                linear-gradient(135deg, #ff1e4a, #ff8fa3) border-box;
    box-shadow: 0 0 20px rgba(255, 50, 90, 0.7);
}

.story-heart {
    width: 24px;
    height: 24px;
    background: url('https://cdn-icons-png.flaticon.com/512/833/833472.png');
    background-size: contain;
    animation: heartbeat 1.4s infinite;
}

.story-date {
    margin-top: 5px;
    font-size: 0.85rem;
    opacity: 0.9;
}

@keyframes heartbeat {
    0%, 20%, 40%, 60%, 80%, 100% { transform: scale(1); }
    30%, 70% { transform: scale(1.25); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 4px rgba(255,107,129,0.3); }
    50% { box-shadow: 0 0 12px rgba(255,107,129,0.7); }
    100% { box-shadow: 0 0 4px rgba(255,107,129,0.3); }
}

.story-add {
    min-width: 70px;
    min-height: 70px;
    border-radius: 50%;
    background: #ff6b81;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

.daily-content-box {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 107, 129, 0.3);
    text-align: left;
    color: white;
}

.daily-content-box h2 {
    color: #ff6b81;
    margin-bottom: 10px;
}

.daily-date {
    opacity: 0.7;
    margin-bottom: 15px;
}

.daily-form input,
.daily-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #121212;
    border: 1px solid #ff6b81;
    border-radius: 10px;
    color: white;
}

.daily-form button {
    background: #ff6b81;
    padding: 10px 16px;
    border: none;
    color: #121212;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: .3s;
}

.daily-form button:hover {
    background: #ff8fa3;
}
/* ===============================
   Günlük Renkleri (Eren / Esma)
================================ */

.daily-entry {
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    color: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

/* Eren = Mavi tonları */
.eren-entry {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    border-left: 5px solid #00aaff;
}

/* Esma = Pembe tonları */
.esma-entry {
    background: linear-gradient(135deg, #ff6b9e, #ff9fcf);
    border-left: 5px solid #ff4fa2;
}

/* Arada ayırıcı */
.daily-entry hr {
    border: none;
    border-bottom: 1px solid #ff8fa3;
    margin: 20px 0;
}





