/* GENEL */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Segoe UI',sans-serif;}
body{background:#0f0f0f;color:#fff;}
a{text-decoration:none;color:inherit;}

/* NAVBAR */
nav{position:sticky;top:0;z-index:1000;background:#111;padding:15px 30px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #222;}
.logo{font-size:1.7rem;font-weight:800;color:#e50914;cursor:pointer;}
.nav-links{display:flex;gap:20px;position:relative;}
.nav-item{position:relative;}
.nav-item a{font-weight:600;color:#fff;padding:5px;display:inline-block;transition:.3s;}
.nav-item a:hover{color:#e50914;}
.nav-item .dropdown{display:none;position:absolute;top:30px;left:0;background:#111;border-radius:5px;min-width:150px;}
.nav-item:hover .dropdown{display:block;}
.nav-item .dropdown a{display:block;padding:8px 12px;color:#ccc;}
.nav-item .dropdown a:hover{background:#e50914;color:#fff;border-radius:3px;}

/* SEARCH */
.search-area{display:flex;align-items:center;gap:10px;}
#search-input{padding:8px 15px;border:none;border-radius:4px;background:#222;color:#fff;width:200px;}
#search-input:focus{outline:none;background:#333;}

/* PROFILE */
.profile-icon{width:35px;height:35px;border-radius:4px;background:#333 url('https://upload.wikimedia.org/wikipedia/commons/0/0b/Netflix-avatar.png') center/cover no-repeat;cursor:pointer;border:2px solid transparent;transition:.3s;}
.profile-icon:hover{border-color:#e50914;}

/* HERO */
.hero{height:380px;background-size:cover;background-position:center;display:flex;flex-direction:column;justify-content:flex-end;padding:40px;box-shadow:inset 0 -120px 200px rgba(0,0,0,0.9);}
.hero h1{font-size:3rem;font-weight:900;margin-bottom:10px;text-shadow:2px 2px 10px black;}
.hero p{max-width:600px;color:#ddd;margin-bottom:15px;}
.hero-btns{display:flex;gap:20px;}
.btn{background:#e50914;border:none;padding:12px 25px;border-radius:4px;color:#fff;font-size:1rem;cursor:pointer;font-weight:700;}
.btn:hover{background:#f40612;}

/* MOVIE ROWS */
.row{margin:40px auto;width:90%;}
.row h2{margin-bottom:15px;}
.row-posters{display:flex;gap:10px;overflow-x:auto;padding-bottom:10px;}
.movie-card{min-width:160px;background:#222;border-radius:8px;overflow:hidden;cursor:pointer;transition:.3s;}
.movie-card:hover{transform:scale(1.10);box-shadow:0 4px 18px rgba(255,0,0,.5);}
.movie-card img{width:100%;height:240px;object-fit:cover;}
.movie-info{padding:8px;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* DETAY POPUP */
#movie-popup{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.85);display:none;align-items:center;justify-content:center;padding:20px;}
.popup-box{background:#111;padding:20px;border-radius:8px;max-width:800px;width:90%;}
.popup-box img{width:100%;border-radius:8px;margin-bottom:15px;}
.close-btn{background:#e50914;padding:8px 15px;border:none;border-radius:4px;cursor:pointer;float:right;margin-top:-10px;}

/* LOGIN MODAL */
#login-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.85);display:none;align-items:center;justify-content:center;}
.modal-box{background:#111;padding:30px;border-radius:8px;width:300px;text-align:center;}
.modal-box input{width:90%;padding:8px;margin:8px 0;border-radius:4px;border:none;background:#222;color:#fff;}
.modal-box button{margin-top:10px;width:95%;padding:10px;background:#e50914;border:none;color:#fff;border-radius:4px;cursor:pointer;font-weight:700;}
.modal-box button:hover{background:#f40612;}
.switch-btn{margin-top:10px;font-size:0.9rem;color:#aaa;cursor:pointer;text-decoration:underline;}
.switch-btn:hover{color:#fff;}
