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

/* GENEL STİL */
body {
    font-family: "Segoe UI", sans-serif;
    background: #000;
    color: #fff;
}

/* NAVBAR GENEL (Desktop) */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 20, 20, 0.95);
    padding: 15px 25px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 1.5em;
    font-weight: bold;
}

.navbar .navbar-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

/* NAV MENÜ - Desktop */
.navbar .nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.navbar .nav-links li a {
    position: relative;
    text-decoration: none;
    color: #ddd;
    font-weight: 500;
    font-size: 1.05em;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* Altın hover çizgisi */
.navbar .nav-links li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: scaleX(0);
    transform-origin: center;
    transition: .3s;
}

.navbar .nav-links li a:hover::after {
    transform: scaleX(1);
}

/* Hamburger ikon (mobilde) */
.hamburger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
}

/* Sağdan açılan mobil menü */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px; /* kapalı iken sağda */
    width: 260px;
    height: 100%;
    background: rgba(15, 15, 15, 0.98);
    overflow-x: hidden;
    transition: right 0.4s ease;
    z-index: 2000;
    padding-top: 80px;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    padding: 12px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    color: #ddd;
    display: block;
    transition: 0.2s;
}

.mobile-menu a:hover {
    color: #FFD700;
}

.mobile-menu .closebtn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: #fff;
}

/* CONTENT */
.product-container {
    text-align: center;
    padding: 40px 0 60px;
    max-width: 900px;
    margin: 0 auto;
}

/* SLIDER */
.swiper {
    width: 100%;
    height: 60vh;
    border-radius: 12px;
    margin: 0 auto 25px;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* SLIDER BUTTONS */
.swiper-button-next,
.swiper-button-prev {
    color: #ffcc00;
}

.swiper-pagination-bullet {
    background: #ffcc00;
}

/* TEXT */
.product-title {
    font-size: 30px;
    color: #FFD700;
    text-transform: capitalize;
    margin-top: 10px;
    text-align: center;
}

.product-desc {
    font-size: 17px;
    opacity: .85;
    width: 80%;
    margin: 10px auto 25px;
    line-height: 1.6;
    text-align: center;
}

/* BUTTONS */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
}

.edit {
    background: #ffcc00;
    color: #000;
}

.edit:hover {
    background: #e6b300;
}

.delete {
    background: #c62828;
    color: #fff;
}

.delete:hover {
    background: #b71c1c;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
}

.modal-box {
    background:#111;
    padding: 28px;
    border-radius: 10px;
    width: 350px;
    border:1px solid #444;
}

.modal-buttons {
    display:flex; 
    gap:12px; 
    justify-content:center; 
    margin-top:15px;
}

.danger {
    background:#c62828 !important;
}

.secondary {
    background:#555 !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    /* Navbar */
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        padding: 12px 16px;
    }

    .navbar .logo {
        font-size: 1.2em;
    }

    .navbar .navbar-logo {
        width: 48px;
        height: 48px;
    }

    /* Content */
    .product-container {
        padding: 25px 10px 40px;
    }

    .product-desc {
        width: 90%;
    }

    .swiper {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1em;
    }

    .navbar .navbar-logo {
        width: 42px;
        height: 42px;
    }

    .swiper {
        height: 320px;
    }

    .product-desc {
        width: 95%;
        font-size: 15px;
    }
}
