/* arayislar/css/arayis-style.css - Arayışlar modülü CSS dosyası */

/* ===========================
   GLOBAL STYLES
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgb(201, 201, 201);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===========================
   HEADER STYLES
=========================== */
.header {
    background: linear-gradient(135deg, #910303 0%, #390505 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.kwc_header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kwc_logo {
  width: 200px;
  margin-right: 20px;
  margin-top: 10px;
}

.kwc_title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
}

.user-photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

#userName {
    font-weight: 600;
    color: #ffffff;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ===========================
   LOADING SCREEN
=========================== */
.app-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 18px;
    font-weight: 500;
}

/* ===========================
   MAIN CONTAINER
=========================== */
.main-container {
    display: flex;
    min-height: calc(100vh - 80px);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   SIDEBAR STYLES
=========================== */
.sidebar {
    width: 300px;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.search-section h3,
.filters h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filters {
    margin-top: 30px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox styles */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    color: #667eea;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkmark-text {
    user-select: none;
}

/* District checkboxes */
.district-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.no-districts {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 10px;
}

/* Budget range - Updated to vertical layout */
.budget-range {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.budget-input {
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}

.budget-input:focus {
    outline: none;
    border-color: #667eea;
}

/* Optional: Add placeholder styling to make it clearer */
.budget-input::placeholder {
    color: #999;
    font-style: italic;
}

.clear-filters-btn {
    width: 100%;
    background: #ff4757;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.clear-filters-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
}

.burakaydin {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.burakaydin a {
    color: #667eea;
    text-decoration: none;
}

/* ===========================
   CONTENT AREA
=========================== */
.content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.items-per-page-selector {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.items-per-page-selector select {
    margin-left: 8px;
    padding: 4px 8px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
}

.add-listing-btn {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(82, 196, 26, 0.3);
    font-size: 16px;
}

.add-listing-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(82, 196, 26, 0.4);
}

.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.listing-count {
    font-weight: 600;
    color: #333;
}

.my-listings-filter {
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkmark {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #d9d9d9;
    border-radius: 4px;
    position: relative;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

/* ===========================
   ARAYIŞ CARDS
=========================== */
.listings-container {
    display: grid;
    gap: 20px;
}

.listing-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    min-height: 200px;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.listing-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listing-right {
    display: flex;
    flex-direction: column;
    position: relative;
}

.listing-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.listing-portfolio-type {
    background: #e6f7ff;
    color: #0050b3;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

.listing-usage-purposes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.usage-purpose-tag {
    background: #f6ffed;
    color: #389e0d;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #b7eb8f;
}

.listing-location {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-districts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.district-tag {
    background: #f0f2f5;
    color: #333;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

.listing-advisor {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-budget {
    color: #52c41a;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    max-width: 600px;
    margin-top: 50px;
}

.yayin-tipleri {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.yayin-tipi-tag {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.yayin-tipi-tag.satilik { background: #52c41a; }
.yayin-tipi-tag.kiralik { background: #1890ff; }
.yayin-tipi-tag.devren-satilik { background: #fa8c16; }
.yayin-tipi-tag.devren-kiralik { background: #722ed1; }

.listing-date {
    color: #999;
    font-size: 12px;
    margin-top: auto;
}

/* ===========================
   PAGINATION
=========================== */
.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination button:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.page-info {
    padding: 8px 12px;
    color: #999;
    font-size: 14px;
}

/* ===========================
   LOADING & ERROR STATES
=========================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading .spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

.loading p {
    color: #666;
    font-size: 16px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}

/* ===========================
   FORM STYLES
=========================== */
.form-container {
    max-width: 800px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.form-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.listing-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-group small {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}


/* Small Red Delete Button */
.delete-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
    min-width: 50px;
    max-width: 70px;
    height: 32px;
    justify-content: center;
}

.delete-btn:hover {
    background: #ff3742;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 71, 87, 0.3);
}

.delete-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.2);
}

/* Icon only version - extra small */
.delete-btn.icon-only {
    padding: 6px;
    min-width: 28px;
    max-width: 28px;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 10px;
}

/* With icon */
.delete-btn .icon {
    font-size: 10px;
}

/* Disabled state */
.delete-btn:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.delete-btn:disabled:hover {
    background: #cccccc;
    transform: none;
    box-shadow: none;
}

/* Main Navigation - Minimal */
.main-nav {
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px 10px 20px;
    border-radius: 10px;
}