/* ============================================================
   THEME: Λευκό φόντο με πινελιές #24293e & #f26408
   Ενιαίο για ΟΛΕΣ τις σελίδες (αντικαθιστά style.css + blue.css + green.css)
   ============================================================ */

/* ----- CSS Variables (εύκολη αλλαγή χρωμάτων) ----- */
:root {
    --primary-dark: #24293e;      /* σκούρο μπλε/γκρι */
    --primary-orange: #f26408;    /* πορτοκαλί έμφαση */
    --white: #ffffff;
    --bg-light: #f5f6fa;          /* πολύ ανοιχτό γκρι για εναλλαγές */
    --border-color: #dde0e8;      /* ανοιχτό γκρι για σύνορα */
    --text-primary: #1a1d2e;      /* σκούρο για κείμενο */
    --text-secondary: #5a5e72;    /* μεσαίο γκρι για δευτερεύον κείμενο */
    --shadow-sm: 0 2px 8px rgba(36, 41, 62, 0.06);
    --shadow-md: 0 4px 16px rgba(36, 41, 62, 0.10);
    --radius: 8px;
    --transition: all 0.25s ease;
}

/* ----- Βασικό Body (αντικαθιστά το σκοτεινό style.css) ----- */
body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background-color: var(--white) !important;
    color: var(--text-primary) !important;
    font-weight: 300;
    padding: 1px;
    line-height: 1.3 !important;
}

p {
    color: var(--text-secondary);
    font-weight: 300;
}

