/* ==========================
   GÖKBÖRÜ SON DEPREMLER
========================== */

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

body{
    font-family:'Poppins',sans-serif;
    background:#0b0b0b;
    color:#fff;
}

/* HEADER */

.header{
    width:100%;
    background:#111;
    border-bottom:3px solid #58b9ff;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:15px 35px;
    position:relative;
}

.logo-area{
    display:flex;
    align-items:center;
    z-index:2;
}

.logo-area img{
    width:70px;
    height:auto;
    display:block;
}

.title{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    text-align:center;
}

.title h1{
    margin:0;
    color:#58b9ff;
    font-size:30px;
    letter-spacing:2px;
    line-height:1.1;
}

.title span{
    display:block;
    margin-top:3px;
    color:#fff;
    font-size:15px;
    letter-spacing:1px;
}

.menu{
    margin-left:auto;
    z-index:2;
}

.home-btn{
    display:inline-block;
    background:#58b9ff;
    color:#000;
    text-decoration:none;
    padding:12px 22px;
    border-radius:8px;
    font-weight:600;
    transition:.3s;
}

.home-btn:hover{
    background:#fff;
}


/* MAP BUTTON */

.buttons{

    text-align:center;

    margin:25px;

}

#mapButton{

    background:#58b9ff;

    color:#000;

    border:none;

    padding:15px 40px;

    border-radius:8px;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

#mapButton:hover{

    background:white;

}


/* CARDS */

.cards{

    width:95%;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

}

.card{

    background:#161616;

    border:2px solid #58b9ff;

    border-radius:10px;

    text-align:center;

    padding:20px;

}

.card h3{

    color:#58b9ff;

    margin-bottom:10px;

}

.card p{

    font-size:28px;

    font-weight:bold;

}


/* FILTERS */

.filters{

    width:95%;

    margin:25px auto;

    display:flex;

    gap:15px;

}

.filters input{

    flex:1;

    background:#161616;

    color:white;

    border:2px solid #58b9ff;

    border-radius:8px;

    padding:12px;

}

.filters select{

    width:220px;

    background:#161616;

    color:white;

    border:2px solid #58b9ff;

    border-radius:8px;

    padding:12px;

}


/* TABLE */

.table-container{

    width:95%;

    margin:auto;

    overflow:auto;

    border:2px solid #58b9ff;

    border-radius:10px;

}

table{

    width:100%;

    border-collapse:collapse;

}

thead{

    background:#58b9ff;

    color:#000;

}

th{
    padding:15px;
    font-size:15px;
    border-right:1px solid #3a3a3a;
}

td{
    padding:14px;
    border-bottom:1px solid #333;
    border-right:1px solid #3a3a3a;
}

th:last-child,
td:last-child{
    border-right:none;
}

tbody tr{

    transition:.3s;

}

tbody tr:hover{

    background:#1d2b38;

}


/* BÜYÜKLÜK RENKLERİ */

.mag0{
    background:#0d6f39;   /* Yeşil (0.0–1.9) */
}

.mag2{
    background:#005fa3;   /* Mavi (2.0–2.9) */
}

.mag3{
    background:#c9a300;   /* Sarı (3.0–3.9) */
}

.mag4{
    background:#d97706;   /* Turuncu (4.0–4.9) */
}

.mag5{
    background:#c62828;   /* Kırmızı (5.0+) */
}


/* SAYFALAMA */

.pagination{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:10px;

    margin:30px;

}

.pagination button{

    background:#161616;

    color:white;

    border:1px solid #58b9ff;

    padding:10px 15px;

    cursor:pointer;

    border-radius:6px;

}

.pagination button:hover{

    background:#58b9ff;

    color:black;

}


/* FOOTER */

footer{

    margin-top:40px;

    padding:25px;

    text-align:center;

    border-top:2px solid #58b9ff;

    color:#58b9ff;

}


/* ==========================
   MOBİL
========================== */

@media (max-width:992px){

  .header{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:10px;
        padding:20px;
    }

 .logo-area{
        order:1;
    }

.logo-area img{
    width:70px;
    height:auto;
    margin:0;
}

.title{
        position:static;      /* EKLE */
        left:auto;            /* EKLE */
        transform:none;       /* EKLE */
        width:100%;
        text-align:center;
        order:2;
    }

.title h1{
    font-size:28px;
    margin:0;
}

.title span{
    display:block;
    margin-top:4px;
    font-size:15px;
}

 .menu{
        order:3;
        width:100%;
    }

 .home-btn{
        display:block;
        width:100%;
        text-align:center;
    }

.cards{
    grid-template-columns:1fr;
}

.filters{
    flex-direction:column;
}

.filters input,
.filters select{
    width:100%;
}

.table-container{
    overflow-x:auto;
}

table{
    min-width:950px;
}

#mapButton{
    width:100%;
}

}