/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.tron-light {
    font-family: Lato, PingFangSC-Regular, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji, Android Emoji, EmojiSymbols;
    overflow-y: auto;
    font-weight: 300;
}

body {
    background-color: #fff;
    color: #3e3f3a;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Стили для шапки */
.header {
    background-color: #f9f9f9;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.nav-container-sec {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    margin-right: 24px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 24px;
}

.logo-text {
    font-weight: 700;
    font-size: 16px;
    margin-left: 8px;
    color: #333;
    display: none;
    letter-spacing: -0.5px;
}

.main-nav {
    height: 100%;
}

.main-nav ul {
    display: flex;
    height: 100%;
}

.main-nav li {
    height: 100%;
    position: relative;
}

.main-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    color: #333;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #c23631;
}

.main-nav a.active {
    color: #c23631;
    font-weight: 600;
    position: relative;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #c23631;
}

.header-right {
    display: flex;
    align-items: center;
}

.auth-group {
    display: flex;
    align-items: center;
    margin-right: 16px;
}

.register-btn, .login-btn {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    white-space: nowrap;
    text-decoration: none;
}

.separator {
    margin: 0 8px;
    color: #ccc;
}

.connect-wallet-btn {
    background-color: #333;
    color: white;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.2s;
    margin-right: 16px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    box-shadow: none;
    text-transform: none;
    line-height: 1.5;
}

.connect-wallet-btn:hover {
    background-color: #000;
}

.header-icons {
    display: flex;
    align-items: center;
}

.icon-btn {
    color: #666;
    font-size: 18px;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    color: #666;
    font-size: 20px;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.mobile-auth-group {
    display: none;
    align-items: center;
}

.mobile-register-btn, .mobile-login-btn {
    font-size: 14px;
    color: #333;
    font-weight: 400;
    text-decoration: none;
}

.mobile-separator {
    margin: 0 8px;
    color: #ccc;
}

/* Стили для объявления */
.announcement-bar {
    background-color: #f9f9f9;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.announcement-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
}

.announcement-icon {
    color: #666;
    margin-right: 8px;
    font-size: 14px;
}

.announcement-text {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.close-announcement {
    color: #666;
    font-size: 14px;
    margin-left: 16px;
}

/* Контент-заглушка */
.content-placeholder {
    padding: 60px 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.wallet-connect-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.wallet-connect-container h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #333;
    font-weight: 600;
}

.wallet-connect-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.connect-wallet-btn-large {
    background-color: #333;
    color: white;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 400;
    transition: background-color 0.2s;
    min-width: 160px;
    border: none;
    cursor: pointer;
    box-shadow: none;
    text-transform: none;
    line-height: 1.5;
}

.connect-wallet-btn-large:hover {
    background-color: #000;
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 99;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.mobile-logo {
    display: flex;
    align-items: center;
}

.mobile-logo img {
    height: 24px;
}

.mobile-logo span {
    display: none;
}

.mobile-connect {
    margin-right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav a {
    display: block;
    padding: 16px;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    font-weight: 400;
}

.mobile-nav a.active {
    color: #c23631;
    font-weight: 500;
}

.mobile-auth {
    display: flex;
    padding: 16px;
    justify-content: space-between;
}

.mobile-register, .mobile-login {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 16px;
}

/* Цвета */
:root {
    --blue: #3256d8;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --red: #c23631;
}

/* Адаптивные стили */
@media (max-width: 1200px) {
    .main-nav a {
        padding: 0 8px;
        font-size: 13px;
    }

    .header-container {
        padding: 0 10px;
    }
}

@media (max-width: 992px) {
    .auth-group {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        height: 56px;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .header-right {
        margin-left: auto;
        display: flex;
        align-items: center;
    }
    
    .auth-group {
        display: none;
    }
    
    .mobile-auth-group {
        display: flex;
    }
    
    .connect-wallet-btn {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        color: #000;
        margin-left: 16px;
    }
    
    .notification-btn {
        color: #000;
    }
    
    .logo-text {
        display: none;
    }
    
    .announcement-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .announcement-text {
        margin: 8px 0;
    }
    
    .close-announcement {
        align-self: flex-end;
        margin-top: 8px;
    }
    
    .mobile-menu.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .wallet-connect-container {
        padding: 24px 16px;
    }
    
    .wallet-connect-container h2 {
        font-size: 20px;
    }
    
    .wallet-connect-container p {
        font-size: 14px;
    }
    
    .connect-wallet-btn-large {
        padding: 10px 20px;
        font-size: 14px;
    }
}
