/* Tailwind CSS Directives */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Styles - Futmob Dark Mode Theme */

/* Smooth height transition for accordion */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.accordion-content.open {
    opacity: 1;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a; 
}

::-webkit-scrollbar-thumb {
    background: #3b82f6; 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb; 
}

/* Modern Dark Background */
body {
    background: #0a0a0a;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Hero Slider Styles */
#hero-slider {
    padding: 1rem 0;
}

#hero-slider .container > div {
    max-width: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: pointer;
}

.slider-slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop: 16:9 aspect ratio için görseli ortala ve kenarlardan daralt */
@media (min-width: 768px) {
    #hero-slider .container > div {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0C0E12;
    }
    
    /* Slider ad areas */
    #slider-ad-left,
    #slider-ad-right {
        width: 200px;
    }
    
    #slider-container {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
        max-width: calc(384px * 16 / 9); /* md:h-96 = 384px, 16:9 genişlik = 682.67px */
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }
    
    .slider-slide {
        width: 100%;
        height: 100%;
    }
    
    .slider-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.slider-slide.no-image {
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 2rem 1.5rem 3.5rem;
    z-index: 2;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #3b82f6;
    width: 24px;
    border-radius: 5px;
}

/* Category Filters */
#category-filters {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #0a0a0a;
}

#category-filters::-webkit-scrollbar {
    height: 6px;
}

#category-filters::-webkit-scrollbar-track {
    background: #0a0a0a;
}

#category-filters::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 3px;
}

/* Banner Container */
#banner-container {
    min-height: 50px;
}

/* Sidebar Ad Container */
#sidebar-ad-container {
    min-height: 600px;
}

/* Desktop Layout Alignment */
@media (min-width: 768px) {
    /* Main content ve slider aynı container genişliğinde */
    main.container,
    #hero-slider .container,
    header .container {
        max-width: 1280px; /* Tailwind container default */
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Grid yapısını slider ile hizala - tam genişlik */
    main .grid,
    header .grid {
        width: 100%;
        max-width: 100%;
    }
    
    /* Desktop grid yapısı: 300px kategori | esnek haber | 300px reklam */
    #main-grid {
        grid-template-columns: 300px 1fr 300px;
    }
    
    /* Desktop header: Logo ve dil seçimi genişlikleri kategori/reklam alanları ile hizalı */
    #header-flex {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    /* Desktop'ta logo genişliği kategori sidebar ile aynı (300px) */
    @media (min-width: 768px) {
        #header-flex > div:first-child {
            width: 300px;
            flex-shrink: 0;
        }
        
        #header-flex > div:nth-child(2) {
            flex: 1;
            min-width: 0;
            display: flex;
            justify-content: center;
            max-width: none;
        }
        
        #header-flex > nav {
            width: 300px;
            flex-shrink: 0;
            display: flex;
            justify-content: flex-end;
        }
        
        #search-input {
            max-width: 500px;
        }
    }
    
    
    /* Haberler alanı ortada, tam genişlik kullanır */
    #main-grid > div:nth-child(2) {
        width: 100%;
    }
}

/* Footer Styles */
footer {
    background: #111111;
}

footer h3 {
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #3b82f6;
}

/* Social Links in Footer */
#social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

#social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

#social-links a:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Contact Info Styling */
#contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#contact-info a {
    word-break: break-all;
}

/* Legal Links Styling */
#legal-links a {
    display: block;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

#legal-links a:hover {
    padding-left: 0.5rem;
    border-bottom-color: rgba(59, 130, 246, 0.3);
}

/* Language Dropdown */
#language-dropdown {
    min-width: 140px;
}

/* Header Logo - Force 2 lines on mobile */
#site-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

#site-title span {
    display: block;
}
