/* Βασικά στυλ */
.intelligent-analysis-container,
.specific-hour-analysis,
.pattern-detection-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.main-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    font-size: 1.8em;
}

.subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Ανάλυση ανά λεπτό */
.minute-analysis-section {
    margin-bottom: 40px;
}

.search-specific-hour {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.hour-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.hour-search-form input {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
    width: 120px;
}

.search-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.search-button:hover {
    background: #2980b9;
}

#specific-hour-results {
    margin-top: 20px;
}

.minute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.minute-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.minute-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.minute-header {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ecf0f1;
}

.minute-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.stat-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.stat-value.highlight {
    color: #e74c3c;
    background: #ffebee;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Συγκεκριμένες ώρες */
.specific-times-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.specific-times-table th {
    background: #2c3e50;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.specific-times-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ecf0f1;
}

.specific-times-table tr:hover {
    background: #f8f9fa;
}

.high-percentage {
    background: #d4edda;
    color: #155724;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.high-goals {
    background: #fff3cd;
    color: #856404;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Σύγκριση ημίχρονων */
.halves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.half-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.half-card h4 {
    margin-top: 0;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.half-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.half-stat {
    display: flex;
    flex-direction: column;
}

.half-stat .label {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 3px;
}

.half-stat .value {
    font-weight: 700;
    font-size: 1.2em;
    color: #2c3e50;
}

/* Γραφήματα */
.intelligent-charts {
    margin-top: 40px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.chart-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
}

.chart-box h4 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

/* Ανάλυση συγκεκριμένης ώρας */
.specific-hour-analysis .analysis-results {
    margin-top: 30px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
}

.summary-card.exact {
    border-top-color: #2ecc71;
}

.summary-card.near {
    border-top-color: #f39c12;
}

.summary-card.total {
    border-top-color: #9b59b6;
}

.summary-card h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1em;
}

.summary-card .count {
    font-size: 2.5em;
    font-weight: 700;
    color: #2980b9;
    margin: 10px 0;
}

.matches-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.matches-table th {
    background: #34495e;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.matches-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ecf0f1;
}

.matches-table tfoot tr {
    background: #f8f9fa;
    font-weight: 600;
}

.outcome-1 {
    color: #27ae60;
    font-weight: 600;
}

.outcome-X {
    color: #e74c3c;
    font-weight: 600;
}

.outcome-2 {
    color: #9b59b6;
    font-weight: 600;
}

/* Ανίχνευση μοτίβων */
.patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pattern-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.pattern-card h4 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.pattern-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pattern-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    justify-content: space-between;
}

.pattern-card li:last-child {
    border-bottom: none;
}

.pattern-card .time {
    font-weight: 600;
    color: #2c3e50;
}

.pattern-card .stats {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* Συμβουλές */
.data-driven-advice {
    margin-top: 40px;
}

.advice-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.advice-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border-top: 4px solid #3498db;
}

.advice-card h4 {
    margin-top: 0;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.advice-card ul {
    padding-left: 20px;
}

.advice-card li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Σύγκριση */
.comparison-tables {
    margin-top: 20px;
}

.comparison-table {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.comparison-table h4 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 15px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #dee2e6;
}

.comparison-table td {
    padding: 10px;
    border: 1px solid #dee2e6;
}

/* Responsive */
@media (max-width: 768px) {
    .intelligent-analysis-container,
    .specific-hour-analysis,
    .pattern-detection-container {
        padding: 15px;
    }
    
    .minute-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .hour-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hour-search-form input {
        width: 100%;
    }
    
    .matches-table,
    .specific-times-table {
        font-size: 0.9em;
        display: block;
        overflow-x: auto;
    }
    
    .patterns-grid,
    .advice-container {
        grid-template-columns: 1fr;
    }
}

/* Loading and error states */
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #f44336;
}

.no-results {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}