* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('/static/background.png') center center / cover no-repeat fixed;
    background-color: #0a0e27;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.7);
    z-index: -1;
}

.main-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    background: rgba(20, 20, 40, 0.95);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar h2 {
    color: #3b82f6;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.sidebar h3 {
    color: #60a5fa;
    font-size: 1em;
    margin: 20px 0 10px 0;
}

.timer-display {
    font-size: 2.5em;
    text-align: center;
    color: #3b82f6;
    font-weight: bold;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.timer-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 5px;
    margin-bottom: 20px;
}

.timer-btn {
    padding: 8px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.timer-btn:hover {
    background: rgba(59, 130, 246, 0.4);
}

.objectives-section {
    background: rgba(10, 15, 30, 0.6);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.objective-item {
    padding: 8px;
    margin: 5px 0;
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
    font-size: 0.9em;
}

.history-section {
    background: rgba(10, 15, 30, 0.6);
    padding: 12px;
    border-radius: 8px;
}

#history-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.history-item {
    background: rgba(59, 130, 246, 0.1);
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.2s;
}

.history-item:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateX(5px);
}

.clear-history-btn {
    width: 100%;
    padding: 8px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.clear-history-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.container {
    background: rgba(20, 20, 40, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

h1 {
    text-align: center;
    color: #3b82f6;
    margin-bottom: 30px;
    font-size: 2.2em;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.eye-icon {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
    animation: eye-glow 3s ease-in-out infinite;
}

@keyframes eye-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(255, 165, 0, 0.9));
        transform: scale(1.05);
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0ff;
    font-weight: 600;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    background: rgba(30, 30, 50, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

input::placeholder, textarea::placeholder {
    color: #6b7280;
}

.analyze-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.analyze-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.warning-block {
    background: rgba(127, 29, 29, 0.3);
    padding: 16px;
    margin-bottom: 25px;
    border: 2px solid #ff4d4d;
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

.warning-block p {
    color: #ff9999;
    margin: 5px 0;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { border-color: #ff4d4d; }
    50% { border-color: #ff7777; }
}

.advice-block {
    background: rgba(20, 30, 48, 0.9);
    padding: 25px;
    margin-top: 25px;
    margin-bottom: 25px;
    border-radius: 10px;
    border: 2px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.advice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.advice-header h3 {
    color: #3b82f6;
    font-size: 1.4em;
    margin: 0;
}

.advice-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    padding: 8px 15px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #22c55e;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(34, 197, 94, 0.4);
    transform: scale(1.05);
}

.voice-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(10, 15, 30, 0.6);
    border-radius: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.voice-btn {
    padding: 8px 15px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid #8b5cf6;
    color: #8b5cf6;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.voice-btn:hover {
    background: rgba(139, 92, 246, 0.4);
}

.voice-btn:active {
    transform: scale(0.95);
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.speed-control label {
    margin: 0;
    font-size: 13px;
}

.speed-control select {
    padding: 6px 10px;
    margin: 0;
    font-size: 13px;
    width: auto;
}

.audio-visualizer {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 10px;
}

.viz-bar {
    width: 4px;
    height: 10px;
    background: #8b5cf6;
    border-radius: 2px;
    transition: height 0.2s;
}

.audio-visualizer.active .viz-bar {
    animation: visualize 0.6s ease-in-out infinite;
}

.audio-visualizer.active .viz-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.audio-visualizer.active .viz-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.audio-visualizer.active .viz-bar:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes visualize {
    0%, 100% { height: 10px; }
    50% { height: 25px; }
}

.advice-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(10, 15, 30, 0.6);
    border-radius: 8px;
    white-space: pre-wrap;
    line-height: 1.8;
    color: #e0e0e0;
    font-size: 15px;
}

.advice-content::-webkit-scrollbar {
    width: 10px;
}

.advice-content::-webkit-scrollbar-track {
    background: rgba(20, 20, 40, 0.5);
    border-radius: 5px;
}

.advice-content::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

.advice-content::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .advice-content {
        max-height: 300px;
    }
    
    .voice-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .speed-control {
        margin-left: 0;
    }
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.user-section {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    text-align: center;
}

.game-mode-section {
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.game-mode-section label {
    display: block;
    color: #60a5fa;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.game-mode-section select {
    width: 100%;
    padding: 10px;
    background: rgba(30, 30, 60, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.5);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.9em;
    cursor: pointer;
}

.game-mode-section select:hover {
    border-color: #3b82f6;
}

.game-mode-section select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.objective-alert {
    animation: alertPulse 0.5s ease-in-out 3;
    background: rgba(239, 68, 68, 0.3) !important;
    border-left-color: #ef4444 !important;
}

.objective-warning {
    animation: warningPulse 0.4s ease-in-out 2;
    background: rgba(251, 191, 36, 0.3) !important;
    border-left-color: #fbbf24 !important;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes warningPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); }
}

.buff-item {
    font-size: 0.9em;
    opacity: 0.9;
}

.snooze-btn {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

.snooze-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: scale(1.02);
}

.snooze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.user-name {
    color: #e5e7eb;
    font-weight: 500;
}

.auth-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.logout-btn {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

.login-prompt {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-prompt h2 {
    color: #3b82f6;
    margin-bottom: 15px;
}

.login-prompt p {
    color: #9ca3af;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.profile-link:hover {
    transform: scale(1.02);
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 1.2em;
}

.user-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.profile-btn {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.profile-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.profile-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(20, 20, 40, 0.95);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    gap: 10px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.2em;
    white-space: nowrap;
}

.nav-icon {
    width: 35px;
    height: 35px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.nav-links a {
    color: #9ca3af;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    font-size: 0.9em;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

@media (max-width: 600px) {
    .profile-nav {
        flex-direction: column;
        gap: 15px;
        padding: 12px 15px;
    }
    
    .nav-logo span {
        display: none;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}

.profile-header {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: rgba(20, 20, 40, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 25px;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    font-weight: bold;
    color: white;
}

.avatar-placeholder.large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    font-size: 3em;
}

.edit-avatar-btn {
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.edit-avatar-btn:hover {
    background: rgba(59, 130, 246, 0.4);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 10px 0;
    text-align: left;
    font-size: 2em;
}

.summoner-info {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.summoner-name {
    color: #60a5fa;
    font-size: 1.1em;
    font-weight: 500;
}

.region-badge {
    padding: 3px 10px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.gaming-tag {
    color: #8b5cf6;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.player-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.main-champ, .player-rank {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.main-champ {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.player-rank {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.bio {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
}

.edit-profile-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.create-post-section {
    padding: 25px;
    background: rgba(20, 20, 40, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 25px;
}

.create-post-section h2 {
    color: #3b82f6;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.post-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(30, 30, 60, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 1em;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 15px;
}

.post-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.post-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-upload-btn {
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid #8b5cf6;
    color: #8b5cf6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload-btn:hover {
    background: rgba(139, 92, 246, 0.4);
}

.file-upload-btn input[type="file"] {
    display: none;
}

.file-upload-btn.large {
    padding: 15px 30px;
    font-size: 1em;
}

.post-submit-btn {
    padding: 10px 30px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.post-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

.file-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.preview-item img, .preview-item video {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(59, 130, 246, 0.5);
}

.preview-item span {
    font-size: 0.75em;
    color: #9ca3af;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-section {
    padding: 25px;
    background: rgba(20, 20, 40, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.feed-section h2 {
    color: #3b82f6;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.post-card {
    background: rgba(30, 30, 60, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #3b82f6;
}

.post-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.post-author-name {
    display: block;
    color: #e0e0e0;
    font-weight: 500;
}

.post-time {
    display: block;
    color: #6b7280;
    font-size: 0.85em;
}

.delete-post-btn {
    padding: 5px 15px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s;
}

.delete-post-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.delete-form {
    margin: 0;
    padding: 0;
}

.post-content {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
    white-space: pre-wrap;
}

.post-media-grid {
    display: grid;
    gap: 10px;
    border-radius: 12px;
    overflow: hidden;
}

.post-media-grid.media-count-1 {
    grid-template-columns: 1fr;
}

.post-media-grid.media-count-2 {
    grid-template-columns: 1fr 1fr;
}

.post-media-grid.media-count-3,
.post-media-grid.media-count-4 {
    grid-template-columns: 1fr 1fr;
}

.post-media-item {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.post-media-item:hover {
    transform: scale(1.02);
}

.empty-feed {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(20, 20, 40, 0.98);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.modal-content h2 {
    color: #3b82f6;
    margin-bottom: 25px;
}

.modal-content .form-group {
    margin-bottom: 20px;
}

.modal-content .form-group label {
    display: block;
    color: #a0a0ff;
    margin-bottom: 8px;
    font-weight: 500;
}

.modal-content input,
.modal-content textarea,
.modal-content select {
    width: 100%;
    padding: 12px;
    background: rgba(30, 30, 60, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1em;
    margin-bottom: 0;
}

.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus {
    outline: none;
    border-color: #3b82f6;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

.modal-actions button {
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.modal-actions button:first-child {
    background: rgba(107, 114, 128, 0.3);
    border: 1px solid #6b7280;
    color: #9ca3af;
}

.modal-actions button:first-child:hover {
    background: rgba(107, 114, 128, 0.5);
}

.primary-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border: none !important;
    color: white !important;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.current-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #3b82f6;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-modal {
    background: rgba(0, 0, 0, 0.95);
}

.media-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.media-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-info h1 {
        text-align: center;
    }
    
    .player-stats {
        justify-content: center;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}

.forum-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.forum-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
}

.feed-btn {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.feed-btn:hover {
    background: rgba(34, 197, 94, 0.3);
}

.coach-btn {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.coach-btn:hover {
    background: rgba(251, 191, 36, 0.3);
}

.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-weight: 500;
}

.flash-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.flash-error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.flash-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.flash-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.forum-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.forum-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.forum-header h1 {
    color: #a78bfa;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.forum-header p {
    color: #94a3b8;
    font-size: 1.1em;
}

.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateX(5px);
    background: rgba(30, 30, 60, 0.95);
}

.category-icon {
    font-size: 2.5em;
    min-width: 60px;
    text-align: center;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    color: #e0e0e0;
    font-size: 1.3em;
    margin-bottom: 5px;
}

.category-info p {
    color: #94a3b8;
    font-size: 0.95em;
}

.category-stats {
    color: #60a5fa;
    font-size: 0.9em;
}

.forum-breadcrumb {
    margin-bottom: 20px;
    color: #94a3b8;
}

.forum-breadcrumb a {
    color: #60a5fa;
    text-decoration: none;
}

.forum-breadcrumb a:hover {
    text-decoration: underline;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon-large {
    font-size: 2em;
}

.category-title h1 {
    color: #a78bfa;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.category-title p {
    color: #94a3b8;
}

.new-thread-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.new-thread-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    transform: translateY(-2px);
}

.threads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thread-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.thread-card:hover {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(30, 30, 60, 0.95);
}

.thread-card.pinned {
    border-color: rgba(234, 179, 8, 0.5);
    background: rgba(30, 30, 45, 0.95);
}

.pin-badge {
    position: absolute;
    top: -8px;
    left: 10px;
    padding: 2px 8px;
    background: #eab308;
    color: #000;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 4px;
}

.thread-main {
    flex: 1;
}

.thread-main h3 {
    color: #e0e0e0;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.thread-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.85em;
    color: #94a3b8;
}

.thread-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mini-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.thread-stats {
    display: flex;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    color: #60a5fa;
    font-weight: 600;
    font-size: 1.1em;
}

.stat-label {
    color: #64748b;
    font-size: 0.8em;
}

.empty-threads {
    text-align: center;
    padding: 50px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 12px;
    color: #94a3b8;
}

.empty-threads p {
    margin-bottom: 20px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
}

.page-btn {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: rgba(59, 130, 246, 0.4);
}

.page-info {
    color: #94a3b8;
}

.thread-header {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.thread-header h1 {
    color: #e0e0e0;
    font-size: 1.6em;
    margin-bottom: 10px;
}

.thread-info {
    display: flex;
    gap: 15px;
    color: #94a3b8;
    font-size: 0.9em;
}

.locked-badge {
    padding: 3px 10px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 4px;
    font-size: 0.85em;
}

.thread-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.thread-post {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.thread-post.original-post {
    border-color: rgba(139, 92, 246, 0.4);
}

.post-author-info {
    min-width: 100px;
    text-align: center;
}

.post-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.post-author-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    margin: 0 auto 8px;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.author-name {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9em;
}

.author-rank {
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border-radius: 4px;
    font-size: 0.75em;
}

.post-content-area {
    flex: 1;
}

.post-timestamp {
    color: #64748b;
    font-size: 0.85em;
    margin-bottom: 10px;
}

.post-body {
    color: #e0e0e0;
    line-height: 1.6;
    white-space: pre-wrap;
}

.delete-btn {
    margin-top: 15px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.4);
}

.reply-section {
    padding: 20px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.reply-section h3 {
    color: #a78bfa;
    margin-bottom: 15px;
}

.reply-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1em;
    resize: vertical;
    margin-bottom: 15px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.submit-reply-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-reply-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
}

.login-prompt {
    text-align: center;
    color: #94a3b8;
}

.login-prompt a {
    color: #60a5fa;
}

.locked-notice {
    text-align: center;
    color: #ef4444;
}

.new-thread-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(20, 20, 40, 0.9);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.new-thread-container h1 {
    color: #a78bfa;
    margin-bottom: 10px;
}

.category-label {
    color: #94a3b8;
    margin-bottom: 25px;
}

.new-thread-form .form-group {
    margin-bottom: 20px;
}

.new-thread-form label {
    display: block;
    color: #60a5fa;
    margin-bottom: 8px;
    font-weight: 500;
}

.new-thread-form input,
.new-thread-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(15, 15, 35, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1em;
}

.new-thread-form input:focus,
.new-thread-form textarea:focus {
    outline: none;
    border-color: #8b5cf6;
}

.new-thread-form textarea {
    resize: vertical;
    min-height: 200px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cancel-btn {
    padding: 12px 24px;
    background: rgba(100, 116, 139, 0.3);
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(100, 116, 139, 0.5);
}

.submit-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #a78bfa, #818cf8);
}

@media (max-width: 768px) {
    .category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .thread-card {
        flex-direction: column;
        gap: 10px;
    }
    
    .thread-stats {
        width: 100%;
        justify-content: center;
    }
    
    .thread-post {
        flex-direction: column;
    }
    
    .post-author-info {
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
        margin-bottom: 10px;
    }
    
    .category-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid #8b5cf6;
    color: #a78bfa;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.share-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    color: white;
}

.media-wrapper {
    position: relative;
    display: inline-block;
}

.media-share-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #a78bfa;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-wrapper:hover .media-share-btn {
    opacity: 1;
}

.media-share-btn:hover {
    background: rgba(139, 92, 246, 0.5);
    color: white;
}

.share-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.share-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.feed-header {
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
}

.feed-header h1 {
    font-size: 2.2em;
    background: linear-gradient(135deg, #a78bfa, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.feed-header p {
    color: #94a3b8;
    font-size: 1.1em;
}

.post-author {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.post-author:hover {
    opacity: 0.8;
}

.author-rank {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    font-size: 0.75em;
    color: #a78bfa;
    margin-left: 8px;
}
