/* PvP Page Specific Styles */

/* PvP Navigation */
.pvp-nav {
    background: rgba(26, 26, 26, 0.95);
    padding: 2rem 0;
    border-bottom: 2px solid #4CAF50;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.pvp-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pvp-nav-btn {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #e0e0e0;
    border: 2px solid #4CAF50;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.pvp-nav-btn:hover,
.pvp-nav-btn.active {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* PvP Sections */
.pvp-section {
    display: none;
    padding: 4rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.pvp-section.active {
    display: block;
}

.section-title {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.section-description {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Rankings Overview */
.rankings-overview {
    margin-bottom: 3rem;
}

.ranking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
}

/* Rankings Table */
.rankings-table {
    margin-bottom: 3rem;
}

.rankings-table h3 {
    color: #4CAF50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.table-container {
    overflow-x: auto;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 1rem;
}

.honor-table {
    width: 100%;
    border-collapse: collapse;
    color: #e0e0e0;
}

.honor-table th {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #4CAF50;
}

.honor-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

.honor-table tr:hover {
    background: rgba(76, 175, 80, 0.1);
}

.rank-1 {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
}

.rank-2 {
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1), transparent);
}

.rank-3 {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent);
}

/* Player Info */
.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.player-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.player-title {
    font-size: 0.9rem;
    color: #b8860b;
    font-style: italic;
}

/* Class Colors */
.class {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.class.warrior {
    background: rgba(199, 156, 110, 0.2);
    color: #C79C6E;
    border: 1px solid #C79C6E;
}

.class.paladin {
    background: rgba(245, 140, 186, 0.2);
    color: #F58CBA;
    border: 1px solid #F58CBA;
}

.class.hunter {
    background: rgba(171, 212, 115, 0.2);
    color: #ABD473;
    border: 1px solid #ABD473;
}

.class.rogue {
    background: rgba(255, 245, 105, 0.2);
    color: #FFF569;
    border: 1px solid #FFF569;
}

.class.priest {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.class.shaman {
    background: rgba(0, 112, 222, 0.2);
    color: #0070DE;
    border: 1px solid #0070DE;
}

.class.mage {
    background: rgba(105, 204, 240, 0.2);
    color: #69CCF0;
    border: 1px solid #69CCF0;
}

.class.warlock {
    background: rgba(148, 130, 201, 0.2);
    color: #9482C9;
    border: 1px solid #9482C9;
}

.class.druid {
    background: rgba(255, 125, 10, 0.2);
    color: #FF7D0A;
    border: 1px solid #FF7D0A;
}

/* Honor Ranks */
.honor-rank {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.honor-rank.rank-14 {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid #FFD700;
}

.honor-rank.rank-13 {
    background: rgba(255, 140, 0, 0.2);
    color: #FF8C00;
    border: 1px solid #FF8C00;
}

.honor-rank.rank-12 {
    background: rgba(255, 69, 0, 0.2);
    color: #FF4500;
    border: 1px solid #FF4500;
}

.honor-rank.rank-11 {
    background: rgba(220, 20, 60, 0.2);
    color: #DC143C;
    border: 1px solid #DC143C;
}

.honor-rank.rank-10 {
    background: rgba(138, 43, 226, 0.2);
    color: #8A2BE2;
    border: 1px solid #8A2BE2;
}

/* Status */
.status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.status.inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
    border: 1px solid #9E9E9E;
}

/* Teams Grid */
.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.team-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

.team-header h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin: 0;
}

.team-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.team-status.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.team-status.recruiting {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.team-status.forming {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid #2196F3;
}

.team-info {
    margin-bottom: 1.5rem;
}

.team-info > div {
    margin-bottom: 0.8rem;
    color: #e0e0e0;
}

.team-info strong {
    color: #4CAF50;
}

.team-composition h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.composition-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-group {
    background: rgba(76, 175, 80, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.role-title {
    display: block;
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.players {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.player {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(76, 175, 80, 0.2);
    color: #e0e0e0;
    border: 1px solid #4CAF50;
}

.player-slot.empty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
    border: 1px dashed #9E9E9E;
    font-style: italic;
}

.team-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(76, 175, 80, 0.3);
}

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    color: #4CAF50;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.stat-value {
    color: #e0e0e0;
    font-size: 1.2rem;
    font-weight: 600;
}

.join-team-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.join-team-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Schedule Calendar */
.schedule-calendar {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-header h3 {
    color: #4CAF50;
    font-size: 1.5rem;
    margin: 0;
}

.week-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.week-btn {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.week-btn:hover {
    background: #4CAF50;
    color: #000;
}

.current-week {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 1.1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.day-column {
    background: rgba(76, 175, 80, 0.05);
    border-radius: 10px;
    padding: 1rem;
    min-height: 150px;
}

.day-header {
    color: #4CAF50;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event {
    padding: 0.8rem;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 0.9rem;
}

.event.premade {
    background: rgba(76, 175, 80, 0.2);
    border-left-color: #4CAF50;
}

.event.casual {
    background: rgba(33, 150, 243, 0.2);
    border-left-color: #2196F3;
}

.event.world-pvp {
    background: rgba(255, 152, 0, 0.2);
    border-left-color: #FF9800;
}

.event-time {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.8rem;
}

.event-title {
    color: #e0e0e0;
    font-weight: 600;
    margin: 0.3rem 0;
}

.event-leader {
    color: #b8860b;
    font-size: 0.8rem;
    font-style: italic;
}

/* Event Legend */
.event-legend {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 10px;
    padding: 1.5rem;
}

.event-legend h4 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legend-items {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.premade {
    background: #4CAF50;
}

.legend-color.casual {
    background: #2196F3;
}

.legend-color.world-pvp {
    background: #FF9800;
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.guide-header h3 {
    color: #4CAF50;
    font-size: 1.3rem;
    margin: 0;
}

.guide-difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.guide-difficulty.beginner {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.guide-difficulty.intermediate {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
    border: 1px solid #FFC107;
}

.guide-difficulty.advanced {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid #F44336;
}

.guide-difficulty.all-levels {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
    border: 1px solid #9C27B0;
}

.guide-content p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.guide-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.topic {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #4CAF50;
}

.read-guide-btn {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: #000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.read-guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .pvp-nav-buttons {
        gap: 0.5rem;
    }
    
    .pvp-nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .ranking-stats {
        grid-template-columns: 1fr;
    }
    
    .teams-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .day-column {
        min-height: auto;
    }
    
    .calendar-header {
        flex-direction: column;
        text-align: center;
    }
    
    .week-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legend-items {
        justify-content: center;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 0.9rem;
    }
    
    .honor-table th,
    .honor-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .team-card,
    .guide-card,
    .schedule-calendar {
        padding: 1.5rem;
    }
    
    .composition-grid {
        gap: 0.5rem;
    }
    
    .players {
        gap: 0.3rem;
    }
    
    .player,
    .player-slot.empty {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .pvp-nav {
        display: none !important;
    }
    
    .pvp-section {
        display: block !important;
        padding: 1rem 0;
    }
    
    .team-card,
    .guide-card,
    .schedule-calendar {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
}

/* Accessibility */
.pvp-nav-btn:focus,
.join-team-btn:focus,
.read-guide-btn:focus,
.week-btn:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .team-card,
    .guide-card,
    .schedule-calendar,
    .stat-card {
        border-width: 3px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .team-card,
    .guide-card,
    .stat-card,
    .pvp-nav-btn,
    .join-team-btn,
    .read-guide-btn {
        transition: none;
    }
}
