/* ZenDrop - Modern CS2 Case Opening Platform */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #68d391;
    --danger-color: #e53e3e;
    --warning-color: #ed8936;
    --dark-bg: #1a202c;
    --card-bg: rgba(45, 55, 72, 0.95);
    --card-hover: rgba(55, 65, 81, 0.95);
    --text-light: #e2e8f0;
    --text-muted: #a0aec0;
    --border-color: #2d3748;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-steam: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Меню навигации */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.nav-icon {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}

/* Блок пользователя */
.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.balance-info {
    display: flex;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.balance-icon {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.nav-balance {
    font-weight: 600;
    color: var(--primary-color);
}

.user-avatar-dropdown {
    position: relative;
    cursor: pointer;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: transform 0.2s;
}

.nav-avatar:hover {
    transform: scale(1.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.user-avatar-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

/* Кнопка Steam */
.steam-login-btn {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-steam);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #496a8b;
}

.steam-login-btn.enhanced {
    box-shadow: var(--shadow-lg);
}

.steam-login-btn.enhanced.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.steam-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.steam-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
}

.login-section {
    display: block;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Промо секция */
.promo-section {
    margin-bottom: 2rem;
}

.promo-card {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.promo-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.promo-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.promo-text h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.promo-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.promo-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

.promo-timer {
    text-align: center;
    color: white;
}

.promo-timer div {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: monospace;
}

.promo-timer small {
    opacity: 0.8;
}

/* Герой секция */
.hero-section {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.steam-connect-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.steam-connect-section h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.steam-connect-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Секция кейсов */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text-light);
}

.cases-filter {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-light);
    min-width: 250px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Сетка кейсов */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.case-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: var(--card-hover);
}

.case-card.new::before {
    content: 'NEW';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.case-card.popular::before {
    content: 'HOT';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.case-image {
    width: 100%;
    height: 120px;
    background: var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.case-info h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.case-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.case-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.open-case-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.open-case-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.open-case-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Live дропы */
.live-drops-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.live-drops-section h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.live-drops-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
}

.drop-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.drop-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.drop-text {
    flex: 1;
    font-size: 0.9rem;
}

.drop-text strong {
    color: var(--primary-color);
}

.drop-item.covert .drop-item-name {
    color: #eb4b4b;
    font-weight: 600;
}

.drop-item.classified .drop-item-name {
    color: #d32ce6;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cases-filter {
        flex-direction: column;
    }
    
    .search-input {
        min-width: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
}

/* Утилиты */
.hidden {
    display: none !important;
}

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

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ===== СТРАНИЦА ПРОФИЛЯ ===== */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.profile-info h1 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.profile-steamid {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.profile-section h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.profile-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Trade Link Form */
.trade-link-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.trade-link-input {
    flex: 1;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-light);
}

.trade-link-input::placeholder {
    color: var(--text-muted);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Инвентарь */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.inventory-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.inventory-item.covert {
    border-left: 4px solid #eb4b4b;
}

.inventory-item.classified {
    border-left: 4px solid #d32ce6;
}

.inventory-item.restricted {
    border-left: 4px solid #8847ff;
}

.inventory-item.milspec {
    border-left: 4px solid #4b69ff;
}

.inventory-item.industrial {
    border-left: 4px solid #5e98d9;
}

.item-image {
    width: 100%;
    height: 80px;
    background: var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.item-info h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.item-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.item-actions {
    margin-top: 0.75rem;
}

.btn-sell {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-sell:hover {
    background: #48bb78;
    transform: translateY(-1px);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.empty-state p {
    margin-bottom: 1rem;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Адаптивность для профиля */
@media (max-width: 768px) {
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .trade-link-form {
        flex-direction: column;
    }
    
    .inventory-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
