/* OpenNous Logo - Matching App Brain/AI Theme */
.opennous-logo {
    width: 200px;
    height: 60px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #06B6D4, #0f3460);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid #0f3460;
}

.logo-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.logo-icon::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: #06B6D4;
    border-radius: 50%;
    box-shadow: 
        0 0 0 3px rgba(6, 182, 212, 0.3),
        -15px -15px 0 4px rgba(6, 182, 212, 0.6),
        15px -15px 0 4px rgba(6, 182, 212, 0.6),
        -15px 15px 0 4px rgba(6, 182, 212, 0.6),
        15px 15px 0 4px rgba(6, 182, 212, 0.6);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 24px;
    font-weight: 800;
    color: #06B6D4;
    line-height: 1;
    font-family: 'Arial', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-tagline {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    font-family: 'Arial', sans-serif;
}

/* Brain/AI Logo Animation */
.logo-animated .logo-icon::after {
    animation: neuralPulse 3s ease-in-out infinite;
}

@keyframes neuralPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 3px rgba(6, 182, 212, 0.3),
            -15px -15px 0 4px rgba(6, 182, 212, 0.6),
            15px -15px 0 4px rgba(6, 182, 212, 0.6),
            -15px 15px 0 4px rgba(6, 182, 212, 0.6),
            15px 15px 0 4px rgba(6, 182, 212, 0.6);
    }
    50% { 
        box-shadow: 
            0 0 0 6px rgba(6, 182, 212, 0.6),
            -15px -15px 0 6px rgba(6, 182, 212, 0.9),
            15px -15px 0 6px rgba(6, 182, 212, 0.9),
            -15px 15px 0 6px rgba(6, 182, 212, 0.9),
            15px 15px 0 6px rgba(6, 182, 212, 0.9);
    }
}

/* Cross-Platform Logo Adaptations */
@media (max-width: 768px) {
    .opennous-logo {
        width: 160px;
        height: 50px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-name {
        font-size: 20px;
    }
    
    .logo-tagline {
        font-size: 8px;
    }
}

/* Dark Mode Logo (default) */
.dark-mode .logo-icon {
    background: linear-gradient(135deg, #e94560, #16213e);
    border-color: #0f3460;
}

.dark-mode .logo-name {
    color: #e94560;
}

/* Light Mode Logo */
.light-mode .logo-icon {
    background: linear-gradient(135deg, #e94560, #16213e);
    border-color: #0f3460;
}

.light-mode .logo-name {
    color: #e94560;
}

/* High Contrast Logo */
.high-contrast .logo-icon {
    background: #ffffff;
    border: 2px solid #000000;
}

.high-contrast .logo-icon::after {
    color: #000000;
}

.high-contrast .logo-name {
    color: #000000;
    background: none;
    -webkit-text-fill-color: #000000;
}

/* Logo Variants for Different Use Cases */
.logo-minimal .logo-icon {
    background: #e94560;
    border: none;
}

.logo-minimal .logo-icon::before,
.logo-minimal .logo-icon::after {
    display: none;
}

.logo-minimal .logo-icon::after {
    content: "";
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 4px;
    display: block;
}

.logo-gradient .logo-icon {
    background: linear-gradient(45deg, #e94560, #16213e, #0f3460);
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background: linear-gradient(45deg, #e94560, #16213e, #0f3460); }
    50% { background: linear-gradient(45deg, #16213e, #0f3460, #e94560); }
}

/* Platform-Specific Optimizations */
/* Windows */
.windows .logo-icon {
    border-radius: 4px;
    font-family: 'Segoe UI', sans-serif;
}

/* macOS */
.macos .logo-icon {
    border-radius: 6px;
    font-family: '-apple-system', 'BlinkMacSystemFont', sans-serif;
}

/* Linux */
.linux .logo-icon {
    border-radius: 8px;
    font-family: 'Ubuntu', 'Cantarell', sans-serif;
}

/* Favicon and App Icons */
.favicon {
    width: 32px;
    height: 32px;
    background: #e94560;
    border: 2px solid #0f3460;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}

.app-icon-large {
    width: 512px;
    height: 512px;
    background: linear-gradient(135deg, #e94560, #16213e, #0f3460);
    border-radius: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 4px solid #0f3460;
}

.app-icon-large::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.app-icon-large::after {
    content: "ON";
    color: white;
    font-weight: 900;
    font-size: 180px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
