/* Modern Reset ve Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #2d3748;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 100px; /* Header için alan */
}

/* Başlık Styling */
h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 3rem 0 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Mevcut CSS'inizin içine bu button iyileştirmelerini ekleyin */

/* Modern Button Styling - Hem .button class'ı hem de button elementi için */
.button,
button {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Arama formu için mesafe düzenlemesi */

/* Input ve button arasına mesafe ekle */
input[type="text"] + button,
input[type="search"] + button {
    margin-top: 20px;
}

/* Alternatif: Form container'ına gap ekle */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Veya sadece arama input'u için */
input[placeholder*="aramıştınız"],
input[placeholder*="Ara"] {
    margin-bottom: 20px;
}

/* Responsive için mesafeyi artır */
@media (max-width: 768px) {
    input[type="text"] + button,
    input[type="search"] + button {
        margin-top: 25px;
    }
    
    form {
        gap: 25px;
    }
}

/* Kategori Listesi CSS */

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 2rem 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-item {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.category-item a {
    display: block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Shimmer efekti */
.category-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.category-item a:hover::before {
    left: 100%;
}

/* Hover efektleri */
.category-item a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.category-item a:active {
    transform: translateY(-1px);
}

/* Focus durumu */
.category-item a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .category-list {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin: 1.5rem 0;
    }
    
    .category-item {
        min-width: auto;
        max-width: none;
    }
    
    .category-item a {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .category-list {
        padding: 12px;
        border-radius: 15px;
    }
    
    .category-item a {
        padding: 12px 14px;
        border-radius: 10px;
    }
}

/* Shimmer efekti */
.button::before,
button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover::before,
button:hover::before {
    left: 100%;
}

/* Hover efektleri */
.button:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.button:active,
button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Focus durumu (accessibility için) */
.button:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Listing item içindeki buttonlar için özel stil */
.listing-item .button {
    width: 100%;
    margin-top: 15px;
}

/* Banner Slider - Mevcut kodunuz korundu ve geliştirildi */
.banner-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin: 3rem 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    width: 300%;
}

.banner-slide {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    z-index: 1;
    transition: opacity 0.3s ease;
}

.banner-slide:hover::before {
    opacity: 0.5;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-slide:hover img {
    transform: scale(1.05);
}

.banner-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    z-index: 2;
}

.banner-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.banner-content p {
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #667eea;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    color: #764ba2;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.banner-arrow.left {
    left: 1.5rem;
}

.banner-arrow.right {
    right: 1.5rem;
}

.banner-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.banner-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.banner-dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Listings Grid - Modern Card Design */
.listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 0 10px;
}

.listing-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.listing-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.listing-item:hover::before {
    opacity: 1;
}

.listing-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.listing-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
    position: relative;
}

.listing-item:hover img {
    transform: scale(1.05);
}

.listing-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 1.5rem 1.5rem 0.8rem 1.5rem;
    line-height: 1.3;
}

.listing-item .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #667eea;
    margin: 0 1.5rem 0.8rem 1.5rem;
    position: relative;
}

.listing-item .price::before {
    content: '💰';
    margin-right: 8px;
    font-size: 1.2rem;
}

.listing-item .description {
    color: #718096;
    margin: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modern Button Styling */
.listing-item .button {
    display: block;
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem 1.5rem;
    padding: 14px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.listing-item .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.listing-item .button:hover::before {
    left: 100%;
}

.listing-item .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.listing-item .button:active {
    transform: translateY(0);
}

/* Empty State */
.listings p {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    grid-column: 1 / -1;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listing-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.listing-item:nth-child(1) { animation-delay: 0.1s; }
.listing-item:nth-child(2) { animation-delay: 0.2s; }
.listing-item:nth-child(3) { animation-delay: 0.3s; }
.listing-item:nth-child(4) { animation-delay: 0.4s; }
.listing-item:nth-child(5) { animation-delay: 0.5s; }
.listing-item:nth-child(6) { animation-delay: 0.6s; }

/* Pulse Animation for Price */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.listing-item .price {
    animation: pulse 3s infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
        margin-top: 90px;
    }
    
    .banner-container {
        height: 320px;
        margin: 2rem 0;
    }
    
    .listings {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    h2 {
        font-size: 2.2rem;
        margin: 2rem 0 1.5rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin-top: 80px;
    }
    
    .banner-container {
        height: 250px;
        border-radius: 15px;
        margin: 1.5rem 0;
    }
    
    .banner-arrow {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .banner-arrow.left {
        left: 1rem;
    }
    
    .banner-arrow.right {
        right: 1rem;
    }
    
    .banner-content h3 {
        font-size: 1.4rem;
    }
    
    .banner-content p {
        font-size: 0.95rem;
    }
    
    .listings {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 2rem 0;
    }
    
    .listing-item {
        border-radius: 16px;
    }
    
    .listing-item img {
        height: 220px;
    }
    
    h2 {
        font-size: 1.9rem;
        margin: 1.5rem 0 1rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
        margin-top: 70px;
    }
    
    .banner-container {
        height: 200px;
        border-radius: 12px;
    }
    
    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .banner-content {
        bottom: 1rem;
        left: 1rem;
    }
    
    .banner-content h3 {
        font-size: 1.2rem;
    }
    
    .banner-content p {
        font-size: 0.85rem;
    }
    
    .listings {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .listing-item img {
        height: 200px;
    }
    
    .listing-item h3 {
        font-size: 1.2rem;
        margin: 1.2rem 1.2rem 0.6rem 1.2rem;
    }
    
    .listing-item .price {
        font-size: 1.4rem;
        margin: 0 1.2rem 0.6rem 1.2rem;
    }
    
    .listing-item .description {
        margin: 0 1.2rem 1.2rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .listing-item .button {
        width: calc(100% - 2.4rem);
        margin: 0 1.2rem 1.2rem 1.2rem;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
}

/* Dark mode media query */
@media (prefers-color-scheme: dark) {
    .listing-item {
        background: rgba(45, 55, 72, 0.95);
        color: #e2e8f0;
    }
    
    .listing-item h3 {
        color: #f7fafc;
    }
    
    .listing-item .description {
        color: #a0aec0;
    }
}

/* Print styles */
@media print {
    .banner-container,
    .banner-arrow,
    .banner-dots {
        display: none;
    }
    
    .listing-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .listing-item {
        border: 2px solid #000;
    }
    
    .listing-item .button {
        background: #000;
        border: 2px solid #000;
    }
}