:root {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 80px; /* Mobil alt navigasyon için boşluk */
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e55a2b;
    border-color: #e55a2b;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Navbar */
.navbar-brand {
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Responsive card image heights */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
}

@media (min-width: 1200px) {
    .card-img-top {
        height: 180px;
    }
}

/* Featured ads */
.featured-ad {
    border: 2px solid var(--primary-color);
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

/* Search form */
.search-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

/* Price badge */
.price-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive price badge */
@media (max-width: 768px) {
    .price-badge {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
    }
}

/* Message badge */
.message-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image gallery */
.image-gallery {
    position: relative;
}

.image-gallery .carousel-item img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .image-gallery .carousel-item img {
        height: 250px;
    }
}

/* Form styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

/* File upload */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

/* Image preview */
.image-preview {
    position: relative;
    display: inline-block;
    margin: 0.5rem;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.image-preview .remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Mobil Alt Navigasyon */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    max-width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
}

.mobile-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.mobile-nav-item span {
    font-weight: 500;
    line-height: 1;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

/* Özel İlan Ver Butonu */
.mobile-nav-add {
    position: relative;
}

.mobile-nav-add-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.mobile-nav-add:hover .mobile-nav-add-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.mobile-nav-add-btn i {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.mobile-nav-add span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Bildirim Badge */
.mobile-nav-badge {
    position: absolute;
    top: -2px;
    right: 8px;
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.6rem;
    font-weight: bold;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .image-gallery .carousel-item img {
        height: 250px;
    }
    
    /* Mobil için body padding */
    body {
        padding-bottom: 80px;
    }
    
    /* Mobil için navbar gizle */
    .navbar .d-flex.align-items-center {
        display: none !important;
    }
}

@media (min-width: 992px) {
    /* Desktop'ta mobil navigasyonu gizle */
    .mobile-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 10px;
}

/* Badge styling */
.badge {
    font-size: 0.75rem;
}

/* Avatar */
.avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

/* Stats cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
}

.stats-card .stats-number {
    font-size: 2rem;
    font-weight: bold;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobil navigasyon animasyonları */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.mobile-nav-item.active {
    animation: bounceIn 0.6s ease-out;
}

/* Pulse animasyonu için özel sınıf */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    }
    100% {
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
}

.mobile-nav-add-btn {
    animation: pulse 2s infinite;
}

/* Mesajlaşma sayfası için özel stiller */
.conversation-item {
    transition: all 0.2s ease;
}

.conversation-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.conversation-item.active {
    background-color: rgba(var(--primary-color-rgb), 0.1);
    border-left: 3px solid var(--primary-color);
}

.message-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    max-width: 80%;
    margin-bottom: 1rem;
}

.message-item.sent {
    align-self: flex-end;
}

.message-item.received {
    align-self: flex-start;
}

/* Yeni rozet stili */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 2;
}

/* Yıldızlı puanlama için CSS */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    margin-right: 5px;
}

.rating input:checked ~ label {
    color: #ffc107;
}

.rating label:hover,
.rating label:hover ~ label {
    color: #ffc107;
}