/* ===== GOOGLE FONTS & BOXICONS ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');
@import url('https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css');

/* ===== DEĞİŞKENLER ===== */
:root {
    --header-height: 3.5rem;
    --primary-color: #00d9ff;
    --accent-color: #e900ff;
    --secondary-color: #0a192f;
    --container-color: #112240;
    --text-color: #f0f0f0;
    --text-color-light: rgba(240, 240, 240, 0.7);
    --body-font: 'Poppins', sans-serif;
    --code-font: 'Roboto Mono', monospace;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .813rem;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* ===== TEMEL AYARLAR ===== */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--secondary-color);
    color: var(--text-color);
}

h1,
h2,
h3 {
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== PLEXUS ARKA PLAN STİLİ ===== */
#plexus-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ===== TEKRAR KULLANILABİLİR CSS SINIFLARI ===== */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* ===== HEADER VE NAVİGASYON (KAPSÜL STİLİ) ===== */
.site-header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    background-color: rgba(10, 25, 47, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: var(--z-fixed);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: calc(var(--header-height) + 0.5rem);
    padding: 0 1rem;
}

.site-header .logo {
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: #fff;
    letter-spacing: 1px;
    position: relative;
    padding-left: 30px;
    padding-right: 1rem;
    text-shadow: 0 0 5px var(--primary-color), 0 0 15px var(--primary-color), 0 0 25px var(--accent-color);
    transition: text-shadow 0.3s ease;
}

.site-header .logo:hover {
    text-shadow: 0 0 10px var(--primary-color), 0 0 25px var(--primary-color), 0 0 40px var(--accent-color);
}

.site-header .logo span {
    position: absolute;
    top: -5px;
    right: -15px;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color-light);
    opacity: 0.7;
    transform: rotate(-15deg);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-navigation ul {
    display: flex;
    gap: 2rem;
}

.main-navigation ul li a {
    position: relative;
    font-weight: var(--font-medium);
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: var(--primary-color);
}

.main-navigation ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation ul li a:hover::after {
    width: 100%;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 0.5rem;
}

.auth-links a {
    font-weight: var(--font-medium);
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: var(--primary-color);
}

.auth-links .btn-register {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: var(--font-semi-bold);
    border: none;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
}

.auth-links .btn-register:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.7);
}

.nav-toggle {
    display: none;
    padding-right: 1rem;
}

/* ===== HERO BÖLÜMÜ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
    background: transparent;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: var(--font-bold);
    line-height: 1.1;
    animation: fadeInUp 0.5s ease-out 0.4s;
    animation-fill-mode: both;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-lead {
    font-size: 2.8rem;
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
    font-weight: var(--font-bold);
    line-height: 1.2;
    animation: fadeInUp 0.5s ease-out 0.6s;
    animation-fill-mode: both;
}

.hero-description {
    color: var(--text-color-light);
    line-height: 1.6;
    margin: 1.5rem 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.5s ease-out 0.8s;
    animation-fill-mode: both;
}

.hero .btn-primary {
    animation: fadeInUp 0.5s ease-out 1s;
    animation-fill-mode: both;
}

/* ===== SCROLL DOWN OKU ===== */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color-light);
    border-radius: 60px;
    position: relative;
}

