*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    background:#111;

    color:white;

    font-family:Arial, Helvetica, sans-serif;

    position:relative;

}

header{
    text-align: center;
    padding: 40px 0;
}

header h1 {
    font-size: 45px;
}

.books{
    display: flex;
    gap: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    padding: 40px;
}

.book {
    width: 220px;
    text-align: center;
    transition: 0.3s;
    cursor: pointer;
    flex: 0 0 auto;
}

.books::-webkit-scrollbar{
    height: 8px;
}
.books::-webkit-scrollbar-track{
    background: #111;
}
 .books::-webkit-scrollbar-thumb{
    background: #666;
    border-radius: 20px;
 }
.books::-webkit-scrollbar-thumb:hover{
    background: #999;
}

.book:hover{
    transform: scale(1.05);
}

.book img {
    width: 220px;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;

}

.book h2 {
    margin-top: 15px;
    font-size: 22px;
    font-family: "Times New Roman", Times, serif;
    font-weight: bold;

    text-align: center;
    line-height: 1.3;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;
}

footer {
    text-align: center;
    padding: 50px 0;
}

footer a {
    color: white;
    text-decoration: none;
    font-size: 22px;
}
.book a{
    text-decoration: none;
    color: white;
    display: block;
}

/* ========================= */
/* KİTAP SAYFASI */
/* ========================= */

.back-button {

    display: inline-block;

    margin: 25px 0 0 40px;

    font-size: 18px;

    color: white;

    text-decoration: none;

}

.back-button:hover{
    color:#bdbdbd;
}

.book-page{
    max-width:900px;
    margin:auto;
    padding:5px 30px 30px;
}

.book-cover{
    display:block;
    width:300px;
    margin:0 auto;
    border-radius:12px;
}

.book-name{
    text-align:center;
    margin-top:25px;
    font-size:40px;
    font-family:"Times New Roman", serif;
}

.book-summary{
    margin-top:40px;
    text-align:center;
}

.book-summary p{
    font-size:20px;
    line-height:1.8;
    max-width:700px;
    margin:auto;
}
.book-stats{
    display:flex;
    justify-content:center;
    gap:60px;
    margin:40px 0;
    font-size:22px;
}

.chapters{
    margin-top:30px;
}

.chapters h3{
    font-size:30px;
    margin-bottom:25px;
}

.chapter{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 25px;
    margin-bottom:15px;

    background:#1b1b1b;

    border-radius:12px;

    text-decoration:none;
    color:white;

    transition:.3s;
}

.chapter:hover{
    background:#2c2c2c;
}
/* ========================= */
/* BÖLÜM SAYFASI */
/* ========================= */

.chapter-page {

    width: 100%;
    max-width: 1200px;

    margin: auto;

    padding: 40px 80px;

}

.chapter-book-name{
    text-align: center;
    font-size: 38px;
    margin-top: 30px;
    font-family: "Times New Roman", serif;
}

.chapter-title{
    text-align:center;
    font-size:32px;
    font-family:"Cinzel", serif;
    font-weight:400;
    letter-spacing:3px;
    margin-top:0;
    margin-bottom:20px;
    transform:translateY(-20px);
}

.chapter-stats{
    display: flex;
    justify-content: center;
    gap: 50px;
    font-size: 22px;
    margin-bottom: 50px;
}

