/* ============================================
   Player Dashboard Styles
   Compatible CSS for Player Panel
   ============================================ */

/* Dashboard Cards Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Player Dashboard Container */
.player-dashboard {
    animation: fadeInUp 0.6s ease-out;
}

/* Stat Cards */
.stat-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

/* Character Card */
.character-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.4);
}

.character-card .character-header {
    position: relative;
    z-index: 1;
}

.character-card .character-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.character-card .stat-item {
    padding: 1.25rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.character-card .stat-item:hover {
    transform: scale(1.05);
}

/* PvP Stats Card */
.pvp-stats-card {
    background: linear-gradient(135deg, rgba(255, 51, 102, 0.18) 0%, rgba(196, 69, 105, 0.12) 100%);
    border: 2px solid rgba(255, 51, 102, 0.4);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.pvp-stats-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 51, 102, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

/* Online Status Badge */
.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: rgba(0, 255, 136, 0.25);
    border-radius: 30px;
    color: var(--success-color);
    font-size: 0.9rem;
    font-weight: 800;
    border: 2px solid rgba(0, 255, 136, 0.4);
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.online-badge i {
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

/* Account Management */
.account-section {
    animation: fadeInUp 0.6s ease-out;
}

.account-info-card {
    padding: 2.5rem;
    border-radius: 16px;
    border: 2px solid;
    transition: all 0.3s;
}

.account-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* Form Styles */
.form-section {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--highlight-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Donation Section */
.donation-card {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.15) 0%, rgba(255, 136, 0, 0.1) 100%);
    border: 2px solid rgba(255, 170, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.donation-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.donation-info-item {
    flex: 1;
    min-width: 200px;
}

.donation-info-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.donation-info-value {
    color: var(--warning-color);
    font-size: 2rem;
    font-weight: 900;
}

/* Action Buttons */
.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: 2.5rem;
    min-height: 160px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    transform: translateY(-10px) scale(1.04);
}

.action-btn i {
    font-size: 3rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.action-btn:hover i {
    transform: scale(1.1) rotate(5deg);
}

.action-btn span {
    font-weight: 800;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--highlight-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Alert Animations */
.alert {
    animation: slideInRight 0.5s ease-out;
}

.alert-success {
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    border-left: 4px solid var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .character-card .character-stats {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .action-btn {
        min-height: 140px;
        padding: 2rem;
    }
    
    .action-btn i {
        font-size: 2.5rem;
    }
    
    .donation-info {
        flex-direction: column;
    }
    
    .donation-info-item {
        width: 100%;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Player Panel */
.player-panel::-webkit-scrollbar {
    width: 10px;
}

.player-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.player-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.5);
    border-radius: 10px;
}

.player-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.7);
}

/* Tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    margin-bottom: 0.5rem;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--highlight-color), var(--success-color));
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
    background-size: 200% 100%;
}

/* Number Counter Animation */
.counter {
    display: inline-block;
    font-weight: 900;
}

.counter.animate {
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Hover Effects */
.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--highlight-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid;
}

.badge-primary {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    color: var(--highlight-color);
}

.badge-success {
    background: rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(255, 170, 0, 0.15);
    border-color: rgba(255, 170, 0, 0.3);
    color: var(--warning-color);
}

.badge-danger {
    background: rgba(255, 51, 102, 0.15);
    border-color: rgba(255, 51, 102, 0.3);
    color: var(--danger-color);
}

/* Print Styles */
@media print {
    .action-btn,
    .btn {
        display: none;
    }
    
    .card {
        break-inside: avoid;
    }
}

