/* Mining Game Styles */
.mining-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.mining-info {
    margin-bottom: 30px;
}

.mining-info h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.mining-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-box {
    background: linear-gradient(135deg, #000 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.stat-box .stat-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-box .stat-value {
    font-size: 1.8em;
    font-weight: bold;
}

.mining-game {
    text-align: center;
    margin: 30px 0;
}

.mine-area {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.mine-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.ore {
    font-size: 80px;
    user-select: none;
    transition: transform 0.1s ease;
    z-index: 2;
    position: relative;
}

.mine-area:active .ore {
    transform: scale(0.9);
}

.click-effect {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    opacity: 0;
    z-index: 3;
}

.click-effect.animate {
    animation: clickAnimation 0.5s ease-out;
}

@keyframes clickAnimation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.mining-controls {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.mining-reward {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    margin-top: 15px;
}

.daily-bonus-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
    margin-top: 30px;
    text-align: center;
}

.daily-bonus-card h3 {
    margin-bottom: 15px;
    font-size: 1.5em;
}

/* Tasks Container */
.tasks-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.tasks-container h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
}

/* Referrals Container */
.referrals-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.referrals-container h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.referral-info {
    max-width: 600px;
    margin: 0 auto;
}

.referral-code-box {
    margin: 30px 0;
}

.referral-code-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.referral-input-group {
    display: flex;
    gap: 10px;
}

.referral-input-group input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8f9fa;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

/* Upgrade Container */
.upgrade-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.upgrade-container h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.card-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-item.owned {
    border-color: #4caf50;
    background: linear-gradient(135deg, #f1f8e9 0%, #ffffff 100%);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.card-image-container {
    width: 100%;
    height: 240px;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-item:hover .card-image {
    transform: scale(1.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.card-level {
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.card-stats {
    margin-bottom: 15px;
}

.card-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.stat-label {
    color: #666;
}

.stat-value {
    font-weight: 600;
    color: #667eea;
}

.card-max-level {
    text-align: center;
    color: #4caf50;
    font-weight: 600;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 8px;
    margin-top: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
    margin-top: 10px;
    width: 100%;
}

.card-item.owned .card-image-container {
    border: 2px solid #4caf50;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.card-item:not(.owned) {
    opacity: 0.85;
}

.card-item:not(.owned):hover {
    opacity: 1;
}

/* Leaderboard Container */
.leaderboard-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.leaderboard-container h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.leaderboard-list {
    display: grid;
    gap: 15px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.leaderboard-item.rank-1 {
    border-left-color: #ffd700;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

.leaderboard-item.rank-2 {
    border-left-color: #c0c0c0;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

.leaderboard-item.rank-3 {
    border-left-color: #cd7f32;
    background: linear-gradient(135deg, #faf5f0 0%, #fff 100%);
}

.leaderboard-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    min-width: 50px;
    text-align: center;
}

.leaderboard-info {
    flex: 1;
    margin-left: 20px;
}

.leaderboard-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.leaderboard-stats {
    font-size: 0.9em;
    color: #666;
}

.leaderboard-balance {
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
}

/* Profile Container */
.profile-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.profile-container h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.profile-info {
    margin-bottom: 30px;
}

.profile-info p {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
}

.profile-info strong {
    color: #667eea;
}

.exp-bar {
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .mine-area {
        width: 250px;
        height: 250px;
    }
    
    .ore {
        font-size: 60px;
    }
    
    .mining-stats {
        grid-template-columns: 1fr;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
    
    .referral-input-group {
        flex-direction: column;
    }
}

