/* assets/css/style.css - Mega İlan Ana Stil Dosyası */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #fadbd8;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --gray-light: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

body {
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    background: #f8fafc;
    color: var(--dark);
    line-height: 1.5;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header */
.header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.logo img {
    height: 40px;
    vertical-align: middle;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.header-icon {
    position: relative;
    font-size: 20px;
    color: var(--gray);
}

.badge-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ilan-ver-large {
    background: var(--primary);
    color: white;
    padding: 10px 24px;
    border-radius: 60px;
    font-weight: 800;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav .close-btn {
    text-align: right;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 20px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 15px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .btn-ilan-ver-large {
        display: none;
    }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #e67e22 100%);
    color: white;
    padding: 40px 0 30px;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.steps {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.step {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 14px;
}

.search-box {
    flex: 1.2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 28px;
}

.search-input-group {
    display: flex;
    background: white;
    border-radius: 60px;
    overflow: hidden;
    margin-bottom: 15px;
}

.search-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-input-group button {
    background: var(--dark);
    color: white;
    border: none;
    padding: 0 28px;
    cursor: pointer;
    font-weight: 700;
}

.advanced-link {
    text-align: right;
    font-size: 13px;
    color: white;
    text-decoration: underline;
    cursor: pointer;
}

.advanced-filters {
    display: none;
    margin-top: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.advanced-filters.active {
    display: grid;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    border: none;
    background: white;
}

/* Yeni Üye Teşviki */
.new-user-teaser {
    background: #f39c12;
    color: #2c3e50;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
}

.new-user-teaser a {
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 10px;
}

/* Sosyal Kanıt */
.social-proof {
    background: rgba(0, 0, 0, 0.1);
    padding: 12px;
    text-align: center;
    margin-top: 25px;
    border-radius: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 14px;
}

/* Kategoriler */
.categories-section {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
}

.category-item {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    overflow: hidden;
}

.category-header {
    background: #f9f9f9;
    padding: 14px 18px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.category-header i:first-child {
    width: 24px;
    color: var(--primary);
}

.subcategories {
    display: none;
    padding: 12px 18px;
    background: white;
    border-top: 1px solid var(--gray-light);
    flex-wrap: wrap;
    gap: 8px;
}

.subcategories a {
    font-size: 13px;
    color: var(--gray);
    background: #f1f1f1;
    padding: 5px 12px;
    border-radius: 30px;
}

/* İlan Kartları */
.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.listing-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.25s;
    position: relative;
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-6px);
}

.card-image {
    height: 180px;
    background: #e9ecef;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f0f0f0;
    color: #ccc;
    font-size: 48px;
}

.card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.badge {
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
}

.badge-vitrin {
    background: #f39c12;
}

.badge-acil {
    background: #ff4757;
    animation: pulse 1s infinite;
}

.badge-ucretsiz {
    background: #0984e3;
}

.badge-takas {
    background: #6c5ce7;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.favorite-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.compare-checkbox {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: white;
    border-radius: 20px;
    padding: 4px 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.compare-checkbox input {
    margin: 0;
    cursor: pointer;
}

.card-content {
    padding: 15px;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray);
}

.seller-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.verified-icon {
    color: #27ae60;
    margin-left: 4px;
}

.card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0;
}

.card-location {
    font-size: 12px;
    color: var(--gray);
    margin: 4px 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray);
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.pagination .active {
    background: var(--primary);
    color: white;
}

.sort-dropdown {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
}

/* Hizmet kartları */
.service-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Projeler */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.project-image {
    height: 140px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #ccc;
}

/* Etiket listeleri */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.tag-list a {
    background: white;
    padding: 6px 18px;
    border-radius: 40px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: white;
    font-size: 22px;
    transition: 0.2s;
}

.social-links a:hover {
    color: var(--primary);
}

.trust-footer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
}

/* Mobil sticky CTA */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: block;
    }
    .hero-text h1 {
        font-size: 28px;
    }
    .section-title {
        font-size: 22px;
    }
}

/* Canlı destek */
.chat-widget {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .chat-widget {
        bottom: 70px;
    }
}

.chat-toggle {
    background: #25d366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-toggle i {
    font-size: 28px;
    color: white;
}

.chat-box {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.chat-box.active {
    display: block;
}

/* Live counter */
.live-counter {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Breadcrumb */
.breadcrumb {
    margin: 20px 0;
    font-size: 13px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
}

/* Uyarı kutuları */
.alert-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}