* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #c0c0c0;
    line-height: 1.6;
}

nav {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 0 20px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
    gap: 15px;
}

.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 25px;
    margin-left: 60px;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.duel-bar {
    background: #111;
    border-bottom: 1px solid #222;
    padding: 10px 20px;
    text-align: center;
    font-size: 0.85em;
    color: #666;
}

.duel-bar a {
    color: #ff4757;
    text-decoration: none;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    color: #fff;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.subtitle {
    color: #555;
    font-size: 0.9em;
    margin-bottom: 30px;
}

/* 4 KOLUMNER */
.bets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bet-card {
    background: #111;
    border: 1px solid #1a1a1a;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.bet-card:hover {
    border-color: #333;
}

.bet-card.pending {
    border-top: 2px solid #ffa502;
}

.bet-card.win {
    border-top: 2px solid #22c55e;
}

.bet-card.loss {
    border-top: 2px solid #ef4444;
}

.date {
    font-size: 0.75em;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* MATCH / LOGGOR */
.match {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff;
    margin: 10px 0;
    min-height: 28px;
}

.team-side {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    max-width: 45%;
}

.vs {
    color: #444;
    font-size: 0.75em;
    font-weight: 500;
    flex-shrink: 0;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.analysis {
    font-size: 0.85em;
    color: #777;
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

.odds-line {
    border-top: 1px solid #1a1a1a;
    padding-top: 12px;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.odds {
    color: #22c55e;
    font-weight: 600;
    font-size: 0.9em;
}

.duel-link {
    background: transparent;
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 6px 12px;
    font-size: 0.8em;
    text-decoration: none;
    font-weight: 600;
}

.duel-link:hover {
    background: #ff4757;
    color: #fff;
}

.result {
    font-weight: 700;
    font-size: 0.85em;
}

.result.win {
    color: #22c55e;
}

.result.loss {
    color: #ef4444;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0 30px;
    max-width: 600px;
}

.stat-box {
    background: #111;
    border: 1px solid #1a1a1a;
    padding: 16px;
}

.stat-number {
    color: #fff;
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    color: #444;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer {
    border-top: 1px solid #222;
    margin-top: 60px;
    padding: 40px 20px;
    text-align: center;
}

.footer-social {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-social a {
    color: #444;
    text-decoration: none;
    font-size: 0.85em;
}

.footer-social a:hover {
    color: #fff;
}

footer p {
    color: #333;
    font-size: 0.8em;
    margin: 5px 0;
}

footer a {
    color: #ff4757;
    text-decoration: none;
}

/* STATS BAR */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin: 25px 0 35px;
    max-width: 700px;
}

.stat-item {
    background: #111;
    border: 1px solid #1a1a1a;
    padding: 16px 10px;
    text-align: center;
}

.stat-top {
    font-size: 1.6em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.stat-top.win {
    color: #22c55e;
}

.stat-top.loss {
    color: #ef4444;
}

.stat-bottom {
    color: #444;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LOG CONTROLS - SEARCH & SORT */
.log-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 200px;
}

.search-box input {
    width: 100%;
    background: #111;
    border: 1px solid #1a1a1a;
    color: #fff;
    padding: 12px 16px;
    font-size: 0.9em;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #333;
}

.search-box input::placeholder {
    color: #444;
}

.sort-box select {
    background: #111;
    border: 1px solid #1a1a1a;
    color: #fff;
    padding: 12px 35px 12px 16px;
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23444'%3E%3Cpath d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.sort-box select:focus {
    border-color: #333;
}

.sort-box select option {
    background: #111;
    color: #fff;
}

.results-count {
    color: #444;
    font-size: 0.8em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ABOUT PAGE */
.about-hero {
    margin-bottom: 10px;
}

.about-hero h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.about-card {
    background: #111;
    border: 1px solid #1a1a1a;
    padding: 30px;
}

.about-card:hover {
    border-color: #222;
}

.about-card.wide {
    grid-column: 1 / -1;
}

.about-card h3 {
    color: #fff;
    font-size: 0.85em;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-card p {
    color: #888;
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-disclaimer {
    background: #111;
    border: 1px solid #1a1a1a;
    border-left: 3px solid #ff4757;
    padding: 20px 25px;
    margin-top: 20px;
}

.about-disclaimer p {
    color: #555;
    font-size: 0.85em;
    line-height: 1.6;
    margin: 0;
}

/* RESPONSIVT */
@media (max-width: 1200px) {
    .bets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 10px;
    }

    .nav-links {
        margin-left: 0;
        gap: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.8em;
    }

    .duel-bar {
        font-size: 0.78em;
        padding: 8px 12px;
    }

    .container {
        padding: 25px 12px;
    }

    h1 {
        font-size: 1.4em;
    }

    .bets-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bet-card {
        padding: 14px;
    }

    .match {
        font-size: 0.88em;
        gap: 8px;
    }

    .team-logo {
        width: 18px;
        height: 18px;
    }

    .team-side {
        max-width: 46%;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    .stat-top {
        font-size: 1.4em;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 1.6em;
    }

    .footer-social {
        gap: 20px;
    }

    .log-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box,
    .sort-box select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .match {
        font-size: 0.82em;
        gap: 6px;
    }

    .team-logo {
        width: 16px;
        height: 16px;
    }

    .team-side {
        gap: 4px;
        max-width: 48%;
    }

    .vs {
        font-size: 0.7em;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.75em;
    }
}


/* LOADING SPINNER */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #1a1a1a;
    border-top-color: #ff4757;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* FADE IN */
.fade-in {
    animation: fadeIn 0.35s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}