/*
Theme Name: Canlı Maç İzleme Teması
Theme URI: 
Author: Size Özel
Author URI: 
Description: 14x16 bayrak, saat, takım listesi, 180 dk gizleme, mobil uyumlu
Version: 1.0
License: 
License URI: 
Text Domain: canli-mac
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
    width: auto;
}

.header-ad {
    width: 728px;
    height: 90px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menü */
.main-menu {
    background: #1a1a1a;
    border-top: 3px solid #e74c3c;
}

.main-menu .container {
    padding: 0;
}

.main-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu li {
    margin: 0;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
}

.main-menu a:hover {
    background: #e74c3c;
}

/* Reklam Kuşağı */
.ad-band {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    gap: 10px;
}

.ad-item {
    flex: 1;
    height: 50px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

/* Ana İçerik ve Sidebar */
.main-content {
    flex: 1;
    min-width: 300px;
}

.sidebar {
    width: 300px;
}

/* Maç Listesi */
.match-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.match-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.match-item:hover {
    background: #f8f9fa;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.match-flag {
    flex: 0 0 auto;
    width: 16px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.match-time {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    min-width: 45px;
}

.match-teams {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-separator {
    margin: 0 5px;
    color: #999;
}

/* Banner (her 7 postada bir) */
.banner-item {
    background: #f0f0f0;
    padding: 10px;
    text-align: center;
}

.banner-item img {
    max-width: 100%;
    height: auto;
    max-height: 50px;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-container {
    height: 550px;
    overflow-y: auto;
    background: #f9f9f9;
    border-radius: 5px;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #fff;
    margin-top: 40px;
    padding: 30px 0 0;
}

.footer-text {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 20px;
    border-bottom: 1px solid #333;
}

.footer-bottom {
    background: #111;
    text-align: center;
    padding: 15px;
    font-size: 13px;
    color: #999;
}

/* Responsive Mobil */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-ad {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 90px;
    }
    
    .main-menu ul {
        flex-direction: column;
    }
    
    .main-menu a {
        text-align: center;
    }
    
    .ad-band {
        flex-direction: column;
    }
    
    .ad-item {
        width: 100%;
    }
    
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .match-item {
        padding: 10px 8px;
        gap: 6px;
    }
    
    .match-flag {
        width: 14px;
        height: 12px;
    }
    
    .match-time {
        font-size: 11px;
        min-width: 40px;
    }
    
    .match-teams {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .match-item {
        padding: 8px 5px;
        gap: 4px;
    }
    
    .match-time {
        font-size: 10px;
        min-width: 35px;
    }
    
    .match-teams {
        font-size: 10px;
    }
    
    .team-name {
        max-width: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Koyu Tema */
body.dark-theme {
    background: #1a1a1a;
    color: #f0f0f0;
}

.dark-theme .site-header,
.dark-theme .match-list,
.dark-theme .sidebar-widget {
    background: #2d2d2d;
    color: #f0f0f0;
}

.dark-theme .match-item {
    border-bottom-color: #404040;
}

.dark-theme .match-item:hover {
    background: #3d3d3d;
}

.dark-theme .match-teams {
    color: #e0e0e0;
}
/* Maç listesi düzeltmeleri */
.match-list {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.match-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.match-item:hover {
    background: #f5f5f5;
    transform: translateX(3px);
}

.match-flag {
    width: 16px;
    height: 14px;
    flex-shrink: 0;
}

.match-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.match-time {
    font-size: 13px;
    font-weight: 600;
    color: #e74c3c;
    min-width: 45px;
    flex-shrink: 0;
}

.match-teams {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.team-separator {
    margin: 0 5px;
    color: #999;
}

.pagination {
    padding: 15px;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    background: #f0f0f0;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

/* Mobil */
@media (max-width: 768px) {
    .match-item {
        padding: 10px 8px;
        gap: 6px;
    }
    
    .match-time {
        font-size: 11px;
        min-width: 40px;
    }
    
    .match-teams {
        font-size: 11px;
    }
}