/* --- GENEL AYARLAR --- */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background 0.4s, color 0.4s;
    background-color: #EEF5FF;
    color: #1E293B;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- NAV BAR --- */
nav{
    width:100%;
    padding:20px 0;
    text-align:center;
    background:#2563EB;
    backdrop-filter:blur(10px);
    position:sticky;
    top:0;
    z-index:1000;
    border-bottom:none;
}

nav a{
    color:white;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:#DBEAFE;
}

/* --- ANA KUTU --- */
.ana-icerik{

    width:90%;
    max-width:800px;

    background:#FFFFFF;

    margin-top:50px;

    padding:40px;

    border-radius:20px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    text-align:center;

}
/* --- PROFİL --- */
.profil-karti img {

    width:160px;
    height:160px;

    border-radius:50%;

    object-fit:cover;

    object-position:center;

    border:5px solid white;

    margin-bottom:20px;

    box-shadow:0 8px 20px rgba(0,0,0,.2);

}
h1 { color: #1E293B; font-size: 36px; margin-bottom: 5px; }
.alt-baslik { font-size: 18px; color: #475569; margin-bottom: 30px; }

/* --- İMLEÇ --- */
.imlec { font-weight: bold; color: #2b2b2b; animation: yanip-sonme 1s step-end infinite; }
@keyframes yanip-sonme { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* --- FORM --- */
form { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
input,
textarea{

    background:white;

    border:1px solid #CBD5E1;

    color:#1E293B;

}
input:focus,
textarea:focus{

    outline:none;

    border-color:#2563EB;

    box-shadow:0 0 10px rgba(37,99,235,.2);

}
.gonder-butonu{

    background:#2563EB;

    color:white;

    transition:.3s;

}

.gonder-butonu:hover{

    background:#1D4ED8;

}
/* =======================
   KARANLIK MOD
======================= */

body.karanlik-tema{
    background:#0F172A;
}

body.karanlik-tema nav{
    background:#1E293B !important;
}

body.karanlik-tema nav a{
    color:#fff;
}

body.karanlik-tema .ana-icerik{
    background:#1E293B;
}

body.karanlik-tema h1,
body.karanlik-tema h2,
body.karanlik-tema h3,
body.karanlik-tema p{
    color:#fff;
}

body.karanlik-tema input,
body.karanlik-tema textarea{
    background:#222;
    border:1px solid #444;
    color:#fff;
}

body.karanlik-tema .profil-karti{
    background:#374151;
    color:#fff;
}

body.karanlik-tema .kart,
body.karanlik-tema .kutu{
    background:#334155;
    color:#fff;
}
body.karanlik-tema .kart p,
body.karanlik-tema .kart h3,
body.karanlik-tema .kutu p{
    color:#F9FAFB;
}

body.karanlik-tema .kart:hover,
body.karanlik-tema .kutu:hover{
    background:#475569;
}


/* =======================
   NAVBAR
======================= */

nav{
    width:100%;
    background:#2563EB;
    padding:15px 0;
    text-align:center;
    position:sticky;
    top:0;
    z-index:1000;
}

nav ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    justify-content:center;
    gap:25px;
    align-items:center;
}

nav a{
    text-decoration:none;
    color:white;
    font-weight:600;
    transition:.3s;
}

nav a:hover{
    color:#DCEAFF;
}

/* =======================
   TEMA BUTONU
======================= */

#tema-butonu{
    background:none;
    border:1px solid rgba(255,255,255,.4);
    color:white;
    padding:5px 10px;
    border-radius:20px;
    cursor:pointer;
}

/* =======================
   GRID KUTULARI
======================= */

.grid-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:20px;
    margin:20px 0 40px;
}

.kutu{
    background:white;
    border-radius:15px;
    padding:20px;
    border:none;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
    transition:.35s;
}

.kutu:hover{
    background:#DBEAFE;
    transform:translateY(-6px);
}

.kutu i{
    font-size:30px;
    margin-bottom:10px;
    display:block;
    color:#555;
}

.kutu p{
    font-size:14px;
    margin:0;
}

/* =======================
   KARTLAR
======================= */

.kart-izgarasi{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    width:100%;
}

.kart{

    background:#FFFFFF;
    color:#1E293B;

    padding:20px;

    border-radius:16px;

    border:none;

    box-shadow:0 5px 15px rgba(0,0,0,.05);

    opacity:0;

    transform:translateY(50px);

    animation:yukaridan-gel .8s ease-out forwards;
    

    transition:
        transform .4s cubic-bezier(.175,.885,.32,1.275),
        box-shadow .4s,
        background .3s;
    
}

.kart:hover{

    background:#DBEAFE;

    transform:translateY(-8px) scale(1.03);

    box-shadow:0 15px 30px rgba(37,99,235,.18);

}

.kart p,
.kart h3{
    color:#1E293B;
}

/* =======================
   PROFİL KARTI
======================= */

.profil-karti{

    background:#3B82F6;

    padding:40px;

    border-radius:20px;

    color:white;

    box-shadow:0 10px 25px rgba(59,130,246,.25);

}

.profil-karti h2,
.profil-karti p{
    color:white;
}

/* =======================
   ANİMASYON
======================= */

@keyframes yukaridan-gel{

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.kart:nth-child(1){animation-delay:.1s;}
.kart:nth-child(2){animation-delay:.2s;}
.kart:nth-child(3){animation-delay:.3s;}
.kart:nth-child(4){animation-delay:.4s;}
.kart:nth-child(5){animation-delay:.5s;} 
/* GÜNDÜZ KART YAZILARI */
body:not(.karanlik-tema) .kart h3,
body:not(.karanlik-tema) .kart p,
body:not(.karanlik-tema) .kutu p {
    color:#1E293B !important;
}