:root {
    --bg-dark: #1A1A1A;
    --card-bg: #242424;
    --input-bg: #121212;
    --btn-grey-hover: #333333;
    --brand-green: #006400;
    --active-green: #013220;
    --border-grey: #555555;
    --border-light-grey: #aaaaaa;
    --text-main: #ffffff;
    --text-muted: #888888;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.site-header { width: 100%; padding-top: 15px; }
.header-top { display: flex; align-items: center; margin-bottom: 12px; }
.brand-container { display: flex; align-items: center; gap: 12px; margin-left: 350px; }
.logo-img { width: 38px; height: 38px; filter: brightness(0) invert(1); }
.logo-text { font-size: 32px; font-weight: 800; color: #ffffff; line-height: 1; }
.nav-menu { display: flex; gap: 8px; margin-left: 30px; }

.nav-btn {
    background-color: transparent; border: 2px solid var(--border-grey);
    color: #ffffff; padding: 8px 22px; font-size: 14px; font-weight: 600;
    cursor: pointer; transform: skewX(-20deg); transition: background-color 0.15s, border-color 0.15s;
}
.nav-btn span { display: inline-block; transform: skewX(20deg); }
.nav-btn:hover { background-color: var(--btn-grey-hover); border-color: var(--border-light-grey); }
.nav-btn.active, .nav-btn:active { background-color: var(--active-green); border-color: var(--brand-green); }

.user-menu { margin-left: 700px; }
.user-btn {
    display: flex; align-items: center; gap: 8px;
    background-color: transparent; border: 2px solid var(--border-grey);
    color: #ffffff; padding: 8px 18px; font-size: 14px; font-weight: 600;
    cursor: pointer; transform: skewX(-20deg); transition: background-color 0.15s, border-color 0.15s;
}
.user-btn span, .user-btn svg { transform: skewX(20deg); }
.user-icon { width: 18px; height: 18px; }
.user-btn:hover { background-color: var(--btn-grey-hover); border-color: var(--border-light-grey); }
.green-line { width: 100%; height: 3px; background-color: var(--brand-green); }

#app { max-width: 1000px; margin: 30px auto; padding: 0 20px; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.hidden { display: none !important; }

/* Bilgilendirme Kutusu */
.disclaimer-card {
    background-color: var(--card-bg); border: 2px solid var(--brand-green);
    padding: 40px; border-radius: 4px; min-height: 450px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.disclaimer-card h2 { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 25px; border-bottom: 1px solid #333333; padding-bottom: 12px; }
.disclaimer-text { font-size: 14px; line-height: 1.8; color: #cccccc; margin-bottom: 25px; }
.disclaimer-text p { margin-bottom: 14px; }
.disclaimer-text .highlight { color: #2ea055; font-weight: 700; }
.disclaimer-text .warning { color: #d9534f; font-weight: 700; text-decoration: underline; }
.disclaimer-subtext { font-size: 12px; color: var(--text-muted); font-style: italic; margin-top: 15px; }

.terms-option { margin-bottom: 25px; }
.custom-checkbox { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-size: 14px; font-weight: 600; }
.custom-checkbox input { display: none; }
.checkmark { width: 20px; height: 20px; border: 2px solid var(--border-grey); background-color: var(--input-bg); display: inline-block; transition: border-color 0.2s, background-color 0.2s; }
.custom-checkbox input:checked + .checkmark { background-color: var(--brand-green); border-color: #008000; position: relative; }
.custom-checkbox input:checked + .checkmark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #ffffff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.continue-btn {
    display: block; width: fit-content; min-width: 220px; margin: 10px auto 0 auto;
    padding: 12px 35px; font-size: 15px; font-weight: 700; border-radius: 0;
    transition: background-color 0.2s, color 0.2s; text-align: center; box-shadow: none !important;
}
.continue-btn:disabled { background-color: #0a2012; border: 1px solid #14331c; color: #555555; cursor: not-allowed; }
.continue-btn:not(:disabled) { background-color: #006400; border: 1px solid #008000; color: #cccccc; cursor: pointer; }
.continue-btn:not(:disabled):hover { background-color: #007a00; color: #ffffff; }

/* Fotoğraf Yükleme Izgarası */
.photo-upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
.photo-box { display: flex; flex-direction: column; gap: 8px; }
.photo-box label { font-size: 13px; color: var(--text-muted); }
.photo-box input[type="file"] { display: none; }
.img-preview {
    width: 100%; height: 130px; background-color: var(--input-bg);
    border: 2px dashed var(--border-grey); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; overflow: hidden; position: relative; transition: border-color 0.2s;
}
.img-preview:hover { border-color: var(--brand-green); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview span { font-size: 12px; color: var(--text-muted); }

/* Formlar */
.form-card { background-color: var(--card-bg); border: 1px solid #333333; padding: 30px; border-radius: 8px; }
.form-card h2 { margin-bottom: 20px; font-size: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; background-color: var(--input-bg);
    border: 1px solid var(--border-grey); color: #ffffff; border-radius: 4px; font-size: 14px; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand-green); }
.radio-group { display: flex; gap: 20px; margin-top: 5px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }

.submit-btn {
    width: 100%; background-color: transparent; border: 2px solid var(--brand-green);
    color: #ffffff; padding: 12px; font-size: 15px; font-weight: 700;
    cursor: pointer; transform: skewX(-10deg); transition: background-color 0.2s; margin-top: 10px;
}
.submit-btn span { display: inline-block; transform: skewX(10deg); }
.submit-btn:hover { background-color: var(--active-green); }

/* --- OYUN KATEGORİ SEÇİM EKRANI --- */
.category-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px; 
    margin-top: 20px;
}

.category-card {
    background-color: var(--card-bg); 
    border: 2px solid #333333;
    border-radius: 10px; 
    overflow: hidden; 
    cursor: pointer;
    position: relative;
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5deg); 
    border-color: var(--brand-green);
    background-color: #2a2a2a;
}

/* Afiş Görsel Alanı */
.cat-banner-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.cat-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

/* Alta Doğru Yok Olma (Gradient Fade) Efekti */
.cat-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(36, 36, 36, 0) 0%, rgba(36, 36, 36, 1) 100%);
}

/* Yazı İçeriği */
.cat-card-content {
    padding: 12px 15px 20px 15px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin-top: -15px;
}

.cat-card-content h3 { 
    font-size: 18px; 
    font-weight: 800; 
    margin-bottom: 4px; 
    color: #ffffff;
}

.cat-count { 
    font-size: 12px; 
    color: #2ea055; 
    font-weight: 600; 
}

/* --- İLANLAR SAYFASI DÜZENİ (SIDEBAR + IZGARA) --- */
.listings-view-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.back-btn {
    background-color: transparent; border: 1px solid var(--border-grey);
    color: #ffffff; padding: 8px 14px; font-size: 13px; font-weight: 600;
    cursor: pointer; border-radius: 4px; transition: background-color 0.2s;
}
.back-btn:hover { background-color: var(--btn-grey-hover); border-color: var(--border-light-grey); }

.listings-layout { display: flex; gap: 25px; align-items: flex-start; }

/* Sol Yan Menü */
.sidebar-filter {
    width: 200px; flex-shrink: 0; background-color: var(--card-bg);
    border: 1px solid #333333; padding: 18px; border-radius: 6px;
}
.sidebar-filter h4 { font-size: 14px; margin-bottom: 12px; color: var(--text-muted); border-bottom: 1px solid #333; padding-bottom: 6px; }
.filter-list { list-style: none; }
.filter-item {
    padding: 9px 12px; font-size: 13px; font-weight: 600;
    cursor: pointer; border-radius: 4px; margin-bottom: 4px;
    transition: background-color 0.15s, color 0.15s;
}
.filter-item:hover { background-color: #333333; }
.filter-item.active { background-color: var(--brand-green); color: #ffffff; }

/* Sağ Taraf İlan Pankartları (Küçültülmüş Boyut) */
.listings-container { flex-grow: 1; }
.listings-grid-small {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
}

.listing-card-small {
    background-color: var(--card-bg); border: 1px solid #333333;
    border-radius: 6px; overflow: hidden; cursor: pointer;
    transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column;
}
.listing-card-small:hover { transform: translateY(-3px); border-color: var(--brand-green); }
.card-cover-img-small { width: 100%; height: 110px; object-fit: cover; background-color: #121212; }
.card-body-small { padding: 10px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.card-tag-small { align-self: flex-start; background-color: var(--active-green); border: 1px solid var(--brand-green); color: #ffffff; font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-bottom: 6px; }
.card-title-small { font-size: 13px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer-small { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #333333; padding-top: 8px; }
.card-price-small { font-size: 15px; font-weight: 800; color: #2ea055; }

.placeholder-text { color: var(--text-muted); font-size: 14px; margin-top: 20px; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid #333333;
    width: 90%;
    max-width: 850px;
    padding: 24px;
    border-radius: 8px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.close-btn:hover {
    color: #ffffff;
}

.modal-grid-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

/* Sol Kolon: Görseller, Başlık, Özellikler */
.modal-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.main-photo {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #333333;
    background-color: var(--input-bg);
}

.sub-photos {
    display: flex;
    gap: 10px;
}

.sub-photos img {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid var(--border-grey);
    transition: border-color 0.15s, opacity 0.15s;
}

.sub-photos img:hover {
    border-color: var(--brand-green);
    opacity: 0.85;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

.modal-details-list {
    background-color: var(--input-bg);
    padding: 16px;
    border-radius: 6px;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #2a2a2a;
}

.modal-details-list div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #222222;
    padding-bottom: 6px;
    color: #cccccc;
}

.modal-details-list div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-details-list strong {
    color: var(--text-main);
}

/* Sağ Kolon: Satıcı Bilgisi, Fiyat ve Eylemler */
.modal-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background-color: #1c1c1c;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #333333;
    height: fit-content;
}

.seller-card {
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 14px;
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-avatar {
    width: 44px;
    height: 44px;
    background-color: var(--active-green);
    border: 1px solid var(--brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.seller-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.seller-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.seller-badge {
    font-size: 12px;
    color: #2ea055;
    font-weight: 600;
}

.modal-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--input-bg);
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid #282828;
}

.price-label {
    color: var(--text-muted);
    font-size: 13px;
}

.modal-price {
    font-size: 20px;
    font-weight: 800;
    color: #2ea055;
}

/* Butonlar */
.modal-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    flex: 1;
    padding: 11px 8px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    border: none;
    text-align: center;
}

.msg-btn {
    background-color: var(--brand-green);
    border: 1px solid #008000;
    color: #ffffff;
}

.msg-btn:hover {
    background-color: #007a00;
}

.offer-btn {
    background-color: var(--input-bg);
    color: #ffffff;
    border: 1px solid var(--border-grey);
}

.offer-btn:hover {
    background-color: var(--btn-grey-hover);
    border-color: var(--border-light-grey);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .modal-grid-layout {
        grid-template-columns: 1fr;
    }
}