/* BitChat APK - Circular Logo Styles */

/* 圆形Logo容器 */
.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-hover) 100%);
    box-shadow: var(--shadow-accent);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* 简化的Logo样式 - 确保显示 */
.logo-container::before {
    content: 'BC';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-weight: 900;
    font-size: 16px;
    font-family: Arial, sans-serif;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 4px rgba(255, 255, 255, 0.5);
    z-index: 2;
    letter-spacing: -0.5px;
}

/* 网络节点效果 */
.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, var(--c-accent) 0%, transparent 2px),
        radial-gradient(circle at 70% 30%, var(--c-accent) 0%, transparent 2px),
        radial-gradient(circle at 30% 70%, var(--c-accent) 0%, transparent 2px),
        radial-gradient(circle at 70% 70%, var(--c-accent) 0%, transparent 2px);
    opacity: 0.6;
    z-index: 1;
}

/* 内联SVG Logo样式 */
.logo-svg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* 备用Logo样式 */
.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-hover) 100%);
    border-radius: 50%;
    color: var(--c-bg-dark);
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 224, 184, 0.6);
}

/* Logo文字 */
.logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--c-bg-dark);
    text-align: center;
    line-height: 1;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

/* Logo背景网格效果 */
.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 50%;
    z-index: 1;
}

/* 导航栏中的Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--c-accent);
    letter-spacing: -0.03em;
    position: relative;
}

.nav-logo .logo-container {
    width: 36px;
    height: 36px;
}

.nav-logo .logo-text {
    font-size: 12px;
}

.nav-logo .logo-text-full {
    font-size: 1.75rem;
    color: var(--c-accent);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

/* 页脚中的Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-container {
    width: 32px;
    height: 32px;
}

.footer-logo .logo-text {
    font-size: 10px;
}

.footer-logo .logo-text-full {
    font-size: 1.25rem;
    color: var(--c-text);
}

/* 下载卡片中的Logo */
.download-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.download-logo .logo-container {
    width: 60px;
    height: 60px;
}

.download-logo .logo-text {
    font-size: 18px;
}

.download-logo .logo-text-full {
    font-size: 2rem;
    color: var(--c-accent);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-logo .logo-container {
        width: 32px;
        height: 32px;
    }
    
    .nav-logo .logo-text {
        font-size: 10px;
    }
    
    .nav-logo .logo-text-full {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-logo .logo-container {
        width: 28px;
        height: 28px;
    }
    
    .nav-logo .logo-text {
        font-size: 9px;
    }
    
    .nav-logo .logo-text-full {
        font-size: 1.25rem;
    }
}

/* 浅色主题下的Logo */
[data-theme="light"] .logo-container {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-hover) 100%);
    box-shadow: 0 2px 8px rgba(0, 224, 184, 0.3);
}

[data-theme="light"] .logo-container:hover {
    box-shadow: 0 4px 20px rgba(0, 224, 184, 0.5);
}

[data-theme="light"] .logo-text {
    color: var(--c-bg-dark);
}

[data-theme="light"] .nav-logo .logo-text-full {
    color: var(--c-accent);
}

[data-theme="light"] .footer-logo .logo-text-full {
    color: var(--c-text);
}

[data-theme="light"] .download-logo .logo-text-full {
    color: var(--c-accent);
} 