/* PROFILE STYLES - Public User Profiles */

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    overflow-x: hidden;
}

/* Profile Header */
.profile-header {
    background: #000000;
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: "👀 PUBLIC PROFILE 👀";
    position: absolute;
    top: 10px;
    right: 15px;
    background: #4caf50;
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7em;
    font-weight: bold;
    z-index: 1;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar .avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 2.5rem;
    color: #ff4500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 15px;
}

.color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    flex-shrink: 0;
}

.profile-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
}

.meta-label {
    color: #cccccc;
    font-weight: 500;
}

.meta-value {
    color: #ffffff;
    font-weight: bold;
}

.meta-value.credits {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.mvp-item .meta-value a {
    color: #ff4500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mvp-item .meta-value a:hover {
    color: #ff6500;
    text-shadow: 0 0 10px rgba(255, 101, 0, 0.5);
}

/* Profile Content */
.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Profile Widgets */
.profile-widget {
    background: #000000;
    border: 2px solid #ffffff;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.profile-widget::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff4500, #ffd700, #ff4500);
    animation: shimmer 3s infinite;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.widget-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ff4500;
    border-radius: 50%;
    color: #000;
}

.widget-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Stats Widget */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.stat-row:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff4500;
    transform: translateY(-2px);
}

.stat-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-emoji {
    font-size: 1.2rem;
}

.stat-text {
    color: #cccccc;
    font-weight: 500;
}

.stat-number {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
}

.stat-number.positive {
    color: #4caf50;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.stat-number.negative {
    color: #f44336;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

/* Inventory Widget */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.inventory-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.inventory-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff4500;
    transform: translateY(-3px);
}

.inventory-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.inventory-name {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.inventory-quantity {
    color: #ffd700;
    font-weight: bold;
    font-size: 0.8rem;
}

.inventory-empty, .betting-history-empty {
    text-align: center;
    padding: 40px 20px;
}

.empty-state {
    color: #888888;
}

.empty-state span {
    display: block;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.empty-state small {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Betting History Widget */
.betting-history {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.betting-history::-webkit-scrollbar {
    width: 8px;
}

.betting-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.betting-history::-webkit-scrollbar-thumb {
    background: #ff4500;
    border-radius: 4px;
}

.bet-history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.bet-history-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.bet-history-item.status-won {
    border-left: 4px solid #4caf50;
}

.bet-history-item.status-lost {
    border-left: 4px solid #f44336;
}

.bet-history-item.status-pending {
    border-left: 4px solid #ffd700;
}

.bet-history-item.status-voided {
    border-left: 4px solid #888888;
}

.bet-fight-info {
    margin-bottom: 8px;
}

.bet-fighters {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
}

.bet-fighters .fight-link {
    color: #ff4500 !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.bet-fighters .fight-link:hover {
    color: #ff6500 !important;
    text-shadow: 0 0 10px rgba(255, 101, 0, 0.5);
}

.bet-details {
    color: #cccccc;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bet-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.bet-status.status-won {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.bet-status.status-lost {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.bet-status.status-pending {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.bet-status.status-voided {
    background: rgba(136, 136, 136, 0.2);
    color: #888888;
}

.bet-payout {
    color: #4caf50;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: right;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.bet-history-more {
    text-align: center;
    padding: 15px;
    color: #888888;
    font-style: italic;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.back-button, .leaderboard-button {
    padding: 12px 25px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
}

.leaderboard-button:hover {
    background: #ff4500;
    border-color: #ff4500;
    color: #000000;
    transform: translateY(-2px);
}

/* 404 Error Page */
.profile-404 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.error-404-content {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    width: 90%;
}

.error-404-title {
    font-size: 8rem;
    color: #f44336;
    margin: 0;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
    line-height: 1;
    animation: pulse 2s infinite;
}

.error-404-subtitle {
    color: #ffffff;
    font-size: 2.5rem;
    margin: 20px 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.error-404-message {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

.error-404-button {
    display: inline-block;
    padding: 15px 30px;
    background: #f44336;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #f44336;
}

.error-404-button:hover {
    background: transparent;
    color: #f44336;
    border-color: #f44336;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.3);
}

/* Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
        gap: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .profile-name {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-meta {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .profile-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .back-button, .leaderboard-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 1.5rem;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .meta-item, .stat-row {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .error-404-title {
        font-size: 5rem;
    }
    
    .error-404-subtitle {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .error-404-message {
        font-size: 1rem;
    }
    
    .error-404-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}
