/* ============================================================
   GLOBAL & THEME
   ============================================================ */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f0f0f;
    color: #e5e5e5;
    transition: background 0.3s, color 0.3s;
}

/* Light Theme */
body[data-theme="light"] {
    background: #f2f2f2;
    color: #111;
}

/* Centered wrapper */
.page-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 15px;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: #141414;
    padding: 12px 20px;
    border-bottom: 1px solid #222;
}

/* Light */
body[data-theme="light"] .topbar {
    background: #e4e4e4;
    border-bottom: 1px solid #ccc;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #00cc66;
    letter-spacing: 1px;
}

/* MENIU */
.main-menu {
    display: flex;
    gap: 10px;
}

.menu-btn {
    padding: 6px 16px;
    border-radius: 20px;
    background: #1f1f1f;
    color: white;
    text-decoration: none;
    transition: 0.2s;
    font-size: 15px;
}

.menu-btn:hover {
    background: #00cc66;
    color: #000;
}

.menu-btn.active {
    background: #00cc66;
    color: #000;
}

/* Light mode */
body[data-theme="light"] .menu-btn {
    background: #d5d5d5;
    color: #222;
}
body[data-theme="light"] .menu-btn.active {
    background: #00cc66;
    color: #000;
}

/* ACTIONS (Search + Settings) */
.top-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input {
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    outline: none;
    background: #1d1d1d;
    color: white;
}

body[data-theme="light"] .search-input {
    background: #d6d6d6;
    color: #111;
}

/* Settings Button */
.settings-btn {
    font-size: 18px;
    background: #1f1f1f;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
}

.settings-btn:hover {
    background: #00cc66;
    color: #000;
}

body[data-theme="light"] .settings-btn {
    background: #d6d6d6;
    color: #111;
}

/* ============================================================
   SETTINGS PANEL (dropdown)
   ============================================================ */

.settings-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: 220px;
    background: #141414;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
    display: none;
}

body[data-theme="light"] .settings-panel {
    background: #e4e4e4;
    border-color: #bbb;
}

.settings-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

/* Toggle row */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    background: #aaa;
    border-radius: 20px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    background: white;
    border-radius: 50%;
    left: 3px;
    bottom: 3px;
    transition: .4s;
}

input:checked + .slider {
    background: #00cc66;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

/* About button */
.about-btn {
    width: 100%;
    padding: 6px;
    border: none;
    background: #00cc66;
    color: #000;
    border-radius: 6px;
    cursor: pointer;
}


/* ============================================================
   ABOUT MODAL
   ============================================================ */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #141414;
    padding: 20px;
    max-width: 400px;
    border-radius: 12px;
}

body[data-theme="light"] .modal-content {
    background: #fafafa;
}

.close-btn {
    margin-top: 10px;
    padding: 6px 12px;
    border: none;
    background: #00cc66;
    color: black;
    cursor: pointer;
    border-radius: 6px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    width: 260px;
    background: #141414;
    padding: 10px;
    border-radius: 10px;
    height: calc(100vh - 40px);
    overflow-y: auto;
}

.league-item {
    padding: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #222;
}

.league-item img {
    width: 22px;
    height: 22px;
}

.league-item:hover {
    background: #1f1f1f;
}

/* ============================================================
   CONTENT
   ============================================================ */

.content {
    flex: 1;
    background: #141414;
    padding: 15px;
    border-radius: 10px;
}

/* Days bar */
#days-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.day-btn {
    padding: 8px 12px;
    background: #222;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.active-day {
    background: #00cc66;
    color: #000;
    font-weight: bold;
}

/* League & matches */
.league-block {
    margin-bottom: 25px;
}

.league-block h2 {
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

.match-row {
    padding: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.match-row:hover {
    background: #1f1f1f;
}

/* Live pulse */
.live-pulse {
    animation: puls 1.5s infinite;
}

@keyframes puls {
    0% { background: #1f1f1f; }
    50% { background: #292929; }
    100% { background: #1f1f1f; }
}
