/* ===== GEMİSAT - MODERN MARITIME DESIGN ===== */

/* Reset and Base Styles - Performance Optimized */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling optimization */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations - remove problematic properties */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Remove all backdrop-filter for performance */
.sidebar,
.login-card,
.platform-option,
.listing-card,
.ad-card,
.filter-section,
.notification-panel,
.sidebar-toggle,
/* .global-home-logo removed */

/* Background - conditional based on page */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0d1b2a 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Darker background for functional pages (without video) */
body:not(.has-video) {
    background: linear-gradient(135deg, #0a0e13 0%, #151b26 50%, #0b1420 100%);
}

/* Clean background - no animations or shapes for performance */

/* Video background - fixed scaling and performance */
.video-background {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -3;
    opacity: 0.3;
    filter: brightness(0.7);
    pointer-events: none;
}

/* Video background overlay - simplified for performance */
.video-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8) 0%, rgba(52, 73, 94, 0.9) 100%); 
    z-index: -2; 
    pointer-events: none;
}

/* Sidebar Navigation - YouTube style collapsible - performance optimized */
/* No Sidebar */
.no-sidebar .sidebar {
    display: none !important;
}

.no-sidebar .main-content {
    margin-left: 0 !important;
    width: 100% !important;
}

/* Company login/register override */
.company-login-card {
    width: 350px !important;
    height: 350px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    background: rgba(15,32,39,0.7) !important;
    border-radius: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.company-register-card {
    width: 500px !important;
    height: 600px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    background: rgba(15,32,39,0.7) !important;
    border-radius: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

/* Company pages background override */
.no-sidebar .login-container {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
}

/* Company pages - TEMİZ CONTAINER */
.company-page-container {
    width: 100vw;
    height: 100vh;
    background: #0a0e13;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.company-page-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 20px;
    z-index: 1;
}

.company-page-container .login-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .company-login-card {
        width: 90% !important;
        max-width: 350px !important;
        padding: 20px !important;
    }
    
    .company-register-card {
        width: 95% !important;
        max-width: 500px !important;
        padding: 20px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR  –  Modern yeniden tasarım
   Mantık korunuyor: .collapsed=70px · :not(.collapsed)=260px
   ═══════════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #0b1523;
    border-right: 1px solid rgba(255,255,255,0.06);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: visible;          /* expand handle dışarı taşsın */
    will-change: width;
    transform: translateZ(0);
    transition: width 0.28s cubic-bezier(.4,0,.2,1);
}

/* ── Kapalı hal ──────────────────────────────────────────────── */
.sidebar.collapsed {
    width: 68px;
}

/* ── Expand / Collapse toggle butonu ────────────────────────── */
.sidebar-expand-handle {
    position: absolute;
    top: 50%;
    right: -14px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    background: #162032;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    transition: background 0.2s, color 0.2s, transform 0.28s cubic-bezier(.4,0,.2,1);
    z-index: 1050;
    font-size: 11px;
    line-height: 1;
}

.sidebar:not(.collapsed) .sidebar-expand-handle {
    transform: translateY(-50%) rotate(180deg);
}

.sidebar-expand-handle i {
    pointer-events: none;
    font-size: 10px;
    display: block;
}

.sidebar-expand-handle:hover {
    background: #1e2f45;
    color: #fff;
}

/* ── Metin geçişleri ─────────────────────────────────────────── */
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .logout-btn span,
.sidebar.collapsed .auth-buttons,
.sidebar.collapsed .user-details,
.sidebar.collapsed .nav-label {
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease, width 0.15s ease;
}

.sidebar:not(.collapsed) .logo-text,
.sidebar:not(.collapsed) .nav-item span,
.sidebar:not(.collapsed) .logout-btn span,
.sidebar:not(.collapsed) .auth-buttons,
.sidebar:not(.collapsed) .user-details,
.sidebar:not(.collapsed) .nav-label {
    opacity: 1;
    visibility: visible;
    width: auto;
    transition: opacity 0.25s ease 0.08s, visibility 0.25s ease 0.08s;
}

/* ── Nav item – collapsed ayarlamaları ──────────────────────── */
.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 13px 0;
}

.sidebar.collapsed .nav-item i {
    margin: 0;
    font-size: 1.1rem;
}

.sidebar.collapsed .logout-btn {
    justify-content: center;
    padding: 13px 0;
}

.sidebar.collapsed .logout-btn i {
    margin: 0;
    font-size: 1.1rem;
}

/* ── Logo – collapsed ────────────────────────────────────────── */
.sidebar.collapsed .logo {
    justify-content: center;
    padding-left: 0;
}

.sidebar.collapsed .logo img {
    width: 32px;
    height: 32px;
}

/* ── Tooltip – collapsed hover ───────────────────────────────── */
.sidebar.collapsed .nav-item,
.sidebar.collapsed .logout-btn {
    position: relative;
}

.sidebar.collapsed .nav-item:hover::after,
.sidebar.collapsed .logout-btn:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e2f45;
    border: 1px solid rgba(255,255,255,0.1);
    color: #ecf0f1;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1200;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Main content margin – sidebar genişliğiyle senkron */
.main-content {
    margin-left: 68px;
    transition: margin-left 0.28s cubic-bezier(.4,0,.2,1);
    min-height: 100vh;
    padding: 20px;
    will-change: margin-left;
    transform: translateZ(0);
    position: relative;
}

body:has(.sidebar:not(.collapsed)) .main-content {
    margin-left: 260px;
}

.sidebar-expanded .main-content {
    margin-left: 260px;
}

.sidebar-collapsed .main-content {
    margin-left: 68px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-280px);
    }
    
    .sidebar.open {
        transform: translateX(0);
        width: 280px;
    }
    
    .sidebar.collapsed {
        transform: translateX(-280px);
    }
    
    .main-content {
        margin-left: 0 !important;
    }
}