a {
    color: var(--primary-orange);
    text-decoration: none !important;
    transition: var(--transition);
}
a:hover {
    color: #d85a00; /* πιο σκούρο πορτοκαλί */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ----- Headers & Content ----- */
.content {
    padding:  0;
}

h2 {
    font-size: 20px;
    color: var(--primary-dark);
}

/* ----- Tables (αντικαθιστά blue.css & green.css) ----- */
/* Hover effect σε γραμμές */
.custom-table tbody tr:hover td {
    background-color: #f0f2f8 !important;
    border-top: 1px solid var(--primary-orange);
    border-bottom: 1px solid var(--primary-orange);
    color: var(--primary-dark);
}

/* ---- ΕΙΔΙΚΑ ΓΙΑ tafbasket4.php (playerselect & coltitle) ---- */
/* Όταν κάνεις hover σε player-select (πορτοκαλί επιλογή) */
.custom-table tbody tr:hover td.playerselect {
    background-color: #d85a00 !important; /* σκούρο πορτοκαλί αντί για ανοιχτό */
    color: var(--white) !important;
    border-top: 1px solid var(--primary-orange);
    border-bottom: 1px solid var(--primary-orange);
}

/* Όταν κάνεις hover σε coltitle (παίκτες που παίζουν - σκούρο μπλε) */
.custom-table tbody tr:hover td.coltitle {
    background-color: #1a1d2e !important; /* πιο σκούρο από το #24293e */
    color: var(--white) !important;
    border-top: 1px solid var(--primary-orange);
    border-bottom: 1px solid var(--primary-orange);
}

/* Όταν κάνεις hover σε coltitle ΚΑΙ playerselect μαζί (σπάνιο) */
.custom-table tbody tr:hover td.coltitle.playerselect {
    background-color: #c44f00 !important; /* σκούρο πορτοκαλί */
    color: var(--white) !important;
}

/* Για την περίπτωση που το κείμενο μέσα έχει άλλο χρώμα */
.custom-table tbody tr:hover td.playerselect span,
.custom-table tbody tr:hover td.coltitle span {
    color: var(--white) !important;
}

/* Για τα icons (αστέρια, dribbble) μέσα σε αυτά τα κελιά */
.custom-table tbody tr:hover td.playerselect .icon-star-o,
.custom-table tbody tr:hover td.playerselect .icon-dribbble,
.custom-table tbody tr:hover td.coltitle .icon-star-o,
.custom-table tbody tr:hover td.coltitle .icon-dribbble {
    color: var(--white) !important;
}


/* Border για όλα τα table cells */
.custom-table td,
.custom-table th {
    border: 1px solid var(--border-color);
    padding: 6px 4px;
    vertical-align: middle;
}

/* Κεφαλίδες πίνακα */
.custom-table thead tr,
.custom-table thead th {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
    font-size: 13px;
    font-weight: 700;
    /* text-transform: uppercase; */
    letter-spacing: 0.05rem;
    text-align: center;
    border: 1px solid var(--primary-dark);
    padding: 8px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Πρώτο th χωρίς αριστερό border */
.custom-table thead th:first-child {
    border-left: none;
}

/* Γραμμές του πίνακα (ζυγές/μονές) */
.custom-table tbody tr:nth-of-type(odd) {
    background-color: var(--bg-light) !important;
}
.custom-table tbody tr:nth-of-type(even) {
    background-color: var(--white) !important;
}

/* Cells */
.custom-table tbody td {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 400;
    padding: 1px 4px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover effect σε γραμμές (αντικαθιστά το κίτρινο του style.css) */
.custom-table tbody tr:hover td {
    background-color: #f0f2f8 !important;
    border-top: 1px solid var(--primary-orange);
    border-bottom: 1px solid var(--primary-orange);
    color: var(--primary-dark);
}
.custom-table tbody tr:hover td a {
    color: var(--primary-orange);
}
.custom-table tbody tr:hover td .more {
    color: var(--primary-orange);
}

/* ---- Coltitle (κεντρική στήλη με τίτλο) ---- */
.coltitle {
    background-color: var(--primary-dark) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    /*text-transform: uppercase;*/
    letter-spacing: 0.04em;
    padding: 6px 4px !important;
    border-radius: 4px;
    text-align: center !important;
}

/* ---- Lbox (αριστερό border στατιστικών) ---- */
.lbox {
    border-left: 3px solid var(--primary-orange) !important;
    background-color: #f8f9fc !important;
    font-weight: 600;
}

/* ---- custom-table-borderless (πάνω μπάρα) ---- */
.custom-table-borderless {
    padding-bottom: 2px !important;
    text-align: center !important;
    color: var(--primary-dark) !important;
    font-size: 26px !important;
    /*text-transform: uppercase;*/
    letter-spacing: 0.1rem !important;
    border: none !important;
    background: transparent !important;
}
.custom-table-borderless thead th {
    background: transparent !important;
    color: var(--primary-dark) !important;
    border: none !important;
    font-weight: 700;
}
.custom-table-borderless tbody td {
    border: none;
}

/* ---- Player Select (h2h σελίδα) ---- */
.playerselect {
    background: var(--primary-orange) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    border-radius: 4px;
}
.playerselect td,
.playerselect span {
    color: var(--white) !important;
}

/* ---- Κουμπιά πλοήγησης (buttondiv) ---- */
.buttondiv {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 5px;
    padding-top: 1px;
    border-top: 2px solid var(--border-color);
    position: relative;
    top: auto;
    height: auto;
}

.isbutton {
    text-align: center;
    padding: 6px 0;
    max-width: 80px;
    transition: var(--transition);
}
.isbutton a {
    display: inline-block;
}
.isbutton img {
    max-width: 48px;
    height: auto;
    opacity: 0.55;
    transition: var(--transition);
}
.isbutton:hover img {
    opacity: 1;
    transform: scale(1.08);
}
.isbutton.btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ---- Language switcher ---- */
a[href*="ln=gr"],
a[href*="ln=en"] {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    color: var(--primary-dark);
}
a[href*="ln=gr"]:hover,
a[href*="ln=en"]:hover {
    background: var(--primary-orange);
    color: var(--white) !important;
    border-color: var(--primary-orange);
}

/* ---- Icons (icomoon) ---- */
/* ============================================================
   ICONS (icomoon) - με υποστήριξη για coltitle
   ============================================================ */

/* Βασικά χρώματα icons */
.icon-star,
.icon-star-o,
.icon-dribbble {
    color: var(--primary-orange);
    font-size: 1.1rem;
}

/* Το άδειο αστέρι (icon-star-o) σε κανονική κατάσταση */
.icon-star-o {
    color: var(--primary-dark);
}

/* ---- ΕΙΔΙΚΑ ΓΙΑ tafbasket4.php ---- */

/* Όταν το icon-star-o βρίσκεται μέσα σε coltitle (μπλε φόντο) */
.coltitle .icon-star-o {
    color: var(--primary-orange) !important; /* πορτοκαλί αστέρι */
}

/* Όταν το icon-dribbble βρίσκεται μέσα σε coltitle (μπλε φόντο) */
.coltitle .icon-dribbble {
    color: var(--primary-orange) !important; /* πορτοκαλί μπάλα */
}

/* Για επιπλέον ασφάλεια - όλα τα icons μέσα σε coltitle */
.coltitle [class^="icon-"],
.coltitle [class*=" icon-"] {
    color: var(--primary-orange) !important;
}

/* ---- Hover states (όταν κάνεις hover σε coltitle) ---- */

/* Όταν κάνεις hover σε coltitle, τα icons παραμένουν πορτοκαλί */
.custom-table tbody tr:hover td.coltitle .icon-star-o,
.custom-table tbody tr:hover td.coltitle .icon-dribbble,
.custom-table tbody tr:hover td.coltitle [class^="icon-"],
.custom-table tbody tr:hover td.coltitle [class*=" icon-"] {
    color: var(--primary-orange) !important;
}

/* Όταν κάνεις hover σε playerselect (πορτοκαλί φόντο), τα icons γίνονται λευκά */
.custom-table tbody tr:hover td.playerselect .icon-star-o,
.custom-table tbody tr:hover td.playerselect .icon-dribbble,
.custom-table tbody tr:hover td.playerselect [class^="icon-"],
.custom-table tbody tr:hover td.playerselect [class*=" icon-"] {
    color: var(--white) !important;
}

/* ---- Overhide (βοηθητικό) ---- */
.overhide {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* ---- Μικρό κείμενο ---- */
.smallfo {
    font-size: small !important;
}

/* ---- Κείμενο (αντικαθιστά inline style) ---- */
.txtl { text-align: left !important; }
.txtc { text-align: center !important; }
.txtr { text-align: right !important; }
.txtbig {
    font-weight: 700 !important;
    font-size: 16px !important;
}

/* ---- Box (αν υπάρχει) ---- */
.custom-table .box {
    background: var(--white);
    border-radius: 4px;
    margin-top: 15px;
    margin-bottom: 15px;
}
.custom-table .box td,
.custom-table .box th {
    border: none !important;
}

/* ---- Υποστήριξη για yellowTable/greenTable/blueTable (αν χρησιμοποιούνται κάπου) ---- */
.blueTable,
.greenTable,
.yellowTable {
    width: 100%;
    background-color: var(--white) !important;
    border-collapse: collapse;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.blueTable thead,
.greenTable thead,
.yellowTable thead {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
}
.blueTable thead th,
.greenTable thead th,
.yellowTable thead th {
    background: var(--primary-dark) !important;
    color: var(--white) !important;
    border: 1px solid var(--primary-dark);
    padding: 8px 4px;
}
.blueTable tbody tr:nth-of-type(even),
.greenTable tbody tr:nth-of-type(even),
.yellowTable tbody tr:nth-of-type(even) {
    background: var(--bg-light) !important;
}
.blueTable tbody td,
.greenTable tbody td,
.yellowTable tbody td {
    border: 1px solid var(--border-color);
    padding: 5px 4px;
    font-size: 14px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }
    .custom-table thead th {
        font-size: 10px;
        padding: 4px 2px;
        letter-spacing: 0.02rem;
    }
    .custom-table tbody td {
        font-size: 11px;
        padding: 3px 2px;
    }
    .coltitle {
        font-size: 10px !important;
        padding: 3px 2px !important;
    }
    .txtbig {
        font-size: 13px !important;
    }
    .buttondiv {
        gap: 8px;
        padding-top: 10px;
    }
    .isbutton {
        max-width: 60px;
    }
    .isbutton img {
        max-width: 36px;
    }
    .custom-table-borderless {
        font-size: 12px !important;
        letter-spacing: 0.05rem !important;
    }
}

/* ---- Print ---- */
@media print {
    body {
        background: white !important;
        padding: 0 !important;
    }
    .custom-table {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
    .custom-table thead th {
        background: #eee !important;
        color: #000 !important;
        border: 1px solid #999 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .coltitle {
        background: #ddd !important;
        color: #000 !important;
    }
    .buttondiv {
        display: none !important;
    }
}