/* =========================
   GENEL
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: #111111;
}

body {
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
    color: #ffffff;
    background: #111111;
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}


/* =========================
   ANA UYGULAMA
========================= */

.app {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
}


/* =========================
   BAŞLIK
========================= */

.header {
    text-align: center;
    padding: calc(30px + env(safe-area-inset-top)) 24px 30px;
    background: #111111;
}

    .header h1 {
        font-size: 30px;
        font-weight: 700;
        letter-spacing: -0.8px;
        margin-bottom: 8px;
    }

    .header p {
        color: #929292;
        font-size: 14px;
    }


/* =========================
   BÖLÜMLER
========================= */

.memory-section {
    padding: 28px 20px 34px;
    position: relative;
}


/* MAVİ */

.blue-section {
    background: linear-gradient( 145deg, #152c52 0%, #123c78 50%, #0c2b58 100% );
}


/* MOR */

.purple-section {
    background: linear-gradient( 145deg, #35184d 0%, #5b267c 50%, #421858 100% );
}


/* =========================
   BÖLÜM BAŞLIĞI
========================= */

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.heart {
    font-size: 32px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: 17px;
    backdrop-filter: blur(10px);
}

.section-title h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 3px;
}

.section-title p {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
}


/* =========================
   FOTOĞRAF ALANI
========================= */

.photo-area {
    width: 100%;
    margin-bottom: 24px;
}

.photo-button {
    min-height: 220px;
    width: 100%;
    border-radius: 22px;
    border: 1.5px dashed rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.16);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
    backdrop-filter: blur(8px);
}

    .photo-button:active {
        transform: scale(0.98);
        background: rgba(0,0,0,0.25);
    }

    .photo-button span {
        font-size: 36px;
        font-weight: 200;
        margin-bottom: 8px;
    }

    .photo-button strong {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .photo-button small {
        font-size: 12px;
        color: rgba(255,255,255,0.55);
    }


/* =========================
   FOTOĞRAF ÖNİZLEME
========================= */

.photo-preview {
    display: none;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}


/* =========================
   YAZI
========================= */

.text-area {
    position: relative;
}

    .text-area label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 10px;
        color: rgba(255,255,255,0.85);
    }

textarea {
    display: block;
    width: 100%;
    min-height: 150px;
    resize: vertical;
    border: none;
    outline: none;
    border-radius: 18px;
    padding: 17px;
    background: rgba(0,0,0,0.22);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.55;
    -webkit-appearance: none;
}

    textarea::placeholder {
        color: rgba(255,255,255,0.38);
    }

    textarea:focus {
        background: rgba(0,0,0,0.28);
    }


/* =========================
   KARAKTER SAYACI
========================= */

.counter {
    text-align: right;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    margin-top: 6px;
}


/* =========================
   KAYDET ALANI
========================= */

.save-area {
    background: #111111;
    padding: 30px 20px;
    text-align: center;
}

.save-button {
    width: 100%;
    min-height: 58px;
    border: none;
    border-radius: 18px;
    background: #ffffff;
    color: #111111;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform 0.15s ease, opacity 0.15s ease;
}

    .save-button:active {
        transform: scale(0.97);
        opacity: 0.85;
    }

    .save-button span {
        margin-right: 5px;
    }


/* =========================
   KAYIT MESAJI
========================= */

.save-message {
    min-height: 20px;
    margin-top: 14px;
    font-size: 13px;
    color: #8be7a0;
}


/* =========================
   TABLET / MASAÜSTÜ
========================= */

@media (min-width: 700px) {

    body {
        padding: 40px 20px;
    }

    .app {
        border-radius: 30px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    }
}
.logout-button {
    margin-top: 8px;
    padding: 6px 12px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.08);
    font-size: 12px;
    cursor: pointer;
}