.mouse span {
    width: 6px;
    height: 6px;
    position: absolute;
    top: 10px;
    left: 50%;
    background: var(--text-color-light);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* ===== BÖLÜM ARKA PLANLARI ===== */
.about,
.projects,
.partners {
    background-color: var(--secondary-color);
}

.skills {
    background-color: var(--container-color);
}

/* ===== HAKKIMDA BÖLÜMÜ ===== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    color: var(--text-color-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 0.75rem;
    border: 2px solid var(--container-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ===== YETENEKLER BÖLÜMÜ ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background-color: var(--secondary-color);
    border: 1px solid #1d2d50;
    border-radius: 0.75rem;
    padding: 2rem 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(233, 0, 255, 0.2);
}

.skill-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.skill-name {
    font-family: var(--code-font);
    font-weight: var(--font-medium);
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
}

/* ===== PROJELER BÖLÜMÜ ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--container-color);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.2);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project-card:hover img {
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Kısa Açıklama Kesilmesi (Truncate) */
.project-desc-short {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Sadece 4 satır göster */
    line-clamp: 4;
    /* Standart uyumluluk */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-secondary {
    color: var(--primary-color);
    font-weight: var(--font-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.btn-secondary i {
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: translateX(5px);
}

/* ===== PROJE DETAY MODALI ===== */
.project-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    /* Koyu Yarı Saydam Arka Plan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.project-modal-content {
    background: linear-gradient(135deg, var(--bg-light), rgba(17, 34, 64, 0.98));
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    /* Ekranın %90'ı kadar */
    border-radius: 16px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 217, 255, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Sıçrama (Bouncy) Efekti */
}

.project-modal-overlay.active .project-modal-content {
    transform: translateY(0) scale(1);
}

.project-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color-light);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

.project-modal-close:hover {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
    border-color: rgba(255, 77, 77, 0.2);
    transform: rotate(90deg);
}

.project-modal-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* İçerik taşarsa modal içi kaydırma */
}

.project-modal-body::-webkit-scrollbar {
    width: 6px;
}

.project-modal-body::-webkit-scrollbar-thumb {
    background: var(--bg-lighter);
    border-radius: 10px;
}

@media screen and (min-width: 768px) {
    .project-modal-body {
        flex-direction: row;
    }
}

.project-modal-image {
    width: 100%;
    flex: 0 0 50%;
    /* PC'de %50 yer kapla */
    position: relative;
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 767px) {
    .project-modal-image img {
        max-height: 250px;
    }
}

.project-modal-image .role-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.project-modal-image .role-software {
    background: rgba(0, 217, 255, 0.8);
    color: var(--bg-dark);
}

.project-modal-image .role-game {
    background: rgba(145, 7, 243, 0.8);
    color: #fff;
}

.project-modal-text {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-modal-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    padding-right: 2rem;
    /* Başlık cross ile çarpışmasın diye */
    line-height: 1.3;
}

.project-modal-desc {
    color: var(--text-color-light);
    line-height: 1.8;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Admin kısmında atılan boşluklar için p boşlukları */
.project-modal-desc br {
    content: "";
    display: block;
    margin-bottom: 0.5em;
    /* İki br arasında hafif boşluk */
}

/* ===== ORTAKLARIMIZ BÖLÜMÜ ===== */
.partners {
    background-color: var(--container-color);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 3rem;
    align-items: center;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo img {
    max-width: 140px;
    filter: grayscale(100%) contrast(0.5) brightness(1.5);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.partner-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ===== FOOTER STİLLERİ ===== */
.site-footer {
    background-color: var(--secondary-color);
    border-top: 1px solid #1d2d50;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: var(--h2-font-size);
    font-weight: var(--font-bold);
    color: #fff;
}

.footer-logo span {
    color: var(--text-color-light);
}

.footer-description {
    color: var(--text-color-light);
    line-height: 1.6;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-color-light);
    transition: color .3s ease, padding-left .3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-color-light);
    transition: color .3s ease, transform .3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-copyright {
    text-align: center;
    color: var(--text-color-light);
    border-top: 1px solid #1d2d50;
    padding-top: 2rem;
}

/* ===== GENEL BUTON STİLLERİ ===== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: var(--font-semi-bold);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    border: none;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.6);
}

/* ===== SCROLL REVEAL STİLLERİ ===== */
.reveal {
    position: relative;
    transform: translateY(100px);
    opacity: 0;
    transition: 1s all ease;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* ===== ANİMASYON KEYFRAMES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

/* ===== MOBİL UYUMLULUK (HAMBURGER DÜZELTİLMİŞ) ===== */
@media screen and (max-width: 1100px) {

    /* Masaüstü menü ve butonları gizle */
    .main-navigation,
    .desktop-auth {
        display: none;
    }

    /* HAMBURGER BUTONU (YENİ VE SAĞLAM YAPI) */
    .nav-toggle {
        display: block;
        position: relative;
        /* Konumlandırma için */
        width: 30px;
        height: 24px;
        /* Yüksekliği artırdık */
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        margin-left: auto;
    }

    .nav-toggle span {
        display: block;
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
        left: 3px;
        /* Buton içinde ortalamak için */
    }

    /* Çizgileri konumlandırma */
    .nav-toggle span:nth-child(1) {
        top: 4px;
        /* Üst çizgi */
    }

    .nav-toggle span:nth-child(2) {
        top: 11px;
        /* Orta çizgi */
    }

    .nav-toggle span:nth-child(3) {
        top: 18px;
        /* Alt çizgi */
    }

    /* 'X' ANİMASYONU */
    .nav-toggle.active span:nth-child(1) {
        top: 11px;
        /* Ortaya getir */
        transform: rotate(135deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        left: -30px;
        /* Ekrran dışına at */
    }

    .nav-toggle.active span:nth-child(3) {
        top: 11px;
        /* Ortaya getir */
        transform: rotate(-135deg);
    }

    /* AÇILAN MOBİL MENÜ (Aynı kalıyor) */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--container-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding: 4rem 2rem 2rem;
        transition: right .4s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
    }

    .mobile-nav.show-menu {
        right: 0;
    }

    .mobile-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
        flex-grow: 1;
    }

    .nav-close {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 2rem;
        color: var(--primary-color);
        cursor: pointer;
        background: none;
        border: none;
    }

    .mobile-auth {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        margin-top: auto;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-auth .btn-register,
    .mobile-auth .login-link {
        width: 100%;
        text-align: center;
        padding: 0.6rem;
    }

    /* Diğer mobil ayarlar (Aynı kalıyor) */
    .site-header {
        width: 90%;
    }

    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        max-width: 350px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .site-header {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header .container {
        height: var(--header-height);
        padding: 0 1.5rem;
    }

    :root {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* ===== ABOUT.PHP İÇİN EK STİLLER ===== */
.page-header {
    padding-top: 10rem;
    padding-bottom: 4rem;
    text-align: center;
    background-color: var(--container-color);
}

.page-title {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-top: 0.5rem;
}

.team-member .team-name {
    font-family: var(--body-font);
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
    font-size: 1.1rem;
    margin-top: -0.5rem;
}

.team-member .team-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-family: var(--code-font);
}


/* ===== PROJECTS.PHP İÇİN EK STİLLER ===== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background-color: var(--container-color);
    color: var(--text-color-light);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #1d2d50;
    cursor: pointer;
    font-weight: var(--font-medium);
    transition: all .3s ease;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border-color: transparent;
}

/* Filtreleme için gizleme stili */
.project-card.hide {
    display: none;
}

/* ===== PARTNERS.PHP İÇİN EK STİLLER ===== */
.partners-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.partner-card {
    background-color: var(--container-color);
    border-radius: 0.75rem;
    border: 1px solid #1d2d50;
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.partner-card-logo {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    flex-shrink: 0;
}

.partner-card-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.partner-card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.partner-card-info p {
    font-size: 0.9rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.partner-card-info .btn-secondary i {
    font-size: 1.2rem;
}

/* ===== ABOUT.PHP İÇİN EK STİLLER (EKİP KARTLARI DAHİL) ===== */
/* .page-header stilleri zaten yukarıda var, tekrar etmeye gerek yok */
/* .page-title stilleri zaten yukarıda var */
/* .page-subtitle stilleri zaten yukarıda var */

/* YENİ EKİP KARTLARI STİLİ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--container-color);
    border-radius: 0.75rem;
    overflow: hidden;
    text-align: center;
    border: 1px solid #1d2d50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Kare fotoğraf alanı */
}

.team-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fotoğrafın alanı doldurmasını sağlar */
}

.team-card-info {
    padding: 1.5rem 1rem;
}

.team-name {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-family: var(--code-font);
}

/* ---------- MOBIL NAV VE HAMBURGER İNTEGRASYONU (EK) ---------- */

/* Genel: hamburger butonunu görünür, kontrastlı yap */
.nav-toggle {
    background: transparent;
    border: none;
    display: none;
    /* medya sorgularında gösterilecek */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 6px;
}

/* hamburger çizgiler */
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* aktif hali */
.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* OFF-CANVAS MOBILE NAV (varsayılan kapalı: right:-100%) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--container-color);
    box-shadow: -6px 0 18px rgba(0, 0, 0, 0.35);
    padding: 4.5rem 1.5rem 2rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transition: right .36s cubic-bezier(.2, .9, .2, 1), opacity .2s ease;
    opacity: 0;
    pointer-events: none;
}

/* gösterildiğinde */
.mobile-nav.show-menu {
    right: 0;
    opacity: 1;
    pointer-events: auto;
}

/* kapatma butonu */
.nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.6rem;
    cursor: pointer;
}

/* Menü liste düzeni */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

/* linkler */
.mobile-nav a.nav-link {
    color: var(--text-color-light);
    display: block;
    padding: 0.8rem 0.25rem;
    font-weight: var(--font-medium);
    text-decoration: none;
    border-radius: 8px;
}

.mobile-nav a.nav-link:hover,
.mobile-nav a.nav-link:focus {
    color: var(--primary-color);
    outline: none;
}

/* mobil auth bölümü (butonlar) */
.mobile-auth {
    display: flex !important;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    align-items: stretch;
}

/* login - register stilleri */
.mobile-auth .login-link {
    display: block;
    text-align: center;
    padding: 0.6rem 0.75rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-color-light);
    background: transparent;
}

.mobile-auth .btn-register {
    display: block;
    text-align: center;
    padding: 0.7rem 0.75rem;
    border-radius: 40px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 217, 255, 0.12);
}

/* welcome-user mobilde daha okunaklı */
.mobile-auth .welcome-user {
    color: var(--text-color-light);
    font-weight: var(--font-medium);
    text-align: center;
    padding: 0.35rem 0;
}

/* overlay etkisi (isteğe bağlı): body overflow gizlenince altyapı kaymayı engelle */
html.mobile-nav-open {
    height: 100%;
    overflow: hidden;
}

/* small touch target tweak */
.mobile-nav a,
.mobile-auth a,
.nav-toggle {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Responsive breakpoints - mevcut yapınızı bozmadan hamburger'ı aktif et */
@media screen and (max-width: 920px) {
    .main-navigation {
        display: none !important;
    }

    .desktop-auth {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .site-header {
        width: 92%;
        left: 50%;
        transform: translateX(-50%);
        top: 1rem;
    }
}

/* Daha küçük ekranlarda tam geniş navbar davranışı */
@media screen and (max-width: 768px) {
    .site-header {
        width: 100%;
        left: 0;
        transform: none;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-toggle {
        margin-left: auto;
    }

    /* Eğer eski main-navigation.show-menu kullanıldıysa karışmaması için bu, mobile-nav kullanılacak */
    .main-navigation.show-menu {
        right: -100%;
    }
}

/* erişilebilirlik: aria-hidden eşleştirme için geçiş durumunu destekle */
.mobile-nav[aria-hidden="true"] {
    pointer-events: none;
}

.mobile-nav[aria-hidden="false"] {
    pointer-events: auto;
}

/* mevcut tema ile uyumlu küçük görsel düzeltmeler */
.mobile-nav a.nav-link {
    font-size: 1rem;
}

.mobile-auth .login-link {
    font-weight: var(--font-medium);
}


/* Sağdaki küçük beyaz çubuk (logo yanındaki) */
.logo-bar {
    display: inline-block;
    width: 36px;
    /* çubuğun uzunluğu */
    height: 6px;
    /* çubuğun kalınlığı */
    background: #fff;
    /* beyaz çubuk */
    border-radius: 4px;
    margin-left: 10px;
    opacity: 0.95;
    transform-origin: center;
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.06);
}

.logo-bar:hover,
.logo-bar:focus {
    transform: scale(1.05);
    opacity: 1;
    outline: none;
}

/* Mobilde çubuğu hafif büyüt */
@media screen and (max-width: 920px) {
    .logo-bar {
        width: 46px;
        height: 7px;
        margin-left: 8px;
    }

    .logo-icon {
        display: none;
    }

    /* logo-icon devre dışı bırakıldı */
}

/* ===== CONTACT.PHP İÇİN EK STİLLER (DÜZELTİLMİŞ) ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /* Masaüstünde yan yana */
    gap: 3rem;
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #1d2d50;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-color-light);
    margin-bottom: 2rem;
}

.contact-info ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info ul li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color-light);
}

