/* Genel Sayfa Teması */
body {
    background-color: #f5f6f7;
    color: #222;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding: 2rem 1rem;
}

/* Kontroller */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    justify-content: center;
}

select, input[type="text"] {
    padding: 0.6rem 1rem;
    background-color: #fff;
    color: #222;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    min-width: 130px;
}

/* Dropdown Checkbox */
.dropdown-checkbox {
    position: relative;
}

.dropdown-checkbox button {
    background-color: #fff;
    color: #333;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    min-width: 130px;
}

.dropdown-checkbox .dropdown-content {
    display: none;
    position: absolute;
    z-index: 1000;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.6rem;
    top: 110%;
    left: 0;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-checkbox.open .dropdown-content {
    display: block;
}

.dropdown-checkbox .dropdown-content label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 0;
    font-size: 14px;
    color: #222;
}

.dropdown-checkbox .dropdown-content input {
    accent-color: #007bff;
}

/* Kartlar */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.item-card {
    background-color: #fff;
    cursor: pointer;
    border-radius: 10px;
    padding: 1rem;
    width: 200px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
    border: 1px solid #ddd;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.item-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 0.7rem;
    object-fit: contain;
    filter: brightness(1.1);
}

.item-name {
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 14px;
    color: #333;
    min-height: 40px;
}

.price-info {
    font-size: 13px;
    color: #555;
}

/* Spinner */
.spinner {
    animation: spin 1s linear infinite;
    opacity: 0.5;
}

@keyframes spin {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .item-card {
        width: 100%;
        max-width: 320px;
    }
}

/* Footer */
footer {
    background-color: #f5f6f7;
    color: #666;
    text-align: center;
    padding: 1rem 0;
    font-size: 14px;
    border-top: 1px solid #ddd;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.modal-scroll-wrapper {
    max-height: 60vh; /* Sabit yükseklik */
    overflow-y: auto;
    margin-top: 1rem;
}
.modal-title {
    text-align: center;
    font-size: 22px;
    margin-bottom: 20px;
}
.modal-content {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh; /* Sabit yükseklik */
    overflow-y: auto;  /* Scroll içeride olacak */
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Tablolar */
.modal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.modal-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #333;
}

.modal-table th, .modal-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #444;
}

.modal-table th {
    font-weight: bold;
    background-color: #292929;
    color: #fff;
}

/* Şehir bazlı border sol renk */
.city-Caerleon td { border-left: 4px solid #e74c3c !important; }
.city-Bridgewatch td { border-left: 4px solid #f1c40f !important; }
.city-Martlock td { border-left: 4px solid #3498db !important; }
.city-Lymhurst td { border-left: 4px solid #2ecc71 !important; }
.city-Thetford td { border-left: 4px solid #9b59b6 !important; }
.city-FortSterling td { border-left: 4px solid #bdc3c7 !important; }
.city-BlackMarket td { border-left: 4px solid #111 !important; }

/* Kalite bazlı arka plan */
.quality-1 td { background-color: rgba(255,255,255,0.025); }
.quality-2 td { background-color: rgba(102, 255, 102, 0.05); }
.quality-3 td { background-color: rgba(0, 153, 255, 0.05); }
.quality-4 td { background-color: rgba(255, 204, 0, 0.07); }
.quality-5 td { background-color: rgba(255, 0, 153, 0.07); }

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        min-width: 90%;
        padding: 15px;
    }

    .modal-table th, .modal-table td {
        padding: 6px;
        font-size: 12px;
    }
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

.price-table th,
.price-table td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    text-align: center;
}

.price-table th {
    background: #f4f4f4;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 6px;
}

.page-btn {
    padding: 6px 10px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.page-btn:hover {
    background: #ddd;
}

.page-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
.view-button {
    margin-top: 10px;
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    pointer-events: none; /* İşlevsel değil */
    user-select: none;
}
.item-card:hover .view-button {
    background-color: #0056b3;
}
.market-filters {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-row {
    flex-wrap: wrap; /* Mobilde taşarsa satır atlatsın */
    justify-content: center;
    gap: 0.6rem;
}

.market-filters .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
}

.market-filters .filter-row select,
.market-filters .filter-row input[type="text"],
.market-filters .filter-row .dropdown-checkbox button {
    min-width: unset;
    width: auto;
    padding: 0.4rem 0.8rem;
    font-size: 14px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
}
.main-settings {
    background: #f0f6ff;
    border: 2px solid #007bff;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.1);
}

.main-settings select {
    padding: 0.6rem 1rem;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    min-width: 150px;
}


/* Market filtre kısmı zaten daha önce ayarlanmıştı */