/* Sidebar morph sırasında kendi transitionlarını kapatmak için */
.sidebar.no-anim {
    transition: none !important;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Google Translate Widget Styles */
#google_translate_element {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 1100;
}

#google_translate_element .goog-te-gadget { color: transparent !important; font-family: 'Inter', sans-serif !important; }

#google_translate_element .goog-te-gadget .goog-te-combo {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(10px);
    min-width: 140px;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 32px !important;
}

#google_translate_element .goog-te-gadget .goog-te-combo option { background: rgba(15, 32, 39, 0.95); color: white; }
/* Metni gizle, logoyu göster */
.goog-te-gadget span { display: none !important; }
.goog-te-banner-frame.skiptranslate { display: none !important; }
body { top: 0px !important; }

@media (max-width: 768px) {
    #google_translate_element {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.3rem;
    }
    
    #google_translate_element .goog-te-gadget .goog-te-combo {
        font-size: 0.8rem;
        padding: 0.3rem;
    }
}

/* Sidebar toggle button - positioned to not conflict */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: rgba(15, 32, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* Adjust toggle button position based on sidebar state */
.sidebar-expanded .sidebar-toggle {
    left: 300px; /* Move right when sidebar is expanded */
}

.sidebar-toggle {
    left: 90px; /* Position next to collapsed sidebar by default */
}

.sidebar-toggle:hover {
    background: rgba(15, 32, 39, 1);
    transform: scale(1.05);
}

/* ── Sidebar header / logo ───────────────────────────────────── */
.sidebar-header {
    padding: 18px 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    min-height: 68px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    padding: 0 4px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.logo-image {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

/* ── Nav bölgesi ─────────────────────────────────────────────── */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 0 4px;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar { display: none; }

.nav-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 8px;
}

/* ── Nav item ────────────────────────────────────────────────── */
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    color: rgba(255,255,255,0.58);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    border-left: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    position: relative;
}

.nav-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.18s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    border-left: none;
}

.nav-item:hover i {
    color: #3498db;
}

.nav-item.active {
    background: rgba(52,152,219,0.14);
    color: #74b9d4;
    border-left: none;
}

.nav-item.active i {
    color: #3498db;
}

/* Aktif item sol çubuk göstergesi */
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #3498db;
}

/* ── Okunmamış mesaj rozeti ──────────────────────────────────── */
.message-count {
    margin-left: auto;
    background: #e74c3c;
    color: #fff;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.6;
    flex-shrink: 0;
}

/* ── Logout bölümü ───────────────────────────────────────────── */
.logout-section {
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    color: rgba(231,76,60,0.75);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
}

.logout-btn i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.logout-btn:hover {
    background: rgba(231,76,60,0.1);
    color: #e74c3c;
}