.contact-info ul li i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--secondary-color);
    border: 1px solid #1d2d50;
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.form-message.error {
    background-color: rgba(255, 77, 77, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* MOBİLDE İLETİŞİM FORMU ALT ALTA GELSİN */
@media screen and (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        /* Sütunları alt alta getir */
    }
}

/* GİRİŞ YAPMIŞ KULLANICI İÇİN HOŞ GELDİN MESAJI (Navbar ile ilgili, burada kalabilir) */
.auth-links .welcome-user {
    color: var(--text-color-light);
    font-weight: 500;
    white-space: nowrap;
}


/* ===== YENİ: AÇILIR KULLANICI MENÜSÜ STİLLERİ ===== */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: none;
    color: var(--text-color-light);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
}

.user-menu-toggle:hover {
    color: var(--text-color);
}

.user-menu-toggle i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.user-menu.active .user-menu-toggle i {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    /* Butonun altında boşluk bırak */
    right: 0;
    width: 200px;
    background-color: var(--container-color);
    border: 1px solid #1d2d50;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color-light);
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.user-dropdown a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* ===== MOBİL UYUMLULUK (Açılır Menü İçin) ===== */
@media screen and (max-width: 1100px) {
    .mobile-auth .user-menu {
        width: 100%;
    }

    .mobile-auth .user-menu-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.6rem 1rem;
        border: 1px solid #1d2d50;
        border-radius: 50px;
    }

    .mobile-auth .user-dropdown {
        position: static;
        /* Statik konumlandırma */
        width: 100%;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        margin-top: 0.5rem;
        /* Açılıp kapanma animasyonu */
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        /* Opaklık animasyonunu kaldır */
        visibility: visible;
        /* Görünürlük animasyonunu kaldır */
        transform: none;
        /* Transform animasyonunu kaldır */
        transition: max-height 0.4s ease-in-out;
    }

    .mobile-auth .user-menu.active .user-dropdown {
        max-height: 200px;
        /* Açıldığında alacağı maksimum yükseklik */
        padding: 0.5rem 0;
    }

    .mobile-auth .user-dropdown a {
        padding-left: 2rem;
        /* İçeriden başlat */
    }
}

