/* User Panel Styles - Konsistent mit bestehendem Design */

/* User Panel Hero Section */
.user-panel-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.user-panel-symbol {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #0099ff 0%, #00ccff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 153, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.user-panel-symbol i {
    font-size: 3rem;
    color: white;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* User Panel Container */
.user-panel-container {
    padding: 2rem 0;
    min-height: 60vh;
}

/* Login Section */
.login-section {
    padding: 4rem 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1.5px solid rgba(0, 153, 255, 0.18);
    border-radius: 22px;
    padding: 3rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1.5px rgba(0, 153, 255, 0.13);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0,153,255,0.08) 0%, 
        rgba(0,0,0,0.10) 50%, 
        rgba(0,153,255,0.08) 100%);
    border-radius: 22px;
    pointer-events: none;
    z-index: -1;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.22),
        0 0 0 2px rgba(0, 153, 255, 0.15);
    border-color: rgba(0, 153, 255, 0.22);
}

.login-header {
    margin-bottom: 2rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.login-card:hover .login-logo {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 153, 255, 0.2);
}

.login-header h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(0, 153, 255, 0.2);
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
}

.discord-login-btn {
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(114, 137, 218, 0.3);
    position: relative;
    overflow: hidden;
}

.discord-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.discord-login-btn:hover::before {
    left: 100%;
}

.discord-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(114, 137, 218, 0.4);
    background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
}

.discord-login-btn i {
    font-size: 1.2rem;
}

.login-info {
    text-align: left;
}

.login-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-info i {
    color: #0099ff;
    width: 16px;
}

/* User Dashboard */
.user-dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1.5px solid rgba(0, 153, 255, 0.18);
    border-radius: 22px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1.5px rgba(0, 153, 255, 0.13);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0,153,255,0.08) 0%, 
        rgba(0,0,0,0.10) 50%, 
        rgba(0,153,255,0.08) 100%);
    border-radius: 22px;
    pointer-events: none;
    z-index: -1;
}

.dashboard-header:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.22),
        0 0 0 2px rgba(0, 153, 255, 0.15);
    border-color: rgba(0, 153, 255, 0.22);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #0099ff;
    box-shadow: 0 10px 20px rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 153, 255, 0.4);
}

.user-details h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(0, 153, 255, 0.2);
}

.user-details p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

/* Stats Section */
.stats-section {
    margin-bottom: 4rem;
}

.stats-grid {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.stat-card {
    min-width: 220px;
    max-width: 480px;
    flex: 1 1 auto;
    width: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1.5px solid rgba(0, 153, 255, 0.18);
    border-radius: 22px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: max-width 0.2s, min-width 0.2s;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1.5px rgba(0, 153, 255, 0.13);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0,153,255,0.08) 0%, 
        rgba(0,0,0,0.10) 50%, 
        rgba(0,153,255,0.08) 100%);
    border-radius: 22px;
    pointer-events: none;
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.22),
        0 0 0 2px rgba(0, 153, 255, 0.15);
    border-color: rgba(0, 153, 255, 0.22);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0099ff 0%, #00ccff 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 153, 255, 0.4);
}

.stat-icon i {
    font-size: 1.5rem;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

/* Special styling for balance/currency values */
.stat-value[data-type="currency"] {
    font-size: 1.4rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.1;
    max-width: 100%;
    overflow: visible;
}

/* Responsive font sizing for currency */
@media (max-width: 768px) {
    .stat-value[data-type="currency"] {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .stat-value[data-type="currency"] {
        font-size: 0.9rem;
    }
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Character Section */
.character-section {
    margin-bottom: 4rem;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1.5px solid rgba(0, 153, 255, 0.18);
    border-radius: 22px;
    padding: 2rem 3rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.18),
        0 0 0 1.5px rgba(0, 153, 255, 0.13);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0,153,255,0.08) 0%, 
        rgba(0,0,0,0.10) 50%, 
        rgba(0,153,255,0.08) 100%);
    border-radius: 22px;
    pointer-events: none;
    z-index: -1;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.22),
        0 0 0 2px rgba(0, 153, 255, 0.15);
    border-color: rgba(0, 153, 255, 0.22);
}

.info-card h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 153, 255, 0.3);
    text-shadow: 0 0 8px rgba(0, 153, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card h3 i {
    color: #0099ff;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-item:hover {
    background: rgba(0, 153, 255, 0.08);
    border-radius: 15px;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-left: -2rem;
    margin-right: -2rem;
    transform: translateX(5px);
}

.info-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1rem;
    min-width: 140px;
}

.info-label i {
    color: #0099ff;
    width: 24px;
    text-align: center;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(0, 153, 255, 0.4);
}

.info-value {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Status indicator styling */
.info-value[data-status="online"] {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.info-value[data-status="offline"] {
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}

.info-value[data-status="afk"] {
    color: #ffd93d;
    text-shadow: 0 0 8px rgba(255, 217, 61, 0.4);
}

/* Actions Section */
.actions-section {
    margin-bottom: 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.action-btn {
    background: linear-gradient(135deg, #0099ff 0%, #00ccff 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 153, 255, 0.4);
    background: linear-gradient(135deg, #00ccff 0%, #0099ff 100%);
}

.action-btn i {
    font-size: 1.1rem;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #0099ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
    box-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .character-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .user-panel-container {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .dashboard-header {
        padding: 1.5rem;
    }
}

#balance, #faction {
  white-space: nowrap;
  word-break: normal;
  hyphens: none;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 98%;
  display: inline-block;
  vertical-align: middle;
  font-size: 1.6rem;
  cursor: pointer;
} 