/* ── Guest auth buttons (Giriş / Kayıt) ───────────────────────── */
.sidebar .auth-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.sidebar .auth-buttons .btn {
    flex: 1;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.sidebar .auth-buttons .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #fff;
}

.sidebar .auth-buttons .btn-secondary {
    background: transparent;
    border: 1px solid rgba(148,163,184,0.6);
    color: rgba(226,232,240,0.9);
}

.sidebar .auth-buttons .btn-secondary:hover {
    background: rgba(15,23,42,0.9);
}

@media (max-width: 768px) {
    .sidebar .auth-buttons {
        flex-direction: column;
    }
}

/* Main content - no left margin when sidebar is hidden */
/* Main content – sidebar ile hizalı. Mobilde 0, masaüstünde yukarıdaki kurallar geçerli */
.main-content {
    padding: 2rem;
    min-height: 100vh;
    color: #fff;
    position: relative;
}

/* Google Maps genel düzeltmeler */
#map, .map, .map-container {
    position: relative;
    z-index: 1;
    min-height: 360px;
}
.gm-style {
    z-index: 1;
}

/* Header */
.header {
    background: rgba(15, 32, 39, 0.8);
    padding: 1rem 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-text {
    flex: 1;
    text-align: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notification Styles */
.notification-container {
    position: relative;
}

.notification-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notification-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: rgba(15, 32, 39, 0.95);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    margin-top: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-panel.show {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    border-radius: 10px 10px 0 0;
}

.notification-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification-close:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(255,255,255,0.05);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item i {
    color: #3498db;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.notification-item span {
    color: white;
    font-size: 14px;
    flex: 1;
}

.notification-item.unread {
    background: #e3f2fd;
    border-left: 3px solid #3498db;
}

.notification-item.unread:hover {
    background: #bbdefb;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-align: center;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #2c3e50;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Search Box */
.search-box {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.search-input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.search-btn:hover {
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-secondary:hover {
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-danger:hover {
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(15,32,39,0.8);
    color: white;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(15,32,39,0.9);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

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

/* Ad Cards */
.ilan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.ilan-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.ilan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ilan-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.ilan-content {
    padding: 0.8rem;
}

.ilan-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seller-profile-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
}

.seller-profile-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.ilan-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.4rem;
}

.ilan-category {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.ilan-location {
    color: #7f8c8d;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ilan-location i {
    font-size: 0.7rem;
}

.ilan-date {
    color: #95a5a6;
    font-size: 0.7rem;
}

.ilan-kullanici {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #ecf0f1;
}

.kullanici-bilgi {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 4px;
}

.kullanici-ad {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.8rem;
}

.kullanici-telefon {
    color: #7f8c8d;
    font-size: 0.7rem;
}

.ilan-actions {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-edit, .btn-delete {
    padding: 3px 6px;
    border: none;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-edit {
    background: #3498db;
    color: #fff;
}

.btn-edit:hover {
    background: #2980b9;
}

.btn-delete {
    background: #e74c3c;
    color: #fff;
}

.btn-delete:hover {
    background: #c0392b;
}

.btn-favorite {
    background: #f8f9fa;
    color: #6c757d;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    min-width: 50px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    gap: 2px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-favorite:hover {
    background: #e9ecef;
    color: #495057;
}

.btn-favorite.favorited {
    background: #ffc107;
    color: #212529;
}

.btn-favorite.favorited:hover {
    background: #e0a800;
}

.btn-favorite.not-favorited {
    background: #f8f9fa;
    color: #6c757d;
}

.btn-favorite.not-favorited:hover {
    background: #e9ecef;
    color: #495057;
}

/* Filters */
.filters {
    background: linear-gradient(135deg, rgba(15,32,39,0.85), rgba(15,32,39,0.75));
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.filter-row {
    display: flex;
    gap: 2rem;
    align-items: end;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
    flex: 1;
}

.filter-group label {
    font-weight: 700;
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
}

.filter-group input,
.filter-group select {
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(15,32,39,0.8);
    font-weight: 500;
    color: white;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
}

.filter-group input {
    appearance: none;
    cursor: text;
}

.filter-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%234a5568' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 50px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    background: rgba(15,32,39,0.9);
}

.filter-group input:hover,
.filter-group select:hover {
    border-color: #0ea5e9;
    background: rgba(15,32,39,0.9);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.filter-group input::placeholder {
    color: rgba(255,255,255,0.6);
    font-weight: 400;
}

/* Filter animations - REMOVED FOR PERFORMANCE */

/* Statistics */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 8px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Ad Detail */
.ilan-detay {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Resim Galerisi */
.image-gallery {
    margin-bottom: 2rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    cursor: pointer;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

/* Modal for enlarged image */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

/* Message Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, rgba(15,32,39,0.95), rgba(15,32,39,0.9));
    backdrop-filter: blur(20px);
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 20px;
    color: white;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary {
    background: #6c757d;
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: #5a6268;
}

.modal-footer .btn-primary {
    background: #007bff;
    color: white;
}

.modal-footer .btn-primary:hover {
    background: #0056b3;
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.modal-nav.prev {
    left: 20px;
}

.modal-nav.next {
    right: 20px;
}

.modal-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 10px;
}

.modal-thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal-thumbnail:hover {
    border-color: #007bff;
}

.modal-thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #007bff;
}

.thumbnail.active {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.ilan-detay-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

/* Edit page image gallery */
.edit-image-gallery {
    margin-bottom: 2rem;
}

.edit-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.edit-image-item {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e9ecef;
}

.edit-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.edit-image-remove:hover {
    background: rgba(220, 53, 69, 1);
}

.edit-image-add {
    width: 120px;
    height: 90px;
    border: 2px dashed #6c757d;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6c757d;
    font-size: 24px;
    transition: all 0.3s ease;
}

.edit-image-add:hover {
    border-color: #007bff;
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.ilan-detay-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.ilan-detay-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 1rem;
}

.ilan-detay-category {
    display: inline-block;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ilan-detay-location {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.ilan-detay-date {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.ilan-detay-aciklama {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

.kullanici-bilgileri {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.kullanici-bilgileri h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.kullanici-kart {
    background: #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kullanici-ad {
    font-size: 16px;
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 5px;
}

.kullanici-telefon, .kullanici-email {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.iletisim-butonlari {
    display: flex;
    gap: 10px;
}

.btn-iletisim {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-iletisim.telefon {
    background: #27ae60;
    color: #fff;
}

.btn-iletisim.email {
    background: #3498db;
    color: #fff;
}

.btn-iletisim.whatsapp {
    background: #2ecc71;
    color: #fff;
}

.btn-iletisim:hover {
    opacity: 0.9;
}

.btn-iletisim.edit {
    background: #ffc107;
    color: #000;
}

.btn-iletisim.edit:hover {
    background: #e0a800;
}

.btn-iletisim.delete {
    background: #dc3545;
    color: #fff;
}

.btn-iletisim.delete:hover {
    background: #c82333;
}

/* No Results */
.no-results {
    text-align: center;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 3rem 0;
    border-left: 4px solid #e74c3c;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Loading */
.loading {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.2rem;
    margin: 2rem 0;
}

.error-message {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #e74c3c;
}

.success-message {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #2e7d32;
}

/* Responsive Design - updated for new sidebar */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-280px); /* Always hidden on mobile */
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
}

@media (min-width: 1025px) {
    .sidebar-toggle {
        display: block; /* Show toggle button on all screen sizes */
    }
}

/* Global home logo (always visible top-left) */
/* removed */

/* Logo morph animation between global and sidebar logo */
.logo-morphing {
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.logo-hidden {
    opacity: 0;
    pointer-events: none;
}
.logo-floating {
    position: fixed !important;
    z-index: 14000 !important;
}

/* Sidebar içindeki logo için yumuşak görünürlük geçişi */
.sidebar .logo-image {
    transition: opacity 200ms ease;
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }
    
    .ilan-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 0.6rem;
    }
    
    .ilan-card {
        border-radius: 6px;
    }
    
    .ilan-image {
        height: 120px;
    }
    
    .ilan-content {
        padding: 0.6rem;
    }
    
    .ilan-title {
        font-size: 0.8rem;
    }
    
    .ilan-price {
        font-size: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filters {
        padding: 1.5rem;
    }
    
    .iletisim-butonlari {
        flex-direction: column;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .btn-favorite {
        min-width: 45px;
        height: 22px;
        font-size: 9px;
    }
    
    .btn-edit, .btn-delete {
        padding: 2px 5px;
        font-size: 9px;
    }
}

/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.login-card {
    background: linear-gradient(135deg, rgba(15,32,39,0.85), rgba(15,32,39,0.75)) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
    color: #f1f3f5 !important;
}

.login-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #e9ecef !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 0.9rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.login-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.login-buttons .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
}

.login-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.link-btn {
    color: #4facfe;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.link-btn:hover {
    color: #2980b9;
}

.guest-section {
    max-width: 600px;
    margin: 0 auto;
}

.guest-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guest-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.guest-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.btn-guest {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-guest:hover {
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.2);
}

.btn-primary.valid {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.btn-primary.valid:hover {
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.2);
}

/* Register Form Overlay */
.register-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

.register-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.register-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

.register-form {
    margin-bottom: 1rem;
}

/* Responsive Design for Login */
@media (max-width: 768px) {
    .login-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .login-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .login-buttons .btn {
        width: 100%;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .guest-card {
        padding: 1.5rem;
    }
}

/* Performance optimized - no animations */

/* Telefon numarası input container */
.phone-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.country-select {
    flex: 0 0 auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    min-width: 100px;
    max-width: 120px;
}

.phone-input-container input[type="tel"] {
    flex: 1;
    min-width: 0;
}

.form-hint {
    display: none;
}

/* Telefon numarası formatı için */
.phone-input-container input[type="tel"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #2c3e50 100%);
    color: #ecf0f1;
    padding: 0;
    margin-top: 60px;
    position: relative;
    z-index: 100;
    opacity: 0;
    transform: translateY(100px);
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    overflow: hidden;
}

.footer.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.footer-waves {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #2c3e50;
    overflow: hidden;
}

.footer-waves svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(180deg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.footer-section {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer.show .footer-section {
    opacity: 1;
    transform: translateY(0);
}

.footer.show .footer-section:nth-child(1) { transition-delay: 0.2s; }
.footer.show .footer-section:nth-child(2) { transition-delay: 0.3s; }
.footer.show .footer-section:nth-child(3) { transition-delay: 0.4s; }
.footer.show .footer-section:nth-child(4) { transition-delay: 0.5s; }

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: #ecf0f1;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo h3 i {
    color: #3498db;
    font-size: 1.5rem;
}

.footer-logo p {
    color: #bdc3c7;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.footer-section h3 {
    color: #ecf0f1;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3 i {
    color: #3498db;
    font-size: 1.1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.8s ease;
    border-radius: 2px;
}

.footer.show .footer-section h3::after {
    width: 60px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
    color: #bdc3c7;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.5s ease;
    transition-delay: 0.4s;
}

.footer.show .footer-section p {
    transform: translateX(0);
    opacity: 1;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.footer-section a i {
    color: #3498db;
    font-size: 0.9rem;
    width: 16px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #2980b9;
    transform: translateX(8px);
    background: rgba(52, 152, 219, 0.1);
    padding-left: 12px;
}

.footer-section a:hover i {
    color: #2980b9;
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid rgba(52, 152, 219, 0.2);
    margin-top: 40px;
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    transition-delay: 0.6s;
}

.footer.show .footer-bottom {
    opacity: 1;
    transform: translateY(0);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a:hover {
    color: #3498db;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #3498db;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    transition-delay: 0.6s;
}

.footer.show .social-links {
    opacity: 1;
    transform: translateY(0);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #34495e;
    border-radius: 50%;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    transform: scale(0.8);
    opacity: 0;
}

.footer.show .social-link {
    transform: scale(1);
    opacity: 1;
}

.footer.show .social-link:nth-child(1) { transition-delay: 0.8s; }
.footer.show .social-link:nth-child(2) { transition-delay: 0.9s; }
.footer.show .social-link:nth-child(3) { transition-delay: 1.0s; }
.footer.show .social-link:nth-child(4) { transition-delay: 1.1s; }
.footer.show .social-link:nth-child(5) { transition-delay: 1.2s; }

.social-link:hover {
    background: #3498db;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.social-link.facebook:hover {
    background: #3b5998;
    box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

.social-link.twitter:hover {
    background: #1da1f2;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
}

.social-link.youtube:hover {
    background: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-link.linkedin:hover {
    background: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(52, 152, 219, 0.05);
    border-radius: 8px;
    border-left: 3px solid #3498db;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    color: #3498db;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-item strong {
    color: #ecf0f1;
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-item span {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        margin-top: 40px;
    }
    
    .footer-waves {
        height: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 15px 25px;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .footer-logo h3 {
        justify-content: center;
        font-size: 1.6rem;
    }
    
    .footer-section h3 {
        justify-content: center;
        font-size: 1.2rem;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-section a {
        justify-content: center;
        padding: 10px 0;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-item {
        max-width: 300px;
        width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Footer animasyon tetikleyicisi (görünür sentinel) */
.footer-trigger {
    width: 100%;
    height: 2px;
    background: transparent;
}

/* Main content padding to prevent overlap with footer */
.main-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 20px;
}

/* Scroll trigger for footer animation */
.footer-trigger {
    height: 100px;
    width: 100%;
}

/* Form Section Styles */
.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.checkbox-label .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #bdc3c7;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Filter Toggle Button */
.filter-toggle {
    margin-bottom: 20px;
}

.btn-filter-toggle {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-filter-toggle:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Filter Styles */
.filter-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.filter-section.show {
    display: block;
}

.filter-section.compact {
    padding: 15px;
    margin-bottom: 15px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    align-items: end;
}

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

.filter-group label {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
    height: 35px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    height: 35px;
    min-width: 80px;
    margin: 0 5px;
}

.price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-range input {
    flex: 1;
}

.price-range span {
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive filter */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .filter-group input,
    .filter-group select {
        font-size: 12px;
        padding: 6px 8px;
        height: 32px;
    }
    
    .btn-small {
        padding: 6px 10px;
        font-size: 11px;
        height: 32px;
    }
}

/* Ad Detail Styles */
.ad-details {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 500;
    color: #2c3e50;
}

.detail-value {
    color: #34495e;
    text-align: right;
}

.detail-value.not-specified {
    font-style: italic;
    color: #95a5a6;
}

.sale-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.sale-type-badge.sale {
    background: #e74c3c;
    color: white;
}

.sale-type-badge.rent {
    background: #f39c12;
    color: white;
}

.condition-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.condition-badge.new {
    background: #27ae60;
    color: white;
}

.condition-badge.used {
    background: #95a5a6;
    color: white;
}

.exchange-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #3498db;
    color: white;
}

/* İlan Card Header Styles */
.ilan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    pointer-events: auto;
    user-select: text;
}

.ilan-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    pointer-events: auto;
}

.ilan-details {
    display: flex;
    gap: 10px;
    margin: 8px 0;
    flex-wrap: wrap;
    pointer-events: auto;
}

.detail-item {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #6c757d;
    border: 1px solid #e9ecef;
    pointer-events: auto;
    user-select: text;
}

/* İlan Card Responsive */
@media (max-width: 768px) {
    .ilan-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .ilan-badges {
        justify-content: flex-start;
    }
    
    .ilan-details {
        gap: 5px;
    }
    
    .detail-item {
        font-size: 0.7rem;
        padding: 1px 6px;
    }
}

/* Tıklama sorunlarını düzelt */
/* Tıklama sorunlarını düzelt */
.sidebar-overlay {
    pointer-events: none;
}

.sidebar-overlay.active {
    pointer-events: auto;
}

/* Liste Görünümü Styles */
.ilan-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ilan-list-item {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 20px;
    align-items: center;
}

.ilan-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.ilan-list-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    min-width: 120px;
    min-height: 90px;
}

.ilan-list-image img {
    width: 120px !important;
    height: 90px !important;
    object-fit: cover;
    display: block;
    max-width: 120px !important;
    max-height: 90px !important;
}

.ilan-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ilan-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.ilan-list-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.ilan-list-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #27ae60;
    white-space: nowrap;
}

.ilan-list-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.ilan-list-category,
.ilan-list-location,
.ilan-list-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ilan-list-user {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 5px;
}

.ilan-list-user-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.ilan-list-user-phone {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.ilan-list-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ilan-list-actions .btn-favorite {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Liste Görünümü Responsive */
@media (max-width: 768px) {
    .ilan-list-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .ilan-list-image {
        width: 100%;
        height: 150px;
        min-width: auto;
        min-height: auto;
    }
    
    .ilan-list-image img {
        width: 100%;
        height: 150px;
    }
    
    .ilan-list-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .ilan-list-details {
        gap: 10px;
    }
    
    .ilan-list-user {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }
    
    .ilan-list-actions {
        width: 100%;
    }
    
    .ilan-list-actions .btn-favorite {
        width: 100%;
    }
}






        width: 100%;
    }
}