/* ===== YENİ: DESTEK MESAJI BİLDİRİM NOKTASI ===== */
.support-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    margin-left: 0.5rem;
}


/* ===== SUPPORT.PHP & MODAL STİLLERİ (DÜZELTİLMİŞ) ===== */

/* Yeni Talep Butonu */
.btn-add-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: var(--normal-font-size);
}

.btn-add-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.2);
}

.btn-add-new i {
    font-size: 1.2rem;
}

/* Modal Pencere */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--bg-lighter, #1d2d50);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal .form-group {
    margin-bottom: 1rem;
}

.modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--bg-lighter, #1d2d50);
    border-radius: 4px;
    color: var(--text-color);
    font-family: var(--body-font);
}

.modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}


/* ===== VIEW_TICKET.PHP İÇİN SOHBET STİLLERİ ===== */
.chat-container {
    background-color: var(--container-color);
    border-radius: 8px;
    border: 1px solid var(--bg-lighter);
    display: flex;
    flex-direction: column;
    height: 70vh;
    /* Ekran yüksekliğinin %70'i */
    max-height: 700px;
}

.message-list {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
}

.message.sent {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-bottom-right-radius: 2px;
}

.message.received {
    align-self: flex-start;
    background-color: var(--bg-lighter);
    border-bottom-left-radius: 2px;
}

.message-sender {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.sent .message-sender {
    color: var(--secondary-color);
    opacity: 0.8;
}

.message.received .message-sender {
    color: var(--text-color-light);
}

.message-content {
    line-height: 1.5;
}

.message-time {
    font-size: 0.7rem;
    align-self: flex-end;
    margin-top: 0.25rem;
    opacity: 0.7;
}

.reply-form {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--bg-lighter);
}

.reply-form textarea {
    flex-grow: 1;
    background-color: var(--bg-dark);
    border: 1px solid var(--bg-lighter);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-color);
    resize: none;
    /* Yeniden boyutlandırmayı engelle */
    font-family: var(--body-font);
    height: 50px;
    transition: height 0.2s;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    height: 80px;
}

.reply-form button {
    background: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-left: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reply-form button:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-color-light);
}

.back-link:hover {
    color: var(--primary-color);
}

/* ===== ADMIN_MESSAGES.PHP İÇİN EK STİLLER ===== */
.messages-section {
    margin-bottom: 3rem;
}

.messages-section .section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bg-lighter);
}

.action-btn.view:hover {
    color: #4CAF50;
    /* Yeşil */
}


/* ===== SUPPORT.PHP İÇİN EK STİLLER (DÜZELTİLMİŞ VE GÜZELLEŞTİRİLMİŞ) ===== */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.ticket-card {
    display: flex;
    flex-wrap: wrap;
    /* Mobilde alt satıra kayması için */
    align-items: center;
    gap: 1rem 1.5rem;
    /* Dikey ve yatay boşluk */
    background-color: var(--container-color);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    /* Link alt çizgisini kaldır */
    color: var(--text-color);
    /* Link rengini düzelt */
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.1);
}

.ticket-subject {
    flex-grow: 1;
    /* Konu başlığının tüm boş alanı kaplamasını sağla */
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    min-width: 250px;
    /* Konu başlığı sıkışmasın */
}

