/* Global Modern Site Styles - Tüm Sayfaları Modernize Eden Framework */

/* Base Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
}

/* Global Body Styles */
body {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Modern Card Styles */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Enhanced Search Results Section */
.results-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.results-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.view-btn:hover,
.view-btn.active {
    background: var(--primary-gradient);
    color: var(--text-primary);
}

/* Sort Dropdown */
.sort-dropdown select {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Compare Button */
.compare-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.compare-btn:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.compare-count {
    background: var(--primary-gradient);
    color: var(--text-primary);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Enhanced Property Cards */
.premium-property-card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    transform: translateZ(0);
}

.premium-property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(251, 191, 36, 0.4);
}

.property-image-section {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.premium-property-card:hover .property-image {
    transform: scale(1.1);
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: var(--transition);
}

.premium-property-card:hover .property-overlay {
    opacity: 1;
}

.property-actions-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.premium-property-card:hover .property-actions-top {
    opacity: 1;
    transform: translateY(0);
}

.compare-checkbox {
    position: relative;
}

.compare-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.compare-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.compare-checkbox input[type="checkbox"]:checked + label {
    background: var(--primary-gradient);
    border-color: #fbbf24;
    color: var(--text-primary);
}

.compare-checkbox label:hover {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Compare Panel */
.compare-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    transition: var(--transition);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.compare-panel.active {
    right: 0;
}

.compare-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.compare-panel-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.compare-panel-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.compare-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.compare-panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.compare-items {
    flex: 1;
    margin-bottom: 1rem;
}

.compare-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
}

.compare-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.compare-item-title {
    color: var(--text-primary);
    font-weight: 500;
}

.compare-item button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.compare-item button:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ef4444;
}

.compare-actions {
    display: flex;
    gap: 1rem;
}

.compare-btn-clear,
.compare-btn-compare {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.compare-btn-clear {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.compare-btn-clear:hover {
    background: rgba(255, 255, 255, 0.1);
}

.compare-btn-compare {
    background: var(--primary-gradient);
    color: var(--text-primary);
}

.compare-btn-compare:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-2px);
}

.compare-btn-compare:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* List View Styles */
.premium-property-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-property-grid.list-view .premium-property-card {
    display: flex;
    height: 150px;
}

.premium-property-grid.list-view .property-image-section {
    width: 250px;
    height: 100%;
}

.premium-property-grid.list-view .property-content-section {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Loading States */
.skeleton-loader {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .results-header-enhanced {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .results-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .compare-panel {
        width: 100%;
        right: -100%;
    }
    
    .premium-property-grid.list-view .premium-property-card {
        flex-direction: column;
        height: auto;
    }
    
    .premium-property-grid.list-view .property-image-section {
        width: 100%;
        height: 200px;
    }
}

/* Modern Button Styles */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #1f2937;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
    color: #1f2937;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Form Controls */
.form-control, .form-select {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    color: var(--text-primary);
}

/* Tables */
.table {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.table thead th {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
    padding: 16px;
}

.table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 16px;
}

/* Alerts */
.alert {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    padding: 16px 20px;
}

/* Badges */
.badge {
    background: var(--primary-gradient);
    color: #1f2937;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Pagination */
.pagination .page-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    margin: 0 4px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.5);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: #fbbf24;
    color: #1f2937;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 16px;
}

/* Links */
a {
    color: #fbbf24;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #f59e0b;
}

/* Lists */
.list-group-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.list-group-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Modals */
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

.modal-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
}

/* Dropdowns */
.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
}

.dropdown-item {
    color: var(--text-secondary);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Breadcrumbs */
.breadcrumb {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
}

.breadcrumb-item a {
    color: #fbbf24;
}

/* Progress Bars */
.progress {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    height: 8px;
}

.progress-bar {
    background: var(--primary-gradient);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 12px;
    }
}
