/* ==========================================================================
   CLASH ROYALE TOURNAMENT SYSTEM - MAIN STYLES
   ========================================================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a202c 25%, #2d3748 75%, #1a202c 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2d3748;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    text-decoration: none;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

.hero-logo {
    width: 164px;
    height: 164px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #a0aec0;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    color: #e2e8f0;
    background: rgba(56, 178, 172, 0.1);
    transform: translateY(-1px);
}

.nav-item.admin-link {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #1a202c;
    margin-left: 10px;
}

.nav-item.admin-link:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #ffc107 100%);
    color: #000;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: #e2e8f0;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    background: linear-gradient(135deg, 
        rgba(26, 32, 44, 0.9) 0%, 
        rgba(45, 55, 72, 0.8) 50%, 
        rgba(26, 32, 44, 0.9) 100%),
        radial-gradient(circle at 30% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(56, 178, 172, 0.1) 0%, transparent 50%);
    margin-top: 70px;
    padding: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff03" points="0,1000 1000,0 1000,1000"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #ffc107;
}

.hero p {
    font-size: 1.3rem;
    color: #cbd5e0;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffc107;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
    padding: 80px 0;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2d3748;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: #ffc107;
}

.view-all {
    color: #38b2ac;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #4fd1c7;
}

.month-label {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #1a202c;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   PLAYER OF THE MONTH
   ========================================================================== */

.player-of-month {
    margin-bottom: 60px;
}

.player-card.featured {
    background: linear-gradient(135deg, 
        rgba(255, 193, 7, 0.15) 0%, 
        rgba(45, 55, 72, 0.9) 50%, 
        rgba(26, 32, 44, 0.9) 100%);
    border: 2px solid #ffc107;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.1);
    position: relative;
    overflow: hidden;
}

.player-card.featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.player-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38b2ac 0%, #2c7a7b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: #e2e8f0;
    border: 4px solid #ffc107;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.crown-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1a202c;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.player-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #ffc107;
    margin-bottom: 10px;
}

.clan-name {
    color: #38b2ac;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-stats {
    display: flex;
    gap: 40px;
}

.player-stats .stat {
    text-align: center;
}

.player-stats .value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: #e2e8f0;
    margin-bottom: 5px;
}

.player-stats .label {
    font-size: 0.9rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   RANKINGS GRID
   ========================================================================== */

.rankings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.ranking-section {
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid #4a5568;
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: rgba(26, 32, 44, 0.8);
    border: 1px solid #2d3748;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    border-color: #38b2ac;
    box-shadow: 0 5px 15px rgba(56, 178, 172, 0.1);
}

.rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 50%;
    background: #4a5568;
    color: #e2e8f0;
}

.rank .fa-medal.rank-1 {
    color: #ffd700;
    font-size: 1.5rem;
}

.rank .fa-medal.rank-2 {
    color: #c0c0c0;
    font-size: 1.5rem;
}

.rank .fa-medal.rank-3 {
    color: #cd7f32;
    font-size: 1.5rem;
}

.ranking-item .player-info {
    flex: 1;
}

.ranking-item .player-name {
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.ranking-item .clan-name {
    font-size: 0.85rem;
    color: #38b2ac;
}

.ranking-item .player-stats {
    text-align: right;
}

.ranking-item .points {
    font-weight: 800;
    color: #ffc107;
    margin-bottom: 2px;
}

.ranking-item .tournaments {
    font-size: 0.85rem;
    color: #a0aec0;
}

/* ==========================================================================
   TOURNAMENTS GRID
   ========================================================================== */

.recent-tournaments {
    margin-bottom: 60px;
}

.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.tournament-card {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.8) 0%, rgba(26, 32, 44, 0.9) 100%);
    border: 1px solid #4a5568;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #38b2ac 0%, #ffc107 100%);
}

.tournament-card:hover {
    transform: translateY(-5px);
    border-color: #38b2ac;
    box-shadow: 0 15px 35px rgba(56, 178, 172, 0.15);
}

.tournament-header {
    margin-bottom: 20px;
}

.tournament-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.tournament-tag {
    font-family: 'Courier New', monospace;
    background: rgba(56, 178, 172, 0.2);
    color: #38b2ac;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tournament-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0aec0;
}

.info-item i {
    width: 16px;
    color: #38b2ac;
}