.ticket-subject i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.ticket-status {
    flex-shrink: 0;
    /* Küçülmesin */
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.status-open {
    background-color: rgba(0, 217, 255, 0.2);
    color: var(--primary-color);
}

.status-badge.status-answered {
    background-color: rgba(233, 0, 255, 0.2);
    color: var(--accent-color);
}

.status-badge.status-closed {
    background-color: rgba(240, 240, 240, 0.2);
    color: var(--text-color-light);
}

.ticket-date {
    font-size: 0.9rem;
    color: var(--text-color-light);
    white-space: nowrap;
    /* Tarih alt satıra düşmesin */
}

.ticket-arrow {
    margin-left: auto;
    /* Oku en sağa yasla */
    font-size: 1.5rem;
    color: var(--text-color-light);
    transition: transform 0.3s, color 0.3s;
}

.ticket-card:hover .ticket-arrow {
    transform: translateX(5px);
    color: var(--primary-color);
}

.no-tickets {
    text-align: center;
    color: var(--text-color-light);
    padding: 3rem;
    background-color: var(--container-color);
    border-radius: 8px;
}

/* Support sayfası mobil uyumluluk */
@media screen and (max-width: 768px) {
    .ticket-card {
        flex-direction: column;
        /* Her şeyi alt alta diz */
        align-items: flex-start;
        /* Sola yasla */
    }

    .ticket-arrow {
        display: none;
        /* Mobilde oku gizle */
    }

    .ticket-date {
        width: 100%;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--bg-lighter, #1d2d50);
    }
}

/* ===== PRODUCTS.PHP İÇİN EK STİLLER ===== */
.product-card {
    background-color: var(--container-color);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bg-lighter, #1d2d50);
    position: relative;
    /* İndirim etiketi için */
    max-width: 350px;
    /* Tek kart kaldığında büyümemesi için */
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.2);
}

.product-card img {
    width: 100%;
    aspect-ratio: 16/10;
    /* Veya 4/3 */
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.product-card:hover img {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-info .product-description {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    /* Açıklamanın alanı doldurmasını sağlar */
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Footer'ı kartın altına iter */
    padding-top: 1rem;
    border-top: 1px solid var(--bg-lighter, #1d2d50);
}

/* Fiyat alanı (indirimli/indirimsiz) */
.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 0.9rem;
    color: var(--text-color-light);
    text-decoration: line-through;
    margin-bottom: 0.2rem;
}

.btn-add-cart {
    /* style.css'deki .btn-primary'ye benzer */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: var(--font-semi-bold);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-add-cart:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.5);
}

/* İndirim Etiketi */
.discount-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* ===== PRODUCTS.PHP - FİLTRELEME VE SLIDER STİLLERİ ===== */

.filter-controls {
    background-color: var(--container-color);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 1px solid var(--bg-lighter, #1d2d50);
    display: grid;
    grid-template-columns: 1fr auto;
    /* Arama | Fiyat Slider */
    gap: 2rem;
    align-items: center;
}

.search-filter .form-group {
    margin-bottom: 0;
    /* İçindeki form-group'un alt boşluğunu sıfırla */
}

.search-filter input[type="search"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--secondary-color);
    border: 1px solid #1d2d50;
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
}

.search-filter input[type="search"]:focus {
    /* Odaklanma stili ekleyelim */
    outline: none;
    border-color: var(--primary-color);
}


.price-filter {
    min-width: 300px;
    /* Slider'ın çok sıkışmasını önle */
}

.price-filter label {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--text-color-light);
    font-size: 0.9rem;
    text-align: center;
}

.price-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 0.75rem;
    font-weight: 500;
}

/* noUiSlider Tema Ayarları (Mevcut temaya uygun) */
.noUi-target {
    background: var(--secondary-color);
    border: 1px solid var(--bg-lighter, #1d2d50);
    border-radius: 4px;
    box-shadow: none;
    height: 6px;
    /* Slider çubuğunu biraz kalınlaştıralım */
}

.noUi-connect {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 6px;
}

.noUi-handle {
    border: none;
    border-radius: 50%;
    background: var(--text-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    /* Hafif gölge */
    cursor: pointer;
    width: 18px;
    height: 18px;
    top: -6px;
    /* Çubuğun ortasına gelsin */
    right: -9px;
    /* Ucundan başlasın */
}

.noUi-handle:focus {
    /* Odaklanma stili */
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
    /* İçindeki çizgileri kaldır */
}

/* --- Ürün Bulunamadı Mesajı --- */
.no-products-found {
    text-align: center;
    color: var(--text-color-light);
    padding: 3rem;
    background-color: var(--container-color);
    border-radius: 8px;
    display: none;
    /* JavaScript ile kontrol edilecek */
    width: 100%;
    grid-column: 1 / -1;
    /* Eğer grid içindeyse tam genişlik kaplar */
}

/* Grid'de hiç ürün kalmadığında bu mesaj görünür */
.projects-grid:not(:has(.product-card[style*="display: flex"])) .no-products-found {
    display: block;
}


/* --- Mobil Uyumluluk --- */
@media screen and (max-width: 768px) {
    .filter-controls {
        grid-template-columns: 1fr;
        /* Filtreleri alt alta getir */
    }

    .price-filter {
        min-width: unset;
        /* Minimum genişliği kaldır */
    }
}


/* ===== VIEW_PRODUCT.PHP - ÜRÜN DETAY SAYFASI STİLLERİ ===== */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* Resim | Bilgiler */
    gap: 3rem;
    align-items: flex-start;
    /* İçerikleri yukarı yasla */
}

/* Ana resim */
.main-product-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 1rem;
    aspect-ratio: 16 / 10;
    /* En boy oranı */
    object-fit: cover;
    /* Resmi alana sığdır */
}

/* Thumbnail Galerisi */
.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    /* Gerekirse alt satıra geçsin */
}