.chapter-content{
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.paragraph{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.paragraph p{
    flex: 1;
    font-size: 20px;
    line-height: 1.9;
}

.comment-button{
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: white;
    transition: 0.3s;
}

.comment-button:hover{
    transform: scale(1.2);
}

.chapter-navigation{
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
}

.chapter-navigation a{
    display:inline-block;

    background:#3a3a3a;

    color:white;
    text-decoration:none;

    font-size:16px;

    padding:10px 18px;

    border-radius:20px;

    transition:.3s;
}

.chapter-navigation a:hover{
    background:#555;
}



/* ========================= */
/* HEADER */
/* ========================= */

.header{
    width:100%;

    display:grid;
    grid-template-columns:1fr auto 1fr;

    align-items:center;

    padding:20px 60px;
    box-sizing:border-box;
}

.header-link{
    justify-self: start;

    color: white;
    text-decoration: none;
    font-size: 20px;
}

.logo{
    justify-self: center;
}

.logo img{
    display: block;

    height: 180px;
    width: auto;

    transition: .35s;
}

.logo img:hover{
    transform: scale(1.03);
}

.auth-links{
    justify-self: end;

    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-links a{
    color: white;
    text-decoration: none;
   font-size:16px;
    transition: .3s;
}

.auth-links a:hover{
    color:#d3b27a;
}

.auth-links span{
    color:#666;
}
/* ========================= */
/* GİRİŞ & KAYIT SAYFALARI */
/* ========================= */

.login-page{
    max-width: 450px;
    margin: 100px auto;
    text-align: center;
}

.login-page h1{
    font-size: 45px;
    margin-bottom: 20px;
    font-family: "Times New Roman", serif;
}

.login-page h2{
    margin-bottom: 35px;
    font-size: 30px;
}

.login-page form{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-page input{
    padding: 15px;
    background: #1f1f1f;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 18px;
}

.login-page input:focus{
    outline: 2px solid white;
}

.login-page button{
    padding: 15px;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.login-page button:hover{
    transform: scale(1.03);
}

.login-page p{
    margin-top: 30px;
}

.login-page p a{
    color: white;
}

.back-home{
    display: inline-block;
    margin-top: 35px;
    color: white;
    text-decoration: none;
}

.back-home:hover{
    color: #bdbdbd;
}
.header-account a,
.header-link{
    color: white;
    text-decoration: none;
}

.header-account a:hover,
.header-link:hover{
    color: #bdbdbd;
}

/* ===== PROFİL SAYFASI ===== */

.profile-container{
    width: 500px;
    margin: 35px auto;
    text-align: center;
}

.profile-title{
    font-size: 34px;
    margin-bottom: 25px;
    color: white;
}

.profile-card{
    background:#171717;
    border:1px solid #7b2cff;
    border-radius:18px;
    padding:18px 22px;
    margin-bottom:16px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    transition:.3s;
}

.profile-card:hover{
    transform:translateY(-3px);
    box-shadow:0 0 18px rgba(123,44,255,.45);
}

.profile-left{
    text-align:left;
}

.profile-label{
    color:#9f9f9f;
    font-size:15px;
}

.profile-value{
    color:white;
    font-size:18px;
    margin-top:5px;
    font-weight:bold;
}

.profile-btn{
    width:100%;
    padding:15px;
    border:none;
    border-radius:18px;
    background:#7b2cff;
    color:white;
    font-size:17px;
    cursor:pointer;
    margin-top:20px;
    transition:.3s;
}

.profile-btn:hover{
    background:#9955ff;
}

.profile-back{
    display:inline-block;
    margin-top:25px;
    color:white;
    text-decoration:none;
}

.profile-back:hover{
    color:#7b2cff;
}
/* ========================= */
/* ANA SAYFA YENİ TASARIM */
/* ========================= */

.hero{
    width:90%;
    margin:20px auto 60px;
}

.hero h2{
    font-size:42px;
    font-family:"Times New Roman", serif;
    margin-bottom:15px;
}

.hero p{
    color:#bdbdbd;
    font-size:20px;
}

.universe{
    width:92%;
    margin:55px auto;
}


    .universe h2{
        font-family: "Cormorant Garamond", serif;
        font-size: 34px;
        font-weight: 500;
        letter-spacing: 1px;
    }
.book-row{
    display:flex;
    gap:55px;

    overflow-x:auto;
    overflow-y:hidden;

    scroll-behavior:smooth;

    padding:10px 5px 25px;
}

.book-row::-webkit-scrollbar{
    display:none;
}

.book-row .book{
    width:220px;
    flex:0 0 auto;

    transition:.35s;
}

.book-row .book:hover{

    transform:translateY(-6px);

}

.book-row img{
    width:220px;
    height:320px;

    object-fit:cover;

    border-radius:16px;

    transition:.35s;
    border:1px solid #2c2c2c;
}

.book-row img:hover{
    transform: scale(1.05);

    filter: brightness(.55) blur(1.5px);

    box-shadow:
        0 0 20px rgba(123,44,255,.60),
        0 0 45px rgba(123,44,255,.35);

    transition: .35s;
}

.book a{
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;
}

.book-overlay{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 18px;

    background: linear-gradient(
        transparent,
        rgba(0,0,0,.92)
    );

    opacity: 0;
    transform: translateY(100%);
    transition: .35s;
}

.book-overlay h3{
    color: white;
    font-size: 18px;
    font-family: "Times New Roman", serif;
    text-align: center;
    font-weight: normal;
    line-height: 1.3;
}

.book:hover .book-overlay{
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* SLIDER */
/* ========================= */

.slider-container{
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-btn{
    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: white;

    font-size: 28px;

    cursor: pointer;

    transition: .3s;

    flex-shrink: 0;
}

.slider-btn:hover{
    background: #7b2cff;
    transform: scale(1.1);
}

.book-row{
    flex: 1;
}
/* ===== LOGO ===== */

.page-logo{
    display: inline-block;
    margin-bottom: 20px;
}

.page-logo img{
    width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: .3s;
}

.page-logo img:hover{
    transform: scale(1.02);
}

/* ===== KİTAP SAYFASI LOGO ===== */

.book-logo{
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.book-logo img{
    width: 170px;
    height: auto;
    display: block;
    transition: .3s;
}

.book-logo img:hover{
    transform: scale(1.03);
}

/* ========================= */
/* BACKGROUND VIDEO */
/* ========================= */

.background-video{
    
    filter:brightness(.55);
    position: fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    object-fit:cover;

    z-index:-2;

}


.video-overlay{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.65);

    z-index:-1;

}

.book-overlay h3{
    color: white;

    font-family: "Bodoni Moda", serif;

    font-size: 24px;

    font-weight: 500;

    line-height: 1.25;

    letter-spacing: .5px;

    text-align: center;

    text-shadow: 0 3px 10px rgba(0,0,0,.9);
}

/* ===== GİRİŞ / KAYIT LOGOSU ===== */

.page-logo{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.page-logo img{
    width: 260px;
    height: auto;
    display: block;
    transition: .3s;
}

.page-logo img:hover{
    transform: scale(1.03);
}

/* ========================= */
/* TELEFON GÖRÜNÜMÜ */
/* ========================= */

@media (max-width:768px){

    /* HEADER */
.chapter-navigation a{
    font-size:14px;
    padding:8px 14px;
}
    .header{
        grid-template-columns:1fr;
        gap:20px;
        padding:20px;
        text-align:center;
    }

    .header-link{
        justify-self:center;
    }

    .header-account{
        justify-self:center;
        flex-wrap:wrap;
        justify-content:center;
    }

    .logo img{
        height:80px;
    }

    /* HERO */

    .hero{
        width:92%;
        text-align:center;
    }

    .hero h2{
        font-size:28px;
    }

    .hero p{
        font-size:16px;
    }

    /* EVRENLER */

    .universe{
        width:95%;
        margin:35px auto;
    }

   .universe h2{
        font-size:22px;
        text-align:center;
    }

    /* KİTAPLAR */

    .book-row{
        gap:25px;
    }

    .book-row .book{
        width:150px;
    }

    .book-row img{
        width:150px;
        height:220px;
    }

    .book-overlay h3{
        font-size:16px;
    }

    /* OKLAR */

    .slider-btn{
        width:40px;
        height:40px;
        font-size:20px;
    }

    /* GİRİŞ - KAYIT */

    .login-page{
        width:90%;
        margin:40px auto;
    }

    .page-logo img{
        width:220px;
    }

    /* PROFİL */

    .profile-container{
        width:90%;
    }

    /* KİTAP SAYFASI */

   .book-page{
    width:100%;
    padding:20px;
    box-sizing:border-box;
}

    .book-cover{
        width:220px;
    }

    .book-name{
        font-size:30px;
    }

    .book-summary p{
        font-size:18px;
    }

  .book-stats{
    display:flex;
    flex-direction:row;
    justify-content:center;
    align-items:center;
    gap:20px;
    flex-wrap:wrap;
    font-size:16px;
}

.book-stats span{
    white-space:nowrap;
}

    .chapter{
    width:100%;
    box-sizing:border-box;
    padding:15px;
}


.chapter-page{
    width:100%;
    max-width:none;
    padding:20px;
    box-sizing:border-box;
}

.chapter-content{
    width:100%;
}

.chapter-content p{
    width:100%;
}


}
.universe-title{
    display:flex;
    align-items:center;
   gap:8px;

margin:70px 0 35px 40px;

    color:#f5f5f5;

    font-size:46px;
    font-family:"Cormorant Garamond", serif;
    font-weight:600;
    letter-spacing:2px;
}

.magic-icon{
    color:#d8c59d;
    font-size:34px;
    transition:.3s;
}

.universe-title:hover .magic-icon{
    transform:translateX(6px);
    color:#f0d8a8;
}

.start-reading{
    display:inline-block;
    margin:30px 0;
    padding:15px 40px;

    background:#4a4a4a;
    color:white;

    text-decoration:none;

    border-radius:8px;

    font-weight:600;
    letter-spacing:1px;

    transition:.3s;
}

.start-reading:hover{
    background:#666;
}

.comment-box{
    margin-top:15px;
    padding:20px;

background: rgba(30,30,30,.78);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);

border:1px solid rgba(255,255,255,.08);

box-shadow:
0 15px 45px rgba(0,0,0,.45);
    border-radius:10px;
}


.comment-box h4{
    margin-top:0;
}


.comment-box textarea{
    width:100%;
    min-height:80px;

    background:#222;
    color:white;

    border:none;
    border-radius:8px;

    padding:10px;

    resize:none;
}


.comment-box button{
    margin-top:10px;

    padding:10px 25px;

    background:#555;
    color:white;

    border:none;
    border-radius:6px;

    cursor:pointer;
}




.comments-list {
    margin-top: 20px;
}


.comments-list h5 {
    margin-bottom: 10px;
}




/* Paragraf yorum butonu */

.comment-button {

    display:inline-flex;

    align-items:center;

    gap:6px;

    background:#2a2a2a;

    color:white;

    border:1px solid #555;

    padding:4px 10px;

    border-radius:12px;

    font-size:13px;

    cursor:pointer;

    margin-left:10px;

    vertical-align:middle;

}


.comment-button:hover {

    background: #333;

}


.comment-count {

    font-size: 13px;

    opacity: 0.9;

}

.chapter-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 50px;
}


.stat-box {
    background: #2a2a2a;
    border: 1px solid #555;
    color: white;

    padding: 8px 16px;

    border-radius: 14px;

    font-size: 14px;

    display: flex;
    align-items: center;
    gap: 6px;
}

.chapter-page h2 {

    text-align: center;

    font-size: 42px;

    margin-top: 50px;

    margin-bottom: 20px;


}
.chapter-content {

    width: 100%;

}


.chapter-content p {
    font-size:17px;
    line-height:1.7;
    margin-bottom:8px !important;
}


.close-comments {

    float:right;

    cursor:pointer;

    font-size:24px;

}



.comments-list h5 {

    margin-top:20px;

    margin-bottom:15px;

}
.comment-box h4 {

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:0;

}

.comments-list {

    margin-top:20px;

}







.single-comment {

    background:#242424;

    border-radius:12px;

    padding:12px;

    margin-bottom:10px;

    color:white;

}


.single-comment strong {

    display:block;

    font-size:14px;

    margin-bottom:3px;

}


.single-comment p {

    margin:0;

    padding:0;

    font-size:14px;

    line-height:1.4;

}
.comment-box {

    position: fixed !important;

    top: 0 !important;

    right: 0 !important;

    width: 360px !important;

    height: 100vh !important;

    margin: 0 !important;

    padding: 20px !important;

    background: rgba(30,30,30,.78);

backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);

border:1px solid rgba(255,255,255,.08);

box-shadow:0 15px 45px rgba(0,0,0,.45);

    color: white !important;

    z-index: 99999 !important;

    overflow-y: auto !important;

    box-sizing: border-box !important;

}


.comment-box h4 {

    display:flex;

    justify-content:space-between;

    align-items:center;

}


.close-comments {

    cursor:pointer;

}


.login-warning {

    margin-top:20px;

    padding:15px;

    background:#242424;

    border-radius:12px;

}

.comment-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
    margin-top:12px;
}

.comment-actions span{
    color:#8a8a8a;
    font-size:13px;
    cursor:pointer;
    transition:.2s;
    user-select:none;
}

.comment-actions span:hover{
    color:#fff;
}

.delete-comment:hover{
    color:#ff5a5a !important;
}
.reply-box{

    margin-top:15px;

}

.reply-input{

    width:100%;

    min-height:70px;

    background:#1e1e1e;

    color:white;

    border:none;

    border-radius:8px;

    padding:10px;

    resize:vertical;

}

.send-reply{

    margin-top:10px;

    padding:8px 18px;

    background:#7b2cbf;

    color:white;

    border:none;

    border-radius:8px;

    cursor:pointer;

}


.comment-icon{
    font-size:13px;
    color:#d8c8ff;
    margin-top:2px;
    flex-shrink:0;
}
.comment-header strong{
    font-size:15px;
    font-weight:600;
    color:#fff;
    display:inline-block;
    position:relative;
    top:2px;
}
.comment-text{
    margin:0;
    margin-bottom:10px;
    line-height:1.5;
    color:#f2f2f2;
    white-space:pre-wrap;
}
.reply-comment,
.delete-comment{

    color:#c3c3c3;

    font-size:13px;

    cursor:pointer;

    transition:.2s;

    user-select:none;

}

.reply-comment:hover{

    color:white;

}

.delete-comment:hover{

    color:#ff6b6b;

}
@media (max-width:768px){

    .auth-links{
        justify-self:center;
        justify-content:center;
        gap:10px;
    }

    .auth-links a{
        font-size:16px;
    }

}
.universe-title{
    white-space:nowrap;
}

.avatar-selection{

    margin-top:25px;

    text-align:center;

}

.avatar-selection h3{

    margin-bottom:15px;

    color:white;

    font-size:16px;

    font-weight:500;

}

.avatar-grid{

    display:flex;

    gap:14px;

    overflow-x:auto;

    padding:10px 5px;

    scroll-behavior:smooth;

    scrollbar-width:none;

}

.avatar-grid::-webkit-scrollbar{

    display:none;

}

.avatar-option{

    width:90px;

    height:90px;

    border-radius:50%;

    object-fit:cover;

    cursor:pointer;

    border:3px solid transparent;

    transition:.25s;

    flex-shrink:0;

}

.avatar-option:hover{

    transform:scale(1.08);

}

.avatar-option.selected{

    border-color:#ffffff;

    transform:scale(1.08);

}
.profile-avatar{

    display:flex;

    justify-content:center;

    margin:25px 0 15px;

}

#profile-avatar{

    width:130px;

    height:130px;

    border-radius:50%;

    object-fit:cover;

    border:3px solid rgba(255,255,255,.2);

}



.comment-avatar{

    width:34px;

    height:34px;

    border-radius:50%;

    object-fit:cover;

    flex-shrink:0;

}
.site-footer{

    margin-top:100px;

    padding:70px 20px;

    background:#0d0d0d;

    border-top:1px solid rgba(255,255,255,.08);

    text-align:center;

}

.footer-logo{

    width:80px;

    margin-bottom:20px;

}

.site-footer h3{

    color:#fff;

    font-weight:500;

    margin-bottom:30px;

}

.footer-social{

    display:flex;

    justify-content:center;

    gap:28px;

    margin-bottom:25px;

}

.footer-social a{

    color:#fff;

    font-size:28px;

    transition:.3s;

}

.footer-social a:hover{

    color:#d4af37;

    transform:translateY(-4px);

}

.footer-mail{

    color:#bdbdbd;

    margin-bottom:30px;

}

.footer-line{

    width:120px;

    height:1px;

    background:#d4af37;

    margin:0 auto 30px;

}

.footer-copy{

    color:#fff;

    font-size:15px;

    margin-bottom:15px;

}

.footer-legal{

    max-width:700px;

    margin:0 auto;

    color:#9d9d9d;

    font-size:14px;

    line-height:1.8;

}

.footer-dev{

    margin-top:40px;

    color:#c9a14d;

    font-size:15px;

    letter-spacing:2px;

    line-height:1.8;

}

.footer-dev strong{

    display:block;

    margin-top:8px;

    font-size:18px;

    color:white;

}
.book-chapter-title{

    flex:1;

    padding-right:15px;

}

.book-chapter-info{

    display:flex;
    align-items:center;
    gap:10px;
    white-space:nowrap;
    flex-shrink:0;

}
.comment-header{

    display:flex;

    align-items:center;

    gap:10px;

}



