/* At Yarışı Tahmin Plugin Stilleri */

#at-yarisi-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Geçmiş Tahminler */
.gecmis-tahminler {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.gecmis-tahminler h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

/* Accordion Stilleri */
.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.accordion-item:hover {
    border-color: #3498db;
}

.accordion-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    user-select: none;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header.active {
    background: #3498db;
    color: white;
}

.accordion-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.accordion-toggle {
    font-size: 20px;
    font-weight: bold;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transition: transform 0.3s;
}

.accordion-header.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: white;
}

.accordion-content.active {
    max-height: none; /* 500px yerine none - İÇERİĞİN TAMAMI GÖRÜNSİN */
    overflow: visible; /* İçeriğin tamamını göster */
}

.tahmin-detay {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

/* Koşu Numaraları Stilleri */
.kosu-numaralari {
    margin-bottom: 15px;
}

.kosu-list {
    margin-top: 8px;
}

.kosu-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.kosu-label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 20px;
    margin-right: 10px;
}

.kosu-numbers {
    color: #e74c3c;
    font-weight: 600;
    font-family: monospace;
    font-size: 14px;
}

/* Düşünceler */
.dusunceler {
    margin-bottom: 15px;
}

.dusunceler-content {
    margin-top: 10px;
    line-height: 1.6;
    color: #333;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.dusunceler-content p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.dusunceler-content p:last-child {
    margin-bottom: 0;
}

.dusunceler-content strong,
.dusunceler-content b {
    color: #2c3e50;
    font-weight: 600;
}

.dusunceler-content ul,
.dusunceler-content ol {
    margin: 12px 0;
    padding-left: 25px;
}

.dusunceler-content li {
    margin-bottom: 6px;
    line-height: 1.6;
}

.dusunceler-content em,
.dusunceler-content i {
    font-style: italic;
    color: #555;
}

/* Renk stilleri */
.dusunceler-content .has-red-color,
.dusunceler-content [style*="color: red"],
.dusunceler-content [style*="color: #ff0000"] {
    color: #e74c3c !important;
}

.dusunceler-content .has-blue-color,
.dusunceler-content [style*="color: blue"],
.dusunceler-content [style*="color: #0000ff"] {
    color: #3498db !important;
}

.dusunceler-content .has-green-color,
.dusunceler-content [style*="color: green"] {
    color: #27ae60 !important;
}

.tarih-info {
    color: #888;
    font-size: 12px;
    text-align: right;
}

/* No Tahmin */
.no-tahmin {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 20px;
}

/* Sayfalandırma */
.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: bold;
}

/* Loading ve Success Mesajları */
.loading {
    text-align: center;
    padding: 20px;
    color: #3498db;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #at-yarisi-container {
        padding: 15px;
    }
    
    .gecmis-tahminler {
        padding: 20px;
    }
    
    .accordion-header {
        padding: 12px 15px;
    }
    
    .accordion-header h4 {
        font-size: 14px;
    }
    
    .tahmin-detay {
        padding: 15px;
    }
    
    .kosu-item {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .kosu-numbers {
        font-size: 12px;
    }
    
    .dusunceler-content {
        padding: 12px;
        font-size: 14px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .accordion-header h4 {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .kosu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .kosu-label {
        min-width: auto;
        margin-right: 0;
    }
    
    .pagination a,
    .pagination span {
        padding: 5px 8px;
        font-size: 12px;
        margin: 0 2px;
    }
}