/* Profile Page Specific Styles */

.profile-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: #fff;
}

/* Header */
.profile-header {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #ffd700;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section .game-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    margin: 0;
}

.logo-section .game-title i {
    margin-right: 10px;
}

.profile-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffd700;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.logout-btn {
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff4444;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.2);
    box-shadow: 0 5px 15px rgba(255, 68, 68, 0.3);
}

/* Main Content */
.profile-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Profile Cards */
.profile-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.card-header {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2,
.card-header h3 {
    color: #ffd700;
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-content {
    padding: 30px;
}

/* User Info Card */
.user-info-card .card-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
}

.user-avatar {
    font-size: 4rem;
    color: #ffd700;
    text-align: center;
}

.user-details h3 {
    font-size: 2rem;
    margin: 0 0 10px 0;
    color: #fff;
}

.user-details p {
    color: #aaa;
    margin: 0 0 20px 0;
    font-size: 1.1rem;
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.meta-item i {
    color: #ffd700;
    width: 16px;
}

.balance-section {
    text-align: center;
}

.balance-display {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.balance-label {
    display: block;
    color: #ffd700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.balance-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.balance-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.balance-actions .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    min-width: 120px;
    justify-content: center;
}

.balance-actions .btn-primary {
    background: rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    color: #007bff;
}

.balance-actions .btn-primary:hover {
    background: rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.balance-actions .btn-success {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    color: #28a745;
}

.balance-actions .btn-success:hover {
    background: rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

@media (max-width: 480px) {
    .balance-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .balance-actions .btn {
        width: 100%;
    }
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stats-card .card-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 8px;
}

.stat-label {
    color: #ccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sessions Table */
.sessions-table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
}

.sessions-table th {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.sessions-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sessions-table tr:hover {
    background: rgba(255, 215, 0, 0.05);
}

.loading-row {
    text-align: center;
    color: #aaa;
    font-style: italic;
}

.session-profit {
    color: #44ff44;
    font-weight: 600;
}

.session-loss {
    color: #ff4444;
    font-weight: 600;
}

.session-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: rgba(68, 255, 68, 0.2);
    color: #44ff44;
    border: 1px solid #44ff44;
}

.status-completed {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.achievement {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.achievement.unlocked {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

.achievement.unlocked .achievement-icon {
    color: #ffd700;
}

.achievement:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.achievement-icon {
    font-size: 2.5rem;
    color: #666;
    margin-bottom: 10px;
}

.achievement-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.achievement-description {
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
}

.achievement-progress {
    margin-top: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.achievement-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transition: width 0.3s ease;
}

/* Add Funds Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a2e;
    border: 2px solid #ffd700;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: #ffd700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #ffd700;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 215, 0, 0.2);
}

.modal-body {
    padding: 30px;
}

.funds-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.fund-option {
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 10px;
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fund-option:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.custom-amount {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.custom-amount label {
    display: block;
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: 500;
}

.custom-amount input {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.custom-amount input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    backdrop-filter: blur(10px);
}

.loading-spinner {
    text-align: center;
    color: #ffd700;
}

.loading-spinner i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.loading-spinner p {
    font-size: 1.2rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info-card .card-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .profile-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .logo-section .game-title {
        font-size: 2rem;
    }
    
    .profile-main {
        padding: 20px 15px;
    }
    
    .card-header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .stats-card .card-content {
        grid-template-columns: 1fr;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .funds-options {
        grid-template-columns: 1fr;
    }
    
    .sessions-table {
        font-size: 0.8rem;
    }
    
    .sessions-table th,
    .sessions-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* Tournament Registration Section */
.tournament-registration-card {
    margin-top: 30px;
}

.tournament-registrations {
    min-height: 100px;
}

.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tournament-registration-item {
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.tournament-registration-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.tournament-info {
    flex: 1;
}

.tournament-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.tournament-header h4 {
    margin: 0;
    color: #ffd700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tournament-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tournament-status.active {
    background: rgba(68, 255, 68, 0.2);
    color: #44ff44;
    border: 1px solid #44ff44;
    animation: pulse 2s ease-in-out infinite;
}

.tournament-status.upcoming {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 1px solid #ffd700;
}

.tournament-status.starting-now {
    background: rgba(255, 69, 0, 0.3);
    color: #ff4500;
    border: 1px solid #ff4500;
    animation: urgent-blink 1s ease-in-out infinite;
    font-weight: bold;
}

.tournament-status.scheduled {
    background: rgba(100, 100, 100, 0.2);
    color: #aaa;
    border: 1px solid #aaa;
}

.tournament-details {
    display: flex;
    gap: 20px;
    color: #ccc;
    font-size: 0.9rem;
}

.tournament-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tournament-details i {
    color: #ffd700;
    font-size: 0.8rem;
}

.tournament-action {
    margin-left: 20px;
}

.join-tournament-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.join-tournament-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.join-tournament-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.no-tournaments {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.no-tournaments i {
    font-size: 3rem;
    color: #666;
    margin-bottom: 20px;
}

.no-tournaments p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.no-tournaments a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.no-tournaments a:hover {
    text-decoration: underline;
}

.tournament-error {
    text-align: center;
    padding: 30px;
    color: #ff4444;
}

.tournament-error i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tournament-error p {
    margin: 10px 0 20px 0;
}

.tournament-actions {
    margin-top: 20px;
    text-align: center;
}

.loading-message {
    text-align: center;
    padding: 30px;
    color: #ffd700;
    font-size: 1.1rem;
}

.loading-message i {
    margin-right: 10px;
}

/* Responsive tournament styles */
@media (max-width: 768px) {
    .tournament-registration-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tournament-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .tournament-details {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tournament-action {
        margin-left: 0;
        width: 100%;
    }
    
    .join-tournament-btn {
        width: 100%;
        justify-content: center;
    }
} 