/* Dock Menu Styles */
.dock-menu {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: var(--neon-border);
    border-radius: 30px;
    padding: 12px 20px;
    display: flex;
    gap: clamp(15px, 4vw, 35px);
    z-index: var(--z-max);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 
                var(--neon-glow);
    width: 95%;
    max-width: 550px;
    justify-content: space-around;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-size: 0.65rem;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 8px;
}

.dock-item i {
    font-size: 1.4rem;
    margin-bottom: 2px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.dock-item span {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.1;
    display: block;
    width: 100%;
    word-break: break-word; /* Uzun kelimeleri bölebilir */
}

.dock-item.active {
    color: var(--cyber-blue);
    transform: translateY(-5px);
}

.dock-item.active i {
    text-shadow: 0 0 15px var(--cyber-blue);
}

.dock-item:hover {
    color: var(--neon-pink);
}

/* German Language Optimizations */
:lang(de) .dock-item {
    font-size: 0.6rem; /* Reduce font size for German */
    letter-spacing: -0.5px; /* Tighten letters */
}

:lang(de) .dock-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 65px;
}

.dock-item i {
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.dock-item:hover, .dock-item.active {
    color: var(--cyber-blue);
    text-shadow: 0 0 10px var(--cyber-blue);
}

.dock-item:hover i {
    transform: translateY(-3px);
    text-shadow: 0 0 15px var(--cyber-blue);
}

/* Play Button Special Styling */
.dock-item.play-btn {
    transform: translateY(-15px);
}

.play-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--cyber-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 251, 255, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.play-icon-wrapper i {
    color: #000;
    font-size: 1.5rem !important;
    margin-left: 4px; /* Center the play triangle better */
}

.dock-item.play-btn:hover .play-icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 251, 255, 0.6);
}

.dock-item.play-btn span {
    color: var(--cyber-blue);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 251, 255, 0.5);
}

.dock-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--cyber-blue);
    box-shadow: 0 0 5px var(--cyber-blue);
    transition: transform 0.3s ease;
}

.dock-item:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .dock-menu {
        bottom: 10px;
        width: 96%;
        padding: 8px 4px;
        gap: 0;
        justify-content: space-around;
        border-radius: 20px;
    }
    
    .dock-item {
        font-size: 0.48rem;
        min-width: 0;
        flex: 1;
        padding: 4px 2px;
    }
    
    .dock-item i {
        font-size: 1rem;
    }

    .dock-item span {
        letter-spacing: 0;
        font-size: 0.45rem;
    }

    .play-icon-wrapper {
        width: 36px;
        height: 36px;
        margin-bottom: 2px;
    }

    .play-icon-wrapper i {
        font-size: 1.2rem !important;
    }
}

/* Modal Content Styles */
.shop-card, .leaderboard-row, .profile-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 251, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.shop-card:hover {
    border-color: var(--cyber-blue);
    box-shadow: 0 0 15px rgba(0, 251, 255, 0.2);
    transform: translateY(-2px);
}

.shop-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 5px rgba(0,255,0,0.5));
}

.shop-card h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1rem;
}

.shop-card .price {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
}

.leaderboard-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
}

.leaderboard-row.current-user {
    background: rgba(0, 251, 255, 0.1);
    border-color: var(--cyber-blue);
}

.rank-badge {
    width: 30px;
    height: 30px;
    min-width: 30px; /* Prevent shrinking */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 50%;
    background: #333;
    color: #fff;
    flex-shrink: 0; /* Prevent shrinking */
}

.rank-1 { background: #ffd700; color: #000; box-shadow: 0 0 10px #ffd700; }
.rank-2 { background: #c0c0c0; color: #000; box-shadow: 0 0 10px #c0c0c0; }
.rank-3 { background: #cd7f32; color: #000; box-shadow: 0 0 10px #cd7f32; }

.profile-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    color: var(--cyber-blue);
    font-weight: bold;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
}