.tournament-status {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-inPreparation {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.status-inProgress {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid #48bb78;
}

.status-ended {
    background: rgba(160, 174, 192, 0.2);
    color: #a0aec0;
    border: 1px solid #a0aec0;
}

.tournament-actions {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #38b2ac 0%, #2c7a7b 100%);
    color: #e2e8f0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 178, 172, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: #e2e8f0;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #38b2ac;
    color: #38b2ac;
}

.btn-outline:hover {
    background: #38b2ac;
    color: #1a202c;
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #e2e8f0;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #e2e8f0;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
    color: #1a202c;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* ==========================================================================
   EMPTY STATES
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 3rem;
    color: #4a5568;
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background: rgba(26, 32, 44, 0.95);
    border-top: 1px solid #2d3748;
    padding: 40px 0 20px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #ffc107;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 {
    color: #e2e8f0;
    margin-bottom: 15px;
}

.footer-section p {
    color: #a0aec0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #38b2ac;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #718096;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .rankings-grid {
        gap: 30px;
    }
    
    .tournaments-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }
    
    .player-card.featured {
        padding: 30px;
        gap: 30px;
    }
    
    .player-stats {
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 32, 44, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid #2d3748;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.nav-menu-open {
        display: flex;
    }
    
    .nav-menu .nav-item {
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(45, 55, 72, 0.5);
        margin: 0;
    }
    
    .nav-menu .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .rankings-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .player-card.featured {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .player-stats {
        justify-content: center;
        gap: 25px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
    
    .tournament-card {
        padding: 20px;
    }
    
    .ranking-section {
        padding: 20px;
    }
    
    .ranking-item {
        padding: 12px 15px;
        gap: 15px;
    }
    
    .rank {
        width: 35px;
        height: 35px;
    }
    
    .avatar-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .player-stats {
        gap: 20px;
    }
    
    .player-stats .value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .tournament-info {
        gap: 8px;
    }
    
    .player-card.featured {
        padding: 20px;
    }
    
    .avatar-placeholder {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .crown-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .player-info h3 {
        font-size: 1.5rem;
    }
    
    .player-stats {
        gap: 15px;
    }
    
    .player-stats .value {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   LOADING ANIMATIONS
   ========================================================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.gap-3 { gap: 30px; }

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* ==========================================================================
   TOURNAMENT ANNOUNCEMENTS STYLES
   ========================================================================== */

.tournament-announcements {
    margin: 20px 0;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.announcement-card {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid #4a5568;
    border-radius: 15px;
    padding: 25px;
    color: #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(237, 137, 54, 0.05) 0%, 
        transparent 50%, 
        rgba(237, 137, 54, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: #ed8936;
}

.announcement-card:hover::before {
    opacity: 1;
}

.announcement-card.featured {
    background: rgba(26, 32, 44, 0.98);
    border: 2px solid #ed8936;
    box-shadow: 0 0 20px rgba(237, 137, 54, 0.3);
}

.announcement-card.featured::after {
    content: '⭐ WYRÓŻNIONY';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ed8936;
    color: #1a202c;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.4);
}

.announcement-content {
    padding: 25px;
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 15px;
    background: #ed8936;
    color: #1a202c;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.4);
}

.announcement-header {
    display: block;
    margin-bottom: 20px;
    position: relative;
}

.announcement-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    flex: 1;
    padding-right: 15px;
}


.announcement-date-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #a0aec0;
    margin-bottom: 10px;
}

.announcement-date-inline .date-label {
    color: #a0aec0;
    font-weight: 600;
    margin-right: 6px;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.announcement-date-inline .date {
    font-weight: 700;
    color: #e2e8f0;
    font-size: 18px;
}

.announcement-date-inline .time {
    font-weight: 700;
    color: #ed8936;
    font-size: 18px;
}

.announcement-date-inline i {
    color: #ed8936;
    font-size: 12px;
}

.announcement-date-inline .date {
    font-weight: 600;
    color: #e2e8f0;
}

.announcement-date-inline .time {
    font-weight: 600;
    color: #ed8936;
}

.announcement-date {
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid #4a5568;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 110px;
    color: #e2e8f0;
    margin-top: 10px;
}

.announcement-date .date {
    font-weight: 700;
    font-size: 16px;
    color: #ed8936;
}

.announcement-date .time {
    font-size: 14px;
    opacity: 0.9;
    color: #a0aec0;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(74, 85, 104, 0.5);
}

.time-until {
    background: rgba(45, 55, 72, 0.8);
    border: 1px solid #4a5568;
    padding: 8px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.time-until i {
    color: #ed8936;
    font-size: 12px;
}

.announcement-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn,
.stream-link,
.details-link {
    background: rgba(237, 137, 54, 0.1);
    border: 1px solid rgba(237, 137, 54, 0.3);
    color: #ed8936;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.action-btn:hover,
.stream-link:hover,
.details-link:hover {
    background: rgba(237, 137, 54, 0.2);
    border-color: #ed8936;
    color: #ed8936;
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(237, 137, 54, 0.2);
}

.action-btn:active,
.stream-link:active,
.details-link:active {
    transform: translateY(0);
}

.action-btn i,
.stream-link i,
.details-link i {
    font-size: 11px;
}

.stream-link.action-btn,
.stream-link {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.stream-link.action-btn:hover,
.stream-link:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.announcement-title {
    flex: 1;
}

.announcement-title h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.announcement-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
}

.announcement-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.detail-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.detail-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.announcement-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.announcement-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.announcement-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    color: white;
}

.announcement-btn.primary {
    background: rgba(255, 255, 255, 0.9);
    color: #1a202c;
    border-color: rgba(255, 255, 255, 0.9);
}

.announcement-btn.primary:hover {
    background: white;
    color: #1a202c;
}

.announcements-count {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .announcements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .announcement-card {
        padding: 25px;
    }
    
    .announcement-header {
        margin-bottom: 15px;
    }
    
    .announcement-date-inline {
        font-size: 13px;
        gap: 6px;
    }
    
    .announcement-date {
        align-self: flex-start;
        margin-left: 0;
        margin-top: 0;
        padding: 12px 16px;
        min-width: 90px;
    }
    
    .announcement-date .date {
        font-size: 15px;
    }
    
    .announcement-date .time {
        font-size: 13px;
    }
    
    .announcement-details {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .announcement-actions {
        flex-direction: column;
    }
    
    .announcement-btn {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   SCORING SYSTEM STYLES
   ========================================================================== */

.scoring-page-header {
    background: linear-gradient(135deg, 
        rgba(26, 32, 44, 0.9) 0%, 
        rgba(45, 55, 72, 0.8) 50%, 
        rgba(26, 32, 44, 0.9) 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 15px;
    text-align: center;
}

.scoring-title {
    color: #ed8936;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.scoring-main-section {
    margin-bottom: 40px;
}

.scoring-card {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid #4a5568;
    border-radius: 15px;
    overflow: hidden;
}

.scoring-card-header {
    background: linear-gradient(135deg, #ed8936 0%, #dd7324 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.scoring-card-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.scoring-table {
    background: rgba(26, 32, 44, 0.8);
}

.scoring-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(237, 137, 54, 0.2);
    padding: 15px 20px;
    font-weight: 700;
    color: #ed8936;
    border-bottom: 2px solid #ed8936;
}

.scoring-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.scoring-row:hover {
    background: rgba(237, 137, 54, 0.1);
}

.scoring-row.scoring-top {
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid #ffd700;
}

.scoring-position {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.scoring-points {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.points-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ed8936;
}

.points-label {
    color: #a0aec0;
    font-size: 0.9rem;
}

.gold { color: #ffd700; }
.silver { color: #c0c0c0; }
.bronze { color: #cd7f32; }

.info-card {
    background: rgba(26, 32, 44, 0.95);
    border: 1px solid #4a5568;
    border-radius: 15px;
    margin-bottom: 20px;
}

.info-card-header {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.8) 0%, rgba(221, 115, 36, 0.8) 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
}

.info-card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.info-section {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h3 {
    color: #ed8936;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-section p {
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a0aec0;
}

.empty-state i {
    font-size: 3rem;
    color: #ed8936;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.empty-state .btn {
    margin-top: 20px;
    background: linear-gradient(135deg, #ed8936 0%, #dd7324 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 137, 54, 0.3);
}

@media (max-width: 768px) {
    .scoring-title {
        font-size: 2rem;
    }
    
    .scoring-header,
    .scoring-row {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .points-value {
        font-size: 1.1rem;
    }
    
    .info-section {
        padding: 15px 0;
    }
}

/* ==========================================================================
   LEGENDA STATYSTYK
   ========================================================================== */

.stats-legend {
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid #4a5568;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.stats-legend h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e0;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: rgba(26, 32, 44, 0.5);
    border-radius: 8px;
    border: 1px solid #4a5568;
}

.legend-item i {
    width: 16px;
    text-align: center;
}

.legend-item:nth-child(1) i {
    color: #ffd700; /* Złoty dla pucharów */
}

.legend-item:nth-child(2) i {
    color: #c0c0c0; /* Srebrny dla medali */
}

.legend-item:nth-child(3) i {
    color: #ff6b6b; /* Czerwony dla gwiazdy */
}

.legend-item:nth-child(4) i {
    color: #4ecdc4; /* Turkusowy dla kalendarza */
}

.legend-item:nth-child(5) i {
    color: #48bb78; /* Zielony dla podanego tagu */
}

.legend-item:nth-child(6) i {
    color: #f56565; /* Czerwony dla niepodanego tagu */
}

/* Specjalne kolory dla ikon w legendzie klanów */
.legend-item:has(i.fa-user-friends) i {
    color: #a78bfa; /* Fioletowy dla graczy w klanie */
}

/* ==========================================================================
   SZCZEGÓŁOWE STATYSTYKI GRACZA
   ========================================================================== */

.player-detailed-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(74, 85, 104, 0.3);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #a0aec0;
    padding: 4px 8px;
    background: rgba(26, 32, 44, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(74, 85, 104, 0.2);
    cursor: help;
    transition: all 0.2s ease;
    position: relative;
}

.stat-item:hover {
    background: rgba(26, 32, 44, 0.5);
    border-color: var(--accent-color);
    color: #e2e8f0;
}

/* Mobilny tooltip */
.stat-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 32, 44, 0.95);
    color: #e2e8f0;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--accent-color);
    pointer-events: none;
}

.stat-item::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 1px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--accent-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

/* Desktop hover tooltips */
@media (min-width: 769px) {
    .stat-item:hover::after,
    .stat-item:hover::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile click tooltips */
@media (max-width: 768px) {
    .stat-item.show-tooltip::after,
    .stat-item.show-tooltip::before {
        opacity: 1;
        visibility: visible;
    }
}

.stat-item i {
    font-size: 0.8rem;
    width: 12px;
    text-align: center;
}

.stat-item:nth-child(1) i {
    color: #ffd700; /* Złoty dla pucharów */
}

.stat-item:nth-child(2) i {
    color: #c0c0c0; /* Srebrny dla medali */
}

.stat-item:nth-child(3) i {
    color: #ff6b6b; /* Czerwony dla gwiazdy */
}

.stat-item:nth-child(4) i {
    color: #4ecdc4; /* Turkusowy dla kalendarza */
}

/* Ikony statusu tagu powp.fun */
.stat-item.powp-tag-yes i {
    color: #48bb78; /* Zielony dla podanego tagu */
}

.stat-item.powp-tag-no i {
    color: #f56565; /* Czerwony dla niepodanego tagu */
}

/* Specjalne kolory dla ranking klanów */
.stat-item:has(i.fa-user-friends) i {
    color: #a78bfa; /* Fioletowy dla graczy w klanie */
}

@media (max-width: 768px) {
    .stats-legend {
        padding: 15px;
        margin: 15px 0;
    }
    
    .legend-items {
        flex-direction: column;
        gap: 10px;
    }
    
    .legend-item {
        justify-content: center;
    }
    
    .player-detailed-stats {
        gap: 8px;
    }
    
    .stat-item {
        font-size: 0.8rem;
        padding: 3px 6px;
        cursor: pointer; /* Zmiana na pointer dla mobilnych */
    }

    /* Większy tooltip na mobilnych */
    .stat-item::after {
        font-size: 0.8rem;
        padding: 8px 12px;
        bottom: calc(100% + 8px);
        max-width: 200px;
        white-space: normal;
        text-align: center;
    }

    .stat-item::before {
        bottom: calc(100% + 2px);
        border-width: 5px;
    }

    /* Dodatkowa animacja dla mobilnych */
    .stat-item.show-tooltip {
        background: rgba(26, 32, 44, 0.7);
        border-color: var(--accent-color);
        color: #e2e8f0;
        transform: scale(1.05);
    }
}

/* ==========================================================================
   PAGINACJA
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(45, 55, 72, 0.6);
    border: 1px solid #4a5568;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.pagination-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #cbd5e0;
}

.pagination-info span:first-child {
    font-weight: 600;
    color: var(--accent-color);
}

.total-count {
    font-size: 0.9rem;
    color: #a0aec0;
}

.pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(26, 32, 44, 0.7);
    border: 1px solid #4a5568;
    border-radius: 8px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a202c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
}

.pagination-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1a202c;
    font-weight: 600;
}

.pagination-btn i {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .pagination-info {
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    
    .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}