.product-thumbnails img {
    width: 80px;
    /* Thumbnail genişliği */
    height: 60px;
    /* Thumbnail yüksekliği */
    object-fit: cover;
    /* Resmi alana sığdır */
    border-radius: 4px;
    border: 2px solid transparent;
    /* Kenarlık şeffaf başlasın */
    cursor: pointer;
    /* Tıklanabilir hissi versin */
    opacity: 0.7;
    transition: opacity 0.3s, border-color 0.3s;
}

.product-thumbnails img:hover {
    opacity: 1;
    border-color: var(--text-color-light);
    /* Üzerine gelince kenarlık */
}

.product-thumbnails img.active-thumb {
    opacity: 1;
    border-color: var(--primary-color);
    /* Aktif thumbnail kenarlığı */
}

/* Ürün Detayları Sağ Sütun */
.product-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-details .product-description {
    color: var(--text-color-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.product-details .price-section {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Küçük ekranlarda alt alta gelmesi için */
    gap: 1rem;
}

/* Fiyat stilleri (products.php'den kopyalandı/uyarlandı) */
/* .price-container, .product-price, .original-price stilleri zaten yukarıda var */
.discount-badge-detail {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Sepete Ekle Butonu (products.php'den kopyalandı/uyarlandı) */
/* .btn-add-cart stili zaten yukarıda var */


/* --- Diğer Ürünler --- */
.related-products-section {
    padding-top: 4rem;
    border-top: 1px solid var(--bg-lighter, #1d2d50);
    margin-top: 4rem;
}

/* Diğer ürünler başlığı için (view_product içinde section-subtitle kullandık) */
.related-products-section .section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
    /* After elementi için */
}

.related-products-section .section-subtitle::after {
    /* Başlığa alt çizgi ekleyelim */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}


/* --- Yorumlar Bölümü --- */
.reviews-section {
    padding-top: 4rem;
    border-top: 1px solid var(--bg-lighter, #1d2d50);
    margin-top: 4rem;
}

/* Yorumlar başlığı için (view_product içinde section-subtitle kullandık) */
.reviews-section .section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.reviews-section .section-subtitle::after {
    /* Başlığa alt çizgi ekleyelim */
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.reviews-summary {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.average-rating {
    text-align: center;
}

.average-rating .score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.average-rating .stars {
    font-size: 1.2rem;
    color: #ffc107;
    margin: 0.5rem 0;
}

.average-rating .count {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.rating-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rating-breakdown li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.rating-breakdown .bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-breakdown .bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
    /* Bar animasyonu */
}

.rating-breakdown .star-label {
    white-space: nowrap;
    width: 50px;
    /* Sabit genişlik */
}

.rating-breakdown .percentage {
    font-weight: 500;
    color: var(--text-color);
    min-width: 35px;
    text-align: right;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    display: flex;
    gap: 1.5rem;
}

.review-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-content {
    flex-grow: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author {
    font-weight: 600;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.review-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-comment {
    color: var(--text-color-light);
    line-height: 1.6;
    word-wrap: break-word;
}

/* Taşan kelimeleri böl */

.review-form {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
}

.review-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Star rating input */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 1.8rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 0.2rem;
}

.rating-input input[type="radio"]:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: #ffc107;
}

/* Yıldız rengi */

/* Form stilleri (style.css'de zaten benzerleri var, uyumlu hale getirildi) */
.review-form .form-group {
    margin-bottom: 1.5rem;
}

.review-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.review-form .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--secondary-color);
    border: 1px solid #1d2d50;
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
}

.review-form .form-group textarea:focus {
    /* Odaklanma stili */
    outline: none;
    border-color: var(--primary-color);
}


/* --- Mobil Uyumluluk --- */
@media screen and (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    /* Detaylar alta gelsin */
    .reviews-summary {
        grid-template-columns: 1fr;
    }

    /* Özet alta gelsin */
}

@media screen and (max-width: 576px) {
    .review-card {
        flex-direction: column;
        gap: 1rem;
    }

    /* Yorumlarda avatar üste gelsin */
    .product-details h1 {
        font-size: 2rem;
    }

    /* Başlık küçülsün */
    .average-rating .score {
        font-size: 2.5rem;
    }
}




/* ===== VIEW_PRODUCT.PHP - ÜRÜN DETAY SAYFASI STİLLERİ ===== */

.product-detail-grid {
    display: grid;
    /* Görseldeki gibi sola daha dar bir alan ayıralım */
    grid-template-columns: 0.8fr 1.2fr;
    /* Resim | Bilgiler (Oranları ayarla) */
    gap: 3rem;
    align-items: flex-start;
    background-color: var(--container-color);
    /* Ana grid'e arka plan verelim */
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 3rem;
    /* Grid ile sonraki bölüm arasına boşluk */
}

/* Ana resim */
.main-product-image {
    width: 100%;
    border-radius: 8px;
    /* Gölgeyi kaldıralım, grid zaten kutu içinde */
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.2); */
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 1rem;
    aspect-ratio: 4 / 3;
    /* Görseldeki orana daha yakın */
    object-fit: cover;
}

/* Thumbnail Galerisi */
.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-thumbnails img {
    width: 70px;
    /* Biraz daha küçük */
    height: 52px;
    /* Orantılı */
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    /* Daha soluk başlasın */
    transition: opacity 0.3s, border-color 0.3s;
}

.product-thumbnails img:hover {
    opacity: 1;
    border-color: var(--text-color-light);
}

.product-thumbnails img.active-thumb {
    opacity: 1;
    border-color: var(--primary-color);
}

/* Ürün Detayları Sağ Sütun */
.product-details h1 {
    font-size: 2.2rem;
    /* Biraz küçültelim */
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-details .product-description {
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    /* Boşluğu azaltalım */
    font-size: 0.95rem;
    /* Biraz küçültelim */
}

/* Fiyat Bölümü (Görseldeki gibi koyu bar) */
.product-details .price-section {
    background-color: var(--secondary-color);
    /* Koyu arka plan */
    padding: 1rem 1.5rem;
    /* Daha ince bar */
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 1.5rem;
    /* Butonla arasına boşluk */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

/* Yan yana getir */
.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--text-color-light);
    text-decoration: line-through;
}

.discount-badge-detail {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
    /* İndirim etiketini sağa yasla */
}

/* Sepete Ekle Butonu (Görseldeki gibi) */
.product-details .btn-add-cart {
    /* .product-details ekleyerek özgüllüğü artır */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 0.7rem 1.8rem;
    /* Biraz daha yassı ve geniş */
    border-radius: 50px;
    font-weight: var(--font-semi-bold);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
    font-size: 1rem;
    cursor: pointer;
}

.product-details .btn-add-cart:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.5);
}

/* --- Diğer Ürünler --- */
.related-products-section {
    padding-top: 3rem;
    margin-top: 3rem;
    /* Boşlukları ayarla */
    border-top: 1px solid var(--bg-lighter, #1d2d50);
}

.related-products-section .section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.related-products-section .section-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Diğer ürünler için .projects-grid ve .product-card stilleri products.php'den gelmeli (max-width dahil!) */

/* --- Yorumlar Bölümü --- */
.reviews-section {
    padding-top: 3rem;
    margin-top: 3rem;
    /* Boşlukları ayarla */
    border-top: 1px solid var(--bg-lighter, #1d2d50);
}

.reviews-section .section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.reviews-section .section-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.reviews-summary {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
}

.average-rating {
    text-align: center;
}

.average-rating .score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.average-rating .stars {
    font-size: 1.2rem;
    color: #ffc107;
    margin: 0.5rem 0;
}

.average-rating .count {
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.rating-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rating-breakdown li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

.rating-breakdown .bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
}

.rating-breakdown .bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.rating-breakdown .star-label {
    white-space: nowrap;
    width: 50px;
}

.rating-breakdown .percentage {
    font-weight: 500;
    color: var(--text-color);
    min-width: 35px;
    text-align: right;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    display: flex;
    gap: 1.5rem;
}

.review-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-content {
    flex-grow: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.review-author {
    font-weight: 600;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-color-light);
}

.review-stars {
    color: #ffc107;
    font-size: 0.9rem;
}

.review-comment {
    color: var(--text-color-light);
    line-height: 1.6;
    word-wrap: break-word;
}

.review-form {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
}

.review-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 1.8rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: color 0.2s;
    padding: 0 0.2rem;
}

.rating-input input[type="radio"]:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
    color: #ffc107;
}

/* Yorum formu stilleri (style.css'den alınmalı) */
.review-form .form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--secondary-color);
    border: 1px solid #1d2d50;
    border-radius: 0.5rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
}

