/* Combined Match & Team Page Generator Styles - Enhanced Unified Version */

.match-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.match-content-wrapper {
    background: #fff;
    border-radius: 10px 10px 10px 10px;
    overflow: hidden;
	margin-top: 30px;
    margin-bottom: 200px;
}

.match-content-wrapper::after {
    display: none;
}

/* Breadcrumbs */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-link {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #005a87;
}

.breadcrumb-current span {
    color: #6c757d;
    font-weight: 600;
}

.breadcrumb-list .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    margin-right: 8px;
}

/* Match Header Section */
.match-header-section {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 0;
}

.match-hero-banner {
    padding: 10px 25px;
    position: relative;
}

.match-league-info-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.country-flag {
    font-size: 1.2em !important;
}

.league-name {
    font-weight: 600;
    font-size: 1.1em;
	color: #FF9800;
}

.country-name {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 1.3em;
}

.freshness-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 10px;
    border-radius: 20px;
    margin-left: auto;
}

.freshness-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.freshness-dot.upcoming { 
    background: #ffc107; 
}
.freshness-dot.finished { 
    background: #28a745; 
}

.freshness-text {
    font-size: 0.85em;
    opacity: 0.9;
}

.match-meta-container {
    position: absolute;
    top: 20px;
    right: 25px;
}

.last-updated-badge {
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.last-updated-badge.fresh {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Main Match Content - Redesigned for Team Page Style */
.match-main-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.team-section {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding-top: 5px; 
	padding-bottom: 20px;
}

.team-logo-container {
    margin-bottom: 5px;
}

.team-main-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    background: white;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}


.team-info-main {
    flex: 1;
    min-width: 300px;
}

.team-main-title {
    font-size: 1.9em;
    font-weight: 800;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    color: #fff;
}

/* VS Section - Redesigned */
.vs-section {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 20px;
}

.vs-text {
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 15px;
    color: #FF9800;
}

.match-date-time {
    font-size: 1.1em;
    opacity: 0.95;
    margin-bottom: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

.match-date-time i {
    margin-right: 8px;
    color: #FF9800;
}

.match-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
}

.match-status-badge.upcoming {
    background: rgba(255,193,7,0.25);
	font-size: 0.7em;
    color: #ffc107;
    border-color: rgba(255,193,7,0.5);
}

.match-status-badge.finished {
    background: rgba(40,167,69,0.25);
    color: #28a745;
    border-color: rgba(40,167,69,0.5);
}

/* Content Sections */
.content-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #e1e5e9;
}

.content-section:last-child {
    border-bottom: none;
}

.section-title {
    color: #1a365d;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #007cba;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff6b35;
}

.content-text {
    line-height: 1.8;
    font-size: 1.1em;
    color: #2d3748;
}

.content-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.content-text strong {
    color: #2c3e50;
    font-weight: 600;
}

.content-text a {
    color: #007cba;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.content-text a:hover {
    color: #005a87;
    border-bottom-color: #007cba;
}

/* Specific styling for match analysis */
.match-analysis .content-text {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

/* Performance Analysis specific */
.performance-analysis .content-text {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
}

/* Internal Links Section */
.internal-links-section {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    margin: 10px -30px -40px;
    padding: 40px 30px;
    border-radius: 0;
    position: relative;
}

/* Remove any potential white space from content sections above */
.content-section:last-of-type {
    margin-bottom: 40px;
}

/* Ensure no white space after internal links */
.internal-links-section::after {
    display: none;
}

.internal-links-section .content-section {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 0;
}

.predictions-hub {
    margin-bottom: 0;
}

/* Centered titles */
.predictions-hub h2 {
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    text-align: center;
    position: relative;
}

.predictions-hub h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff6b35;
}

/* Centered description */
.hub-description {
    margin-bottom: 30px;
    text-align: center;
}

.hub-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* FIXED PREDICTIONS CONTAINER - ΚΑΡΤΕΣ ΣΕ ΟΡΙΖΟΝΤΙΑ ΔΙΑΤΑΞΗ ΜΕ ΜΕΙΩΜΕΝΟ ΜΕΓΕΘΟΣ */
.predictions-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 50px;
    padding: 0 30px;
}

.predictions-grid {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
    flex-wrap: nowrap;
}

.prediction-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    max-width: 320px;
    width: 100%;
}


