/* ==========================================================
   OpenLeague Portal — Stylesheet
   Color palette: Navy (#0e2440) + Warm beige (#eae5e0)
   ========================================================== */

/* --- Fonts --- */
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-CondLight.ttf') format('truetype');
    font-weight: 300;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-CondBold.ttf') format('truetype');
    font-weight: 700;
}
@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-CondLightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: 'OpenSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    color: #2c2c2c;
    background-color: #f5f2ef;
    line-height: 1.6;
    font-size: 15px;
}

a {
    color: #0e2440;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #1a4a7a;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Top Banner --- */
.maintitle {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-image: url("../img/hurray.jpg");
    background-position: center 30%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    color: white;
    padding-bottom: 0;
}
.maintitle::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(14, 36, 64, 0.7) 0%, rgba(14, 36, 64, 0.5) 100%);
    z-index: 1;
}
.maintitle > * {
    position: relative;
    z-index: 2;
}

/* --- Top bar (logged in as / logout) --- */
.logging_holder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 20px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}
.logging_holder a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}
.logging_holder a:hover {
    background: rgba(255,255,255, 0.15);
    text-decoration: none;
}
#echouser {
    opacity: 0.8;
    float: none !important;
}
#logout {
    float: none !important;
}

/* --- Title --- */
#title {
    margin-top: 30px;
    margin-bottom: 10px;
    padding: 10px;
}
#title h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 1px;
	color: white;
}

/* --- Navigation --- */
.navbar {
    width: 100%;
    margin-bottom: 0;
    text-align: center;
    line-height: 1em;
    background: #1a1a1a;
}

.menu {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #1a1a1a;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.95em;
    font-weight: 700;
}

.menu li {
    display: block;
    flex: 0 0 auto;
}

.menu li a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 14px 1.6em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-bottom: 3px solid transparent;
}

.menu li a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
    border-bottom-color: rgba(255,255,255,0.3);
}

.menu li.active a,
li.active a {
    background-color: #0e6b3a;
    color: white;
    border-bottom-color: #4CAF50;
}

/* --- Main Content Area --- */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.container-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* --- Headings --- */
h1 {
    font-size: 1.9em;
    color: #0e2440;
    font-weight: 700;
    margin-bottom: 10px;
}
h2 {
    font-size: 1.4em;
    color: #0e2440;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
}
h3 {
    font-size: 1.15em;
    color: #333;
    font-weight: 700;
    margin-top: 16px;
}

/* --- Flash Messages --- */
p[style*="color:red"],
p[style*="color: red"] {
    background: #fdecea !important;
    color: #b71c1c !important;
    border: 1px solid #f5c6cb !important;
    border-left: 4px solid #d32f2f !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
}

p[style*="color:green"],
p[style*="color: green"] {
    background: #e8f5e9 !important;
    color: #1b5e20 !important;
    border: 1px solid #c8e6c9 !important;
    border-left: 4px solid #4CAF50 !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
    margin-bottom: 16px !important;
    font-weight: 600 !important;
}

/* --- Buttons --- */
input[type=button],
input[type=submit],
input[type=reset] {
    background-color: #0e2440;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(14, 36, 64, 0.25);
    letter-spacing: 0.3px;
    margin: 3px 2px;
}

input[type=button]:hover,
input[type=submit]:hover,
input[type=reset]:hover {
    background-color: #163558;
    box-shadow: 0 4px 12px rgba(14, 36, 64, 0.35);
    transform: translateY(-1px);
}

input[type=button]:active,
input[type=submit]:active,
input[type=reset]:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(14, 36, 64, 0.3);
}

