/* LUGI Profixio Integration - Clean Modern Styles */

/* Full width container */
.lugi-full-width-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Container with max-width */
.lugi-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.lugi-page-header {
    background: #96242d;
    color: white;
    padding: 40px 0 30px;
    margin-bottom: 40px;
}

.lugi-page-title {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 25px;
    color: white !important;
    text-align: center;
}

/* Team Navigation */
.lugi-team-navigation {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
}

.lugi-nav-link {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lugi-nav-link:first-child {
    border-radius: 25px 0 0 25px;
}

.lugi-nav-link:last-child {
    border-radius: 0 25px 25px 0;
}

.lugi-nav-link:only-child {
    border-radius: 25px;
}

.lugi-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.lugi-nav-link.active {
    background: white;
    color: #96242d;
    font-weight: 600;
}

/* Content Areas */
.lugi-matches-content,
.lugi-standings-content {
    max-width: 100%;
}

/* Match Filter Buttons */
.match-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.match-filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.match-filter-btn:hover {
    border-color: #64000a;
    color: #64000a;
}

.match-filter-btn.active {
    background: #64000a;
    border-color: #64000a;
    color: white;
}

/* Match List Container */
.lugi-matches-container {
    margin: 0;
}

.lugi-matches-container h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: white;
    margin: 0 0 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #96242d;
    display: inline-block;
}

/* Match Grid Layout */
.lugi-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Match Item Cards */
.lugi-match-item {
    background: linear-gradient(160deg, rgba(50,20,25,0.92), rgba(100,0,10,0.85));
    border-radius: 16px;
    padding: 20px 25px 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lugi-match-item.played {
    background: linear-gradient(160deg, rgba(30,30,35,0.92), rgba(50,20,25,0.85));
}

.lugi-match-item.upcoming {
    background: linear-gradient(160deg, rgba(50,20,25,0.92), rgba(100,0,10,0.85));
}

/* Match Top Row */
.match-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.match-badge {
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.85);
    background: transparent;
    padding: 0;
    border: none;
}

.match-date-label {
    font-size: 0.75em;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
}

/* Match Logos Row Layout */
.match-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 8px 0;
}

.match-logo-wrap {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-team-logo {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

/* Match VS Badge (unplayed matches) */
.match-vs-badge {
    font-size: 0.8em;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
}

/* Match Team Names */
.match-team-names {
    font-size: 0.95em;
    font-weight: 500;
    color: white;
    margin-top: 5px;
    text-align: center;
}

/* Match Time */
.match-time-label {
    font-size: 0.85em;
    color: rgba(255,255,255,0.7);
    margin-top: 3px;
}

/* Match Action Button */
.match-action {
    margin-top: 12px;
}

.match-action-btn,
.match-action-btn:link,
.match-action-btn:visited {
    display: inline-block;
    padding: 8px 22px;
    background: #a01020;
    color: #fff !important;
    text-decoration: none !important;
    border: none;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    transition: background 0.2s ease;
}

.match-action-btn:hover,
.match-action-btn:focus,
.match-action-btn:active {
    background: #c41e3a;
    color: #fff !important;
    text-decoration: none !important;
}

/* Stream Link (underlined text, not button) */
.match-stream-link,
.match-stream-link:link,
.match-stream-link:visited {
    color: #fff !important;
    text-decoration: underline !important;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase !important;
    letter-spacing: 0.3px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.match-stream-link:hover,
.match-stream-link:focus,
.match-stream-link:active {
    color: rgba(255,255,255,0.8) !important;
    text-decoration: underline !important;
}

/* Match Score */
.match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.3em;
    font-weight: 700;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 20px;
    min-width: 80px;
}

.match-score .home-score,
.match-score .away-score {
    color: #96242d;
}

.match-score .score-separator {
    color: black;
}

/* Match Venue */
.match-venue {
    font-size: 0.85em;
    color: white;
    text-align: center;
    background: transparent;
    padding: 8px 12px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.venue-icon {
    font-size: 1.1em;
}

/* Match Team Label with Ticket/Stream Links */
.match-team-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.team-badge {
    background: transparent;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.team-badge.herr {
    background-color: #610010;
}

.team-badge.dam {
    background-color: #a41028;
}

.series-badge {
    background: transparent;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 500;
}

/* Ticket/Stream Links */
.match-ticket-link {
    margin-left: auto;
    padding: 6px 14px;
    background: transparent;
    border: none;
    color: white !important;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.match-ticket-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.match-ticket-link.stream-link {
    color: white !important;
}

/* Standings Table */
.lugi-standings-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.lugi-standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.lugi-standings-table th {
    background: #610010;
    color: white;
    padding: 15px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lugi-standings-table th:first-child {
    border-radius: 0;
}

.lugi-standings-table th:last-child {
    border-radius: 0;
}

.lugi-standings-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: white;
}

.lugi-standings-table .team-name {
    text-align: left;
    font-weight: 500;
}

.lugi-standings-table tr:hover {
    background: #f8f9fa;
}

.lugi-team-row {
    background: #fef4f5 !important;
    font-weight: 700;
    border-left: 4px solid #610010;
}

.lugi-team-row td {
    color: #610010 !important;
    font-weight: 600;
}

.lugi-team-row:hover {
    background: #fde8ea !important;
}

.lugi-standings-table .points {
    font-weight: 700;
    color: white;
    font-size: 1.1em;
}

/* Mini Standings Widget */
.lugi-mini-standings {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lugi-mini-standings .lugi-standings-table {
    font-size: 0.9em;
}

/* Next Match Widget */
.lugi-next-match-widget {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lugi-container {
        padding: 0 15px;
    }
    
    .lugi-page-header {
        padding: 30px 0 20px;
        margin-bottom: 30px;
    }
    
    .lugi-page-title {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .lugi-team-navigation {
        flex-direction: column;
        gap: 2px;
    }
    
    .lugi-nav-link {
        border-radius: 0 !important;
        text-align: center;
    }
    
    .lugi-nav-link:first-child {
        border-radius: 8px 8px 0 0 !important;
    }
    
    .lugi-nav-link:last-child {
        border-radius: 0 0 8px 8px !important;
    }
    
    .lugi-matches {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .match-logos-row {
        gap: 12px;
    }

    .match-logo-wrap {
        width: 45px;
        height: 45px;
    }

    .match-team-logo {
        max-width: 45px;
        max-height: 45px;
    }
    
    .lugi-standings-table {
        font-size: 0.8em;
    }
    
    .lugi-standings-table th,
    .lugi-standings-table td {
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .lugi-page-title {
        font-size: 1.8em;
    }
    
    .lugi-nav-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .match-score {
        font-size: 1.1em;
        padding: 8px 12px;
    }
}