/* ===================================
   Современный минималистичный дизайн LootLink
   =================================== */

/* Переопределяем CSS переменные */
:root {
    /* Основные цвета - современная палитра */
    --primary: #0066FF;
    --primary-hover: #0052CC;
    --primary-light: #E6F0FF;
    --secondary: #6B7280;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --dark: #111827;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-900: #111827;
    
    /* Тени - современные, мягкие */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Радиусы */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* ========== Navbar - чистый и минималистичный ========== */
.navbar {
    background: white !important;
    border-bottom: 1px solid var(--gray-200) !important;
    padding: 1rem 0 !important;
    box-shadow: var(--shadow-sm) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark) !important;
}

.logo-svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

/* Современная анимация логотипа - более мягкая */
.logo-circle {
    stroke-dasharray: 126;
    stroke-dashoffset: 126;
    animation: drawCircle 3s ease-in-out infinite;
}

.logo-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawPath 3s ease-in-out infinite 0.3s;
}

@keyframes drawCircle {
    0%, 100% {
        stroke-dashoffset: 126;
        opacity: 0.5;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes drawPath {
    0%, 100% {
        stroke-dashoffset: 50;
        opacity: 0.5;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.nav-link {
    color: var(--gray-600) !important;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* ========== Кнопки - современные, плоские ========== */
.btn {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    background-color: transparent !important;
    border: 2px solid var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: white !important;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

/* ========== Карточки объявлений - современные ========== */
.listing-item {
    background: white;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200) !important;
    box-shadow: var(--shadow-sm) !important;
}

.listing-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary) !important;
}

.listing-badge {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.375rem 0.875rem !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    font-size: 0.8125rem !important;
}

.listing-price {
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

/* ========== Hero секция - чистая и современная ========== */
.hero-landing {
    background: var(--gray-50) !important;
    padding: 3rem 0 !important;
}

/* Hero иллюстрация - анимированные карточки */
.hero-illustration {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    transform: scale(1.05) !important;
    z-index: 10;
}

.floating-card-1 {
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    top: 50%;
    right: 5%;
    animation: float 7s ease-in-out infinite 1s;
}

.floating-card-3 {
    bottom: 15%;
    left: 15%;
    animation: float 8s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(1deg);
    }
    50% {
        transform: translateY(-10px) rotate(-1deg);
    }
    75% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

.card-mini-image {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-mini-image i {
    font-size: 1.5rem;
    color: var(--primary);
}

.card-mini-content {
    flex: 1;
}

.card-mini-title {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

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

/* Центральный бейдж */
.hero-center-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: white;
    padding: 2rem;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.hero-center-badge i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-center-text {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    color: var(--dark);
    font-weight: 800;
    line-height: 1.1;
}

.hero-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
}

.hero-stats {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

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

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ========== Feature карточки ========== */
.feature-card {
    background: white !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-lg) !important;
    padding: 2rem !important;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm) !important;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg) !important;
    transform: translateY(-2px);
    border-color: var(--primary) !important;
}

.feature-icon {
    width: 52px !important;
    height: 52px !important;
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-radius: var(--radius) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem !important;
}

.feature-icon i {
    font-size: 1.5rem !important;
}

.feature-title {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========== Секции ========== */
.section-title {
    color: var(--dark);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.0625rem;
}

/* ========== Игры ========== */
.game-card {
    background: white !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius) !important;
    padding: 1.5rem !important;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm) !important;
}

.game-card:hover {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

.game-icon-placeholder {
    width: 52px !important;
    height: 52px !important;
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-radius: var(--radius) !important;
}

/* ========== Формы - чистые и простые ========== */
.form-control,
.form-select {
    border-radius: var(--radius) !important;
    border: 1px solid var(--gray-300) !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
    outline: none !important;
}

.form-label {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ========== Поиск ========== */
.search-section {
    background: white !important;
    border-radius: var(--radius-lg) !important;
    padding: 2rem !important;
    box-shadow: var(--shadow) !important;
    border: 1px solid var(--gray-200) !important;
    margin-bottom: 2rem !important;
}

/* ========== CTA секция ========== */
.cta-section {
    background: var(--dark) !important;
    border-radius: var(--radius-lg) !important;
    padding: 4rem 2rem !important;
    text-align: center;
    box-shadow: var(--shadow-xl) !important;
}

.cta-title {
    color: white !important;
    font-weight: 800;
}

.cta-subtitle {
    color: var(--gray-300) !important;
}

/* ========== Футер - минималистичный ========== */
footer {
    background: var(--gray-900) !important;
    border-top: 1px solid var(--gray-800) !important;
}

footer h5, footer h6 {
    color: white;
    font-weight: 700;
}

footer p, footer a {
    color: var(--gray-300);
}

footer a:hover {
    color: white;
}

/* ========== Мобильное меню - без градиента ========== */
.mobile-menu-header {
    background: var(--primary) !important;
}

.mobile-avatar-placeholder {
    background: white !important;
    color: var(--primary) !important;
}

.mobile-menu-avatar-placeholder {
    background: white !important;
    color: var(--primary) !important;
}

.user-avatar-placeholder-small {
    background: var(--primary) !important;
}

.user-avatar-placeholder-dropdown {
    background: var(--primary) !important;
}

/* ========== Бейджи и метки ========== */
.badge {
    border-radius: var(--radius);
    font-weight: 600;
    padding: 0.375rem 0.75rem;
}

.badge.bg-success {
    background-color: var(--success) !important;
}

.badge.bg-primary {
    background-color: var(--primary) !important;
}

.badge.bg-danger {
    background-color: var(--danger) !important;
}

/* ========== Профиль ========== */
.profile-main-card,
.profile-stats-card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: var(--shadow) !important;
}

/* ========== Пустое состояние ========== */
.empty-state {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 4rem 2rem;
}

.empty-state i {
    color: var(--gray-300);
}

.empty-state h4 {
    color: var(--dark);
}

.empty-state p {
    color: var(--gray-600);
}

/* ========== Улучшенная навигация ========== */
.navbar-nav .nav-item {
    margin: 0 0.25rem;
}

.navbar-nav .nav-link {
    border-radius: var(--radius);
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    background-color: var(--gray-100);
}

/* ========== Аватарки - современный стиль ========== */
.user-avatar-small,
.mobile-avatar {
    border: 2px solid var(--gray-200) !important;
}

/* ========== Pагинация ========== */
.pagination .page-link {
    color: var(--gray-600);
    border-color: var(--gray-300);
    border-radius: var(--radius);
    margin: 0 0.125rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-link:hover {
    background-color: var(--gray-100);
    color: var(--primary);
}

/* ========== Модальные окна ========== */
.modal-content {
    border-radius: var(--radius-lg) !important;
    border: none !important;
    box-shadow: var(--shadow-xl) !important;
}

.modal-header {
    border-bottom: 1px solid var(--gray-200) !important;
    background-color: var(--gray-50);
}

.modal-footer {
    border-top: 1px solid var(--gray-200) !important;
    background-color: var(--gray-50);
}

/* ========== Улучшения интерфейса ========== */

/* Более современные input поля */
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 3px var(--primary-light) !important;
}

/* Чистые карточки */
.card {
    border: 1px solid var(--gray-200) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
}

.card-header {
    background-color: var(--gray-50) !important;
    border-bottom: 1px solid var(--gray-200) !important;
    font-weight: 700;
    color: var(--dark);
}

/* Современные ссылки */
a {
    transition: all 0.2s;
}

/* Более воздушные секции */
section {
    padding: 4rem 0;
}

/* Улучшенные таблицы (если есть) */
.table {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.table thead {
    background-color: var(--gray-50);
}

/* ========== Уведомления Toast ========== */
.toast {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--gray-200) !important;
}

/* ========== Статистика ========== */
.stat-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.stat-box:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-box-value {
    color: var(--primary);
    font-weight: 800;
}

.stat-box-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* ========== Чат - современный стиль ========== */
.chat-messages-card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: var(--shadow) !important;
}

.message-bubble {
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
}

.message-bubble.sent {
    background-color: var(--primary) !important;
}

.message-bubble.received {
    background-color: white !important;
    border: 1px solid var(--gray-200) !important;
}

/* ========== Dropdown меню ========== */
.dropdown-menu {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--gray-200) !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    border-radius: var(--radius) !important;
    padding: 0.625rem 1rem !important;
}

.dropdown-item:hover {
    background-color: var(--gray-100) !important;
}

/* ========== Мобильное меню - плоский дизайн ========== */
.mobile-menu-item-primary {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* ========== Поисковая форма - улучшенная ========== */
.search-form .btn-primary {
    width: 100%;
    height: 100%;
    min-height: 48px;
}

/* ========== Адаптивность ========== */
@media (max-width: 991px) {
    .hero-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-landing {
        padding: 1.5rem 0 !important;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .hero-stats {
        padding: 1.2rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .feature-icon {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-icon i {
        font-size: 1.25rem !important;
    }
    
    .feature-card {
        padding: 1.2rem !important;
    }
    
    .game-icon-placeholder {
        width: 44px !important;
        height: 44px !important;
    }
    
    .cta-section {
        padding: 2.5rem 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.15rem !important;
    }
    
    .logo-svg {
        width: 26px !important;
        height: 26px !important;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .hero-center-badge {
        width: 100px;
        height: 100px;
        padding: 1.2rem;
    }
    
    .hero-center-badge i {
        font-size: 2rem;
    }
}