.minibutton {
    padding: 4px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

/* --- Select Dropdowns --- */
select {
    background-color: #0e2440;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(14, 36, 64, 0.25);
    appearance: auto;
    margin: 3px 2px;
    width: auto;
    max-width: 100%;
}
select:hover {
    background-color: #163558;
}

/* --- Text Inputs --- */
input[type=text],
input[type=password],
input[type=email],
input[type=number],
input[type=date],
textarea {
    padding: 10px 14px;
    border: 2px solid #d0cbc6;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
    width: auto;
}
input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus,
input[type=number]:focus,
input[type=date]:focus,
textarea:focus {
    outline: none;
    border-color: #0e2440;
    box-shadow: 0 0 0 3px rgba(14, 36, 64, 0.1);
}

input[type=file] {
    font-family: inherit;
    font-size: 14px;
    padding: 6px;
}

/* --- Form Containers --- */
.formcontainer {
    padding: 24px;
    background-color: #eae5e0;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    border: 1px solid #d8d2cc;
}
.formcontainer h2,
.formcontainer h3 {
    margin-top: 0;
    color: #0e2440;
}
.formcontainer p {
    margin-bottom: 4px;
    font-weight: 600;
    color: #444;
}

/* --- Tables --- */
table {
    width: 100%;
    border: none;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    margin-bottom: 16px;
}

thead {
    background-color: #0e2440;
    color: white;
}
thead th {
    padding: 14px 16px;
    font-weight: 700;
    text-align: center;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

tbody td {
    padding: 10px 14px;
    text-align: center;
    vertical-align: middle;
}

tbody tr {
    transition: background-color 0.15s;
}
tbody tr:nth-child(odd) {
    background-color: #ddd4ce;
}
tbody tr:nth-child(even) {
    background-color: #eae5e0;
}
tbody tr:hover {
    background-color: #cfc6be !important;
}

tbody td a {
    color: #0e2440;
    font-weight: 600;
}
tbody td a:hover {
    color: #1a4a7a;
}

/* --- Checkbox lists --- */
input[type=checkbox] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    vertical-align: middle;
    accent-color: #0e2440;
}
label {
    cursor: pointer;
    vertical-align: middle;
}

/* --- Positions layout (lineup) --- */
.positions {
    overflow: hidden;
    width: 100%;
    display: flex;
    gap: 16px;
}

#goalkeepersadded,
#defendersadded,
#attackersadded {
    flex: 1;
    min-width: 0;
}

#teamlist {
    column-count: 3;
    column-gap: 20px;
    white-space: nowrap;
}

/* --- Edit content layout --- */
.editcontent {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.editform {
    flex: 1;
    min-width: 300px;
}
.photo {
    flex: 1;
    min-width: 200px;
}

/* --- Lists --- */
.container-content ul {
    padding-left: 24px;
}
.container-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* --- Login Page --- */
.container-content form input[type=text],
.container-content form input[type=password] {
    display: block;
    margin-bottom: 12px;
    min-width: 280px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .container-content {
        max-width: 100%;
        padding: 0 10px;
    }
    table {
        font-size: 13px;
        min-width: 0;
    }
    thead th {
        padding: 10px 8px;
        font-size: 0.8em;
    }
    tbody td {
        padding: 8px 6px;
    }
    .menu {
        font-size: 0.85em;
    }
    .menu li a {
        padding: 12px 1em;
    }
    #title h1 {
        font-size: 1.8em;
    }
    .maintitle {
        min-height: 180px;
    }
    .positions,
    .editcontent {
        flex-direction: column;
    }
    #teamlist {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .menu {
        flex-direction: column;
    }
    .menu li a {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .maintitle {
        min-height: 150px;
    }
    #title h1 {
        font-size: 1.4em;
    }
    .container {
        padding: 16px 10px 40px;
    }
    #teamlist {
        column-count: 1;
    }
    table {
        font-size: 12px;
    }
}




/* ============================================================
   OpenLeague Portal — Lock feature styles
   Πρόσθεσε αυτές τις δηλώσεις στο τέλος του css/customcss.css
   ============================================================ */

/* --- Banner για users (και admins) όταν είναι locked --- */
.portal-lock-banner {
    background-color: #fff3cd;
    border: 2px solid #f0b429;
    border-left: 8px solid #d97706;
    color: #78350f;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 10px 0 20px 0;
    font-size: 1em;
    line-height: 1.5;
}
.portal-lock-banner strong {
    color: #7c2d12;
}
.portal-lock-banner-admin {
    background-color: #e0e7ff;
    border-color: #6366f1;
    border-left-color: #4338ca;
    color: #1e3a8a;
}
.portal-lock-banner-admin strong {
    color: #1e3a8a;
}
.portal-lock-banner a {
    color: inherit;
    text-decoration: underline;
    font-weight: 700;
}

/* --- Lock panel στο adminportal --- */
.lock-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border-radius: 8px;
    margin: 10px 0 30px 0;
    border: 2px solid transparent;
    flex-wrap: wrap;
}
.lock-panel-open {
    background-color: #ecfdf5;
    border-color: #10b981;
}
.lock-panel-locked {
    background-color: #fef2f2;
    border-color: #dc2626;
}
.lock-panel-status {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lock-panel-status strong {
    font-size: 1.1em;
    color: #0e2440;
}
.lock-panel-sub {
    color: #4b5563;
    font-size: 0.92em;
    margin-top: 4px;
}
.lock-icon {
    font-size: 2em;
    line-height: 1;
}
.lock-btn {
    padding: 12px 22px;
    font-size: 1em;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-family: inherit;
    transition: background-color 0.15s, transform 0.1s;
}
.lock-btn:hover {
    transform: translateY(-1px);
}
.lock-btn-lock {
    background-color: #dc2626;
}
.lock-btn-lock:hover {
    background-color: #b91c1c;
}
.lock-btn-unlock {
    background-color: #059669;
}
.lock-btn-unlock:hover {
    background-color: #047857;
}