.review-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- Mobil Uyumluluk --- */
@media screen and (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .review-card {
        flex-direction: column;
        gap: 1rem;
    }

    .product-details h1 {
        font-size: 2rem;
    }

    .average-rating .score {
        font-size: 2.5rem;
    }
}

/* ===== VIEW_PRODUCT.PHP - ÜRÜN DETAY SAYFASI STİLLERİ (Dikey Galeri) ===== */

.product-detail-grid {
    display: grid;
    /* Dikey thumbnails için sol sütunu daralt, ana resim/bilgi sağda */
    grid-template-columns: auto 1fr;
    /* Thumbnails (otomatik genişlik) | Ana Resim + Bilgiler */
    gap: 1.5rem;
    /* Sütunlar arası boşluk */
    align-items: flex-start;
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 3rem;
}

/* Sol Sütun: Thumbnails (Dikey) */
.product-thumbnails-vertical {
    display: flex;
    flex-direction: column;
    /* Dikey sıralama */
    gap: 0.75rem;
    /* İsteğe bağlı: Çok fazla resim olursa scroll */
    /* max-height: 450px; */
    /* overflow-y: auto; */
}

.product-thumbnails-vertical img {
    width: 65px;
    /* Thumbnail genişliği */
    height: 50px;
    /* Thumbnail yüksekliği */
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    /* Kenarlık şeffaf başlasın */
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
}

.product-thumbnails-vertical img:hover {
    opacity: 1;
    border-color: var(--text-color-light);
}

.product-thumbnails-vertical img.active-thumb {
    opacity: 1;
    border-color: var(--primary-color);
    /* Aktif thumbnail */
}

/* Sağ Sütun: Ana Resim ve Bilgiler */
.product-main-content {
    /* Bu div ana resim ve detayları içerir */
}

.main-product-image-container {
    /* Ana resmin etrafındaki div (isteğe bağlı) */
    margin-bottom: 1.5rem;
    /* Resimle detaylar arasına boşluk */
}

.main-product-image {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    aspect-ratio: 4 / 3;
    /* En boy oranı */
    object-fit: cover;
}