.prediction-category h3 {
    color: #FF9800;
    font-size: 1.1em;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    font-weight: 600;
    text-align: center;
}

.specialized-links {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 21px;
}

.specialized-links li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.specialized-links li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.specialized-links li:hover {
    border-bottom: 1px solid #FF9800;
    transform: translateX(5px);
}

/* FIXED ARROW: Properly aligned to the left of text */
.specialized-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 4px 0;
    transition: all 0.3s ease;
    font-size: 0.85em;
    width: 100%;
}

.specialized-links a::before {
    content: '▸';
    color: #FF9800;
    margin-right: 4px;
	font-size: 23px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.specialized-links a:hover {
    color: #FF9800;
}

.specialized-links a:hover::before {
    transform: translateX(3px);
}

/* WDL Styles - ΒΕΛΤΙΩΜΕΝΟ */
.last-5-wdl-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    padding: 15px;
	padding-left: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wdl-letters-container {
    display: flex;
    gap: 8px;
}

.wdl-letter {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    color: white;
    transition: all 0.3s ease;
}


.wdl-letter.w { 
    background: linear-gradient(135deg, #28a745, #20c997); 
    border: 2px solid #1e7e34;
}
.wdl-letter.d { 
    background: linear-gradient(135deg, #ffc107, #ffd54f); 
    color: #000;
    border: 2px solid #d4a017;
}
.wdl-letter.l { 
    background: linear-gradient(135deg, #dc3545, #e83e8c); 
    border: 2px solid #c82333;
}
.wdl-letter.- { 
    background: rgba(255,255,255,0.3); 
    color: rgba(255,255,255,0.7);
    border: 2px solid rgba(255,255,255,0.4);
}

.form-analysis-badge {
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255,255,255,0.3);
}

.form-analysis-badge.excellent { 
    background: linear-gradient(135deg, #28a745, #20c997); 
    color: white; 
}
.form-analysis-badge.good { 
    background: linear-gradient(135deg, #17a2b8, #6f42c1); 
    color: white; 
}
.form-analysis-badge.average { 
    background: linear-gradient(135deg, #ffc107, #fd7e14); 
    color: #000; 
}
.form-analysis-badge.struggling { 
    background: linear-gradient(135deg, #dc3545, #e83e8c); 
    color: white; 
}
.form-analysis-badge.no_data { 
    background: rgba(255,255,255,0.2); 
    color: rgba(255,255,255,0.8); 
}

/* Responsive Design */
@media (max-width: 768px) {
    .match-page-container {
        padding: 10px;
    }
    
    .match-hero-banner {
        padding: 20px 15px;
    }
    
    .match-main-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .team-section {
        min-width: 100%;
    }
    
    .team-main-title {
        font-size: 1.8em;
    }
    
    .match-meta-container {
        position: static;
        margin-top: 15px;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .vs-section {
        padding: 20px 0;
        order: -1;
    }
    
    .vs-text {
        font-size: 1.8em;
    }
    
    /* Enhanced Internal Links Responsive */
    .internal-links-section {
        margin: 40px -15px -30px;
        padding: 30px 20px;
    }
    
    /* FIXED: ΚΑΡΤΕΣ ΣΕ ΚΑΤΑΚΟΡΥΦΗ ΔΙΑΤΑΞΗ ΣΤΟ MOBILE */
    .predictions-container {
        display: block;
        overflow-x: visible;
    }
    
    .predictions-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .prediction-category {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 0;
    }
    
    .match-league-info-top {
        justify-content: center;
    }
    
    .freshness-indicator {
        margin-left: 0;
    }
    
    /* WDL Responsive */
    .last-5-wdl-container {
        gap: 10px;
        padding: 8px;
    }
    
    .wdl-letter {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
    }
    
    .form-analysis-badge {
        font-size: 0.7em;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        justify-content: center;
    }
    
    .predictions-hub h2 {
        font-size: 1.5em;
    }
    
    .team-main-logo {
        width: 140px;
        height: 140px;
    }
    
    .team-main-title {
        font-size: 1.5em;
    }
    
    /* WDL Mobile */
    .last-5-wdl-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .wdl-letters-container {
        order: 2;
    }
    
    .form-analysis-badge {
        order: 1;
    }
}

/* Additional responsive fixes */
@media (min-width: 769px) and (max-width: 1024px) {
    .predictions-grid {
        max-width: 100%;
        gap: 15px;
    }
    
    .prediction-category {
        flex: 1;
        padding: 18px 12px;
    }
}

/* Animation for better UX */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.prediction-category {
    animation: fadeInUp 0.6s ease-out;
}

.prediction-category:nth-child(1) { animation-delay: 0.1s; }
.prediction-category:nth-child(2) { animation-delay: 0.2s; }
.prediction-category:nth-child(3) { animation-delay: 0.3s; }

/* Match specific animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}



/* No content fallback */
.no-content {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.no-content p {
    margin: 0;
    color: #6c757d;
    font-size: 1.1em;
}

/* Team Logo fallback styles */
.team-logo-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 15px;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    color: #fff;
}

/* Schema markup hidden */
[itemscope] {
    display: block;
}

/* Print styles */
@media print {
    .match-header-section {
        background: #1a365d !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .internal-links-section {
        display: none;
    }
    
    .breadcrumb-nav {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .match-header-section {
        background: #000;
    }
    
    .internal-links-section {
        background: #000;
    }
    
    .content-section {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .prediction-category,
    .match-content-wrapper > *,
    .vs-text,
    .freshness-dot,
    .specialized-links li,
    .specialized-links a::before,
    .wdl-letter {
        animation: none;
        transition: none;
    }
    
    .prediction-category:hover,
    .specialized-links li:hover,
    .wdl-letter:hover {
        transform: none;
    }
}

/* ΒΕΛΤΙΩΜΕΝΟ: Επιπλέον στυλ για καλύτερη εμφάνιση */
.predictions-hub {
    position: relative;
    z-index: 2;
}

.predictions-grid {
    position: relative;
    z-index: 3;
}

/* Διόρθωση για οριζόντια διάταξη καρτών */
.predictions-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: stretch !important;
}

.prediction-category {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0px !important;
    min-height: 280px;
}

/* Βεβαιωθείτε ότι οι κάρτες παραμένουν σε οριζόντια διάταξη σε desktop */
@media (min-width: 769px) {
    .predictions-grid {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .prediction-category {
        flex: 1 !important;
        margin: 0 !important;
    }
}

/* Απόκρυψη οριζόντιας κύλισης σε desktop */
.predictions-container {
    overflow-x: visible !important;
}

/* Βελτιστοποίηση για μεγάλες οθόνες */
@media (min-width: 1400px) {
    .predictions-grid {
        max-width: 1300px;
    }
    
    .prediction-category {
        max-width: 400px;
    }

/* ΒΕΛΤΙΩΜΕΝΟ: Κεντραρισμένο League Info με νέα σειρά */
.match-league-info-centered {
    text-align: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.league-country-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    font-size: 1.1em;
    color: rgba(255,255,255,0.95);
    flex-wrap: wrap;
}

.country-flag {
    ffont-size: 1.2em !important;
    margin-right: 0px;
}

.country-name {
    font-weight: 600;
    font-size: 1.1em;
    color: #FF9800;
}

.league-name-main {
    font-weight: 600;
    font-size: 1.1em;
    color: #FF9800;
}

/* ΒΕΛΤΙΩΜΕΝΟ: H1 για SEO */
.match-main-title {
    font-size: 1.9em !important;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: white;
    text-align: center;
    line-height: 1.2;
    padding: 0 20px;
}

.match-prediction-text {
    display: block;
    font-size: 0.5em;
    font-weight: 600;
    color: #FF9800;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ΑΠΟΚΡΥΨΗ: match-meta-container */
.match-meta-container {
    display: none;
}

/* ΑΠΟΚΡΥΨΗ: freshness-indicator */
.freshness-indicator {
    display: none;
}

/* ΑΠΟΚΡΥΨΗ: παλιό match-league-info-top */
.match-league-info-top {
    display: none;
}

/* Responsive για H1 */
@media (max-width: 768px) {
    .match-main-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    
    .match-prediction-text {
        font-size: 0.5em;
    }
    
    .league-country-info {
        gap: 1px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .match-main-title {
        font-size: 1.5em;
    }
    
    .league-country-info {
        flex-direction: column;
        gap: 1px;
    }
    
    .league-separator {
        display: none;
    }
}