/* 👤 Стили для профиля игрока */

/* Основная секция профиля */
.profile-section {
    padding: 0;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 0;
    overflow: hidden;
}

/* Героическая секция профиля */
.profile-hero {
    position: relative;
    padding: 40px 20px 60px;
    background: linear-gradient(135deg, #4caf50, #66bb6a, #81c784);
    text-align: center;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Контейнер аватара */
.profile-avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    z-index: 2;
}

.profile-avatar-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    padding: 4px;
    animation: avatarGlow 3s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    from {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

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

/* Уровень игрока - миниатюрный */
.profile-level {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.7em;
    font-weight: bold;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.level-number {
    font-size: 0.9em;
    line-height: 1;
    font-weight: bold;
}

.level-text {
    display: none;
}

/* Заголовок профиля */
.profile-title {
    position: relative;
    z-index: 2;
}

.profile-title h1 {
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.profile-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    margin: 0;
    font-weight: 500;
}

/* Сетка статистики */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 30px 20px;
    background: #1a1a1a;
}

.stat-card {
    position: relative;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #4caf50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.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.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.4);
    border-color: #66bb6a;
}

.stat-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(76, 175, 80, 0.6));
}

.stat-info {
    text-align: center;
}

.stat-label {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-value {
    color: #4caf50;
    font-size: 1.4em;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Специальные стили для карточек */
.balance-card:hover {
    border-color: #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.cases-card:hover {
    border-color: #ff6b6b;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
}

.rank-card:hover {
    border-color: #9c27b0;
    box-shadow: 0 10px 30px rgba(156, 39, 176, 0.4);
}

.streak-card:hover {
    border-color: #ff5722;
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.4);
}

/* Секция достижений */
.achievements-section {
    padding: 30px 20px;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-top: 2px solid #4caf50;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4caf50;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.title-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 0 5px rgba(76, 175, 80, 0.6));
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
}

.achievement-item {
    background: linear-gradient(135deg, #3d3d3d, #2d2d2d);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    border: 2px solid #555;
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-item.unlocked {
    border-color: #ffd700;
    background: linear-gradient(135deg, #4d4d4d, #3d3d3d);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.achievement-item:hover {
    transform: translateY(-3px) scale(1.05);
}

.achievement-icon {
    font-size: 2em;
    margin-bottom: 5px;
    display: block;
}

.achievement-name {
    font-size: 0.7em;
    color: #ccc;
    font-weight: 500;
}

.achievement-item.unlocked .achievement-name {
    color: #ffd700;
    font-weight: bold;
}

/* Секция лучшего дропа */
.best-drop-section {
    padding: 30px 20px;
    background: #1a1a1a;
    border-top: 2px solid #4caf50;
}

.best-drop-container {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 20px;
    padding: 25px;
    border: 2px solid #4caf50;
    position: relative;
    overflow: hidden;
}

.best-drop-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    pointer-events: none;
}

.best-drop-item.enhanced {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #3d3d3d, #2d3d2d);
    border-radius: 20px;
    padding: 25px;
    border: 3px solid #4caf50;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.4);
    overflow: hidden;
}

.best-drop-item.enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.drop-glow {
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #4caf50, #66bb6a, #81c784, #4caf50);
    border-radius: 23px;
    z-index: -1;
    background-size: 400% 400%;
    animation: glowPulse 2s ease-in-out infinite alternate, gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    from {
        opacity: 0.6;
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
    }
    to {
        opacity: 1;
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.8), 0 0 40px rgba(76, 175, 80, 0.6);
    }
}

.drop-container {
    display: flex;
    align-items: center;
    gap: 25px;
    position: relative;
}

.drop-image-container {
    position: relative;
    display: inline-block;
}

.drop-image {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    border: 4px solid #4caf50;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.drop-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.drop-info {
    flex: 1;
}

.drop-info .item-name {
    color: #fff;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    background: linear-gradient(45deg, #fff, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.drop-info .item-rarity {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 12px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid;
}

.drop-info .item-price {
    color: #ffd700;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.drop-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: bold;
    border: 3px solid #fff;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    animation: badgeBounce 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Стили для разных редкостей */
.rarity-common {
    background: linear-gradient(135deg, #9e9e9e, #bdbdbd);
    color: #000;
    border-color: #9e9e9e;
}

.rarity-uncommon {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    border-color: #4caf50;
}

.rarity-rare {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    color: #fff;
    border-color: #2196f3;
}

.rarity-epic {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: #fff;
    border-color: #9c27b0;
}

.rarity-legendary {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: #000;
    border-color: #ff9800;
    animation: legendaryGlow 2s ease-in-out infinite alternate;
}

@keyframes legendaryGlow {
    from { box-shadow: 0 0 10px rgba(255, 152, 0, 0.5); }
    to { box-shadow: 0 0 20px rgba(255, 152, 0, 0.8), 0 0 30px rgba(255, 152, 0, 0.6); }
}

/* Сообщение о пустом дропе */
.no-drop-message {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 15px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.no-drop-message p {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #ccc;
}

.no-drop-message small {
    font-style: italic;
    color: #888;
}

/* Действия профиля */
.profile-actions {
    padding: 30px 20px;
    background: #1a1a1a;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, #66bb6a, #81c784);
}

.btn-icon {
    font-size: 1.2em;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .profile-hero {
        padding: 30px 20px 40px;
    }
    
    .profile-avatar-ring {
        width: 100px;
        height: 100px;
    }
    
    .profile-title h1 {
        font-size: 1.8em;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-icon {
        font-size: 2em;
    }
    
    .stat-value {
        font-size: 1.2em;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .achievement-item {
        padding: 10px 5px;
    }
    
    .achievement-icon {
        font-size: 1.5em;
    }
    
    .achievement-name {
        font-size: 0.6em;
    }
    
    .drop-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .drop-image {
        width: 90px;
        height: 90px;
    }
    
    .drop-info .item-name {
        font-size: 1.2em;
    }
    
    .drop-info .item-rarity {
        font-size: 1em;
        padding: 5px 10px;
    }
    
    .drop-info .item-price {
        font-size: 1.1em;
    }
    
    .profile-actions {
        padding: 20px 15px;
    }
    
    .action-btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .profile-hero {
        padding: 25px 15px 35px;
    }
    
    .profile-avatar-ring {
        width: 90px;
        height: 90px;
    }
    
    .profile-title h1 {
        font-size: 1.6em;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px 10px;
    }
    
    .stat-card {
        padding: 15px;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .stat-icon {
        font-size: 2em;
        margin-bottom: 0;
    }
    
    .stat-info {
        text-align: left;
        flex: 1;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .achievement-item {
        padding: 8px 4px;
    }
    
    .achievement-icon {
        font-size: 1.3em;
    }
    
    .achievement-name {
        font-size: 0.55em;
    }
    
    .drop-image {
        width: 80px;
        height: 80px;
    }
    
    .drop-info .item-name {
        font-size: 1.1em;
    }
    
    .drop-info .item-rarity {
        font-size: 0.9em;
        padding: 4px 8px;
    }
    
    .drop-info .item-price {
        font-size: 1em;
    }
    
    .profile-actions {
        padding: 20px 10px;
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        padding: 15px;
        font-size: 1em;
    }
}

/* Упрощенный дизайн лучшего дропа */
.best-drop-simple {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 15px;
    border: 2px solid #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.best-drop-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-image-container {
    position: relative;
    flex-shrink: 0;
}

.item-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    border: 3px solid #4caf50;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
    transition: transform 0.3s ease;
}

.item-img:hover {
    transform: scale(1.05);
}

.rarity-label {
    position: absolute;
    bottom: -5px;
    right: -5px;
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.6em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.item-info {
    flex: 1;
    text-align: left;
}

.item-title {
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.item-price {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    width: fit-content;
}

.price-value {
    color: #ffd700;
    font-size: 1em;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}

.price-currency {
    color: #ffd700;
    font-size: 1em;
}

/* Мобильная адаптация для упрощенного дизайна */
@media (max-width: 768px) {
    .best-drop-simple {
        padding: 12px;
        margin: 0 10px;
    }
    
    .best-drop-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .item-image-container {
        display: flex;
        justify-content: center;
    }
    
    .item-img {
        width: 65px;
        height: 65px;
    }
    
    .item-info {
        text-align: center;
        width: 100%;
    }
    
    .item-title {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .item-price {
        justify-content: center;
        margin: 0 auto;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .best-drop-simple {
        padding: 10px;
        margin: 0 5px;
        border-radius: 12px;
    }
    
    .best-drop-item {
        gap: 10px;
    }
    
    .item-img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        border: 2px solid #4caf50;
    }
    
    .rarity-label {
        bottom: -4px;
        right: -4px;
        padding: 2px 4px;
        font-size: 0.55em;
        border-radius: 6px;
    }
    
    .item-title {
        font-size: 0.95em;
        margin-bottom: 5px;
    }
    
    .item-price {
        padding: 5px 8px;
        border-radius: 8px;
        max-width: 180px;
    }
    
    .price-value, .price-currency {
        font-size: 0.9em;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .best-drop-simple {
        padding: 8px;
        margin: 0 3px;
        border-radius: 10px;
    }
    
    .best-drop-item {
        gap: 8px;
    }
    
    .item-img {
        width: 55px;
        height: 55px;
        border-radius: 8px;
    }
    
    .rarity-label {
        bottom: -3px;
        right: -3px;
        padding: 1px 3px;
        font-size: 0.5em;
        border-radius: 4px;
    }
    
    .item-title {
        font-size: 0.9em;
        margin-bottom: 4px;
    }
    
    .item-price {
        padding: 4px 6px;
        border-radius: 6px;
        max-width: 160px;
    }
    
    .price-value, .price-currency {
        font-size: 0.85em;
    }
}
