/* ========================================
   LAYOUT STYLES
   Header, Banner, Navigation, Footer
   ======================================== */

/* Header Styles */
.header {
    background: #0a0a0a;
    padding: 0 20px 0;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.app-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Banner Styles */
.banner {
    background: transparent;
    border-bottom: 1px solid #2a2a2a;
    padding: 4px 16px 8px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    gap: 12px;
    min-height: 48px;
}

/* Left: User Profile */
.banner-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    flex: 1 1 auto;
    max-width: 35%;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.banner-left:hover {
    background: #242424;
    border-color: #24A1DE;
    transform: translateY(-1px);
}

.banner-profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.banner-profile-name {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    max-width: 100%;
}

/* Center: Logo */
.banner-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    padding: 8px 16px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.banner-logo {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.banner-logo img {
    max-height: 32px;
    max-width: 100px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Right: Wallet */
.banner-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 0;
    flex: 1 1 auto;
    justify-content: center;
    max-width: 35%;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #2a2a2a;
}

.banner-right:hover {
    background: #242424;
    border-color: #24A1DE;
    transform: translateY(-1px);
}

.banner-wallet-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.banner-wallet-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    min-width: 0;
}

.banner-wallet-status {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-wallet-balance {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.banner-wallet-text {
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    max-width: 100%;
}

/* Hide banner when profile tab is active */
.app-container.profile-active .banner {
    display: none;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #2D2D2D;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.language-selector:hover {
    background: #3a3a3a;
}

.flag {
    font-size: 16px;
}

.lang {
    font-weight: 500;
}

/* Language Menu Styling */
.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 10px 0;
    z-index: 1000;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
}

.language-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #ffffff;
}

.language-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.language-menu-item .flag {
    font-size: 18px;
    margin-right: 8px;
    display: inline-block;
    min-width: 20px;
}

.language-menu-item .lang-name {
    font-size: 14px;
    font-weight: 500;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 12px;
}

.nav-item.active {
    color: #24A1DE;
}

.nav-item i {
    font-size: 18px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: #24A1DE;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(36, 161, 222, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #1C7DAD;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(36, 161, 222, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