/* Ürün Detayları (Sağ sütunun alt kısmı) */
.product-details h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-details .product-description {
    color: var(--text-color-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.product-details .price-section {
    background-color: var(--secondary-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.product-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--text-color-light);
    text-decoration: line-through;
}

.discount-badge-detail {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: auto;
}

/* Sepet Formu ve Miktar */
.add-to-cart-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.add-to-cart-form .form-group {
    margin-bottom: 0;
    width: 80px;
}

.add-to-cart-form input[type="number"] {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    text-align: center;
    border-radius: 4px;
    border: 1px solid var(--bg-lighter, #1d2d50);
    background-color: var(--secondary-color);
    color: var(--text-color);
    width: 100%;
}

.add-to-cart-form input[type="number"]::-webkit-outer-spin-button,
.add-to-cart-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-form input[type="number"] {
    -moz-appearance: textfield;
}

/* Sepete Ekle Butonu (.btn-add-cart stili ana style.css'den gelmeli) */
.product-details .btn-add-cart {
    padding: 0.7rem 1.8rem;
    font-size: 1rem;
}

/* --- Diğer Ürünler ve Yorumlar --- */
/* Bu bölümlerin stilleri önceki CSS kodunda mevcut ve doğru olmalı */
.related-products-section,
.reviews-section {
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--bg-lighter, #1d2d50);
}

.related-products-section .section-subtitle,
.reviews-section .section-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.related-products-section .section-subtitle::after,
.reviews-section .section-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* .cards-wrapper, .reviews-summary, .review-list, .review-form vb. stiller önceki CSS'de tanımlı olmalı */


/* --- Mobil Uyumluluk (Dikey Galeri için Güncellendi) --- */
@media screen and (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        /* Tek sütun */
    }

    /* Thumbnails'ı ana resmin altına al ve yatay yap */
    .product-thumbnails-vertical {
        order: 2;
        /* Ana resimden sonra */
        flex-direction: row;
        /* Yatay */
        margin-top: 1rem;
        /* Scroll veya max-height gerekmez */
    }

    .product-main-content {
        /* Ana resim + detaylar */
        order: 1;
        /* İlk sırada */
    }

    /* Geri dön linkini en sona al */
    .back-link {
        order: 3;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .product-thumbnails-vertical img {
        width: 60px;
        height: 45px;
    }

    /* Mobilde daha küçük */
    .review-card {
        flex-direction: column;
        gap: 1rem;
    }

    .product-details h1 {
        font-size: 1.8rem;
    }

    .average-rating .score {
        font-size: 2.5rem;
    }
}

/* ===== VIEW_PRODUCT.PHP - DÜZENLEMELER ===== */

/* 1. Dikey Thumbnail Galerisi Düzeltmesi */
.product-thumbnails-vertical img {
    width: 70px;
    /* Genişliği biraz artırabiliriz */
    height: 55px;
    /* Yüksekliği orantılı yapalım */
    object-fit: cover;
    /* Bu zaten vardı ama önemli */
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border-color 0.3s;
}

/* Aktif thumbnail kenarlığı (Değişiklik yok, ama burada dursun) */
.product-thumbnails-vertical img.active-thumb {
    opacity: 1;
    border-color: var(--primary-color);
}


/* 2. Benzer Ürünler Bölümü Stil Düzeltmeleri */

/* Kartları yan yana dizmek için grid yapısı */
.related-products-section .cards-wrapper {
    display: grid;
    /* En az 200px genişliğinde kartlar, sığdığı kadar yan yana */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    /* Kartlar arası boşluk */
    justify-content: center;
    /* Tek kart kalırsa ortala */
}

/* Benzer ürünler bölümündeki kartların genel stili */
.related-products-section .product-card {
    background-color: var(--container-color);
    /* Ana liste ile aynı arka plan */
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    /* Hafif gölge */
    border: 1px solid var(--bg-lighter, #1d2d50);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    /* İçeriği dikey yönetmek için */
    flex-direction: column;
    /* İçerik alt alta */
    text-align: center;
    /* İçeriği ortala */
    padding-bottom: 1rem;
    /* Buton için altta boşluk */
    max-width: none;
    /* Üstteki max-width'i ezelim */
}

.related-products-section .product-card:hover {
    transform: translateY(-5px);
    /* Hafif yukarı kalkma efekti */
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
    /* Vurgu efekti */
}

/* Benzer ürün kartı resmi */
.related-products-section .product-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* Resim oranını ayarla */
    object-fit: cover;
    margin-bottom: 0.75rem;
    /* Resimle başlık arası boşluk */
}

/* Benzer ürün kartı başlığı (h5) */
.related-products-section h5 {
    font-size: 1rem;
    /* Biraz daha küçük başlık */
    font-weight: var(--font-medium);
    margin-bottom: 0.5rem;
    /* Başlıkla fiyat arası boşluk */
    padding: 0 1rem;
    /* Kenarlardan boşluk */
}

.related-products-section h5 a {
    /* Başlık linki */
    color: var(--text-color);
    text-decoration: none;
}

.related-products-section h5 a:hover {
    color: var(--primary-color);
}

/* Benzer ürün kartı fiyat alanı */
.related-products-section .price-container {
    display: flex;
    justify-content: center;
    /* Fiyatı ortala */
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    /* Fiyatla buton arası boşluk */
    padding: 0 1rem;
    /* Kenarlardan boşluk */
}

.related-products-section .product-price {
    font-size: 1.1rem;
    /* Biraz daha küçük fiyat */
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
}

.related-products-section .original-price {
    font-size: 0.8rem;
    /* Daha küçük üstü çizili fiyat */
    color: var(--text-color-light);
    text-decoration: line-through;
}

/* Benzer ürün kartı butonu (İncele) */
.related-products-section .btn-sm.btn-secondary {
    display: inline-block;
    /* Butonun kendi genişliği kadar yer kaplaması için */
    margin: 0 auto;
    /* Butonu ortala */
    color: var(--primary-color);
    font-weight: var(--font-medium);
    padding: 0.4rem 1rem;
    /* Daha küçük buton */
    border: 1px solid var(--primary-color);
    /* Kenarlık ekleyelim */
    border-radius: 50px;
    /* Yuvarlak kenar */
    font-size: 0.85rem;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
}

.related-products-section .btn-sm.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    /* Hover rengi */
}