/* ========================================
   ANKREX BRAND IDENTITY SYSTEM
   Ultra-Premium Logo Design
   ======================================== */

/* 
   Typography: 'Outfit' (Geometric Sans) 
   Icon: Custom Emerald Gem
   Color Palette: Emerald Green (#10B981) + White
*/

:root {
    --brand-font: 'Outfit', sans-serif;
    --logo-primary: #ffffff;
    --logo-accent: #10B981;
    --logo-accent-light: #34D399;
    --logo-accent-dark: #059669;
    --logo-glow: rgba(16, 185, 129, 0.3);
    --logo-glow-strong: rgba(16, 185, 129, 0.5);
}

/* ========================================
   MAIN BRAND LOGO CONTAINER
   ======================================== */

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none !important;
    position: relative;
    z-index: 10;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover {
    transform: scale(1.03);
}

.brand-logo:hover .brand-icon {
    transform: rotate(-5deg) scale(1.1);
    filter: drop-shadow(0 0 20px var(--logo-glow-strong));
}

.brand-logo:hover .brand-text .ex {
    filter: drop-shadow(0 4px 20px var(--logo-glow-strong));
}

/* ========================================
   BRAND ICON - EMERALD GEM
   ======================================== */

.brand-icon {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* SVG Gem Icon */
.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-icon .gem-main {
    fill: var(--logo-accent);
}

.brand-icon .gem-light {
    fill: var(--logo-accent-light);
}

.brand-icon .gem-dark {
    fill: var(--logo-accent-dark);
}

/* CSS Gem Fallback (Pure CSS Diamond) */
.brand-icon-css {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-icon-css::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 10px solid var(--logo-accent-light);
}

.brand-icon-css::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 18px solid var(--logo-accent);
}

/* ========================================
   BRAND TEXT - TYPOGRAPHY
   ======================================== */

.brand-text {
    font-family: var(--brand-font);
    font-size: 1.65rem;
    line-height: 1;
    display: flex;
    align-items: center;
    transform: translateY(1px);
}

/* Segment 1: "ANKR" - The Foundation */
.brand-text .ankr {
    color: var(--logo-primary);
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
}

/* Segment 2: "EX" - The Accelerator */
.brand-text .ex {
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-left: 0.02em;
    background: linear-gradient(135deg, var(--logo-accent) 0%, var(--logo-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 2px 12px var(--logo-glow));
    transition: filter 0.3s ease;
}

/* Arrow Accent on "A" */
.brand-text .ankr-arrow {
    color: var(--logo-accent);
    font-weight: 800;
    position: relative;
}

.brand-text .ankr-arrow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 5px solid var(--logo-accent);
}

/* ========================================
   SIZE VARIANTS
   ======================================== */

/* Extra Small - Minimal contexts */
.brand-logo-xs .brand-icon,
.brand-logo-xs .brand-icon-css {
    width: 20px;
    height: 20px;
}

.brand-logo-xs .brand-text {
    font-size: 1.1rem;
}

/* Small - Mobile / Navbar Compact */
.brand-logo-sm {
    gap: 0.5rem;
}

.brand-logo-sm .brand-icon,
.brand-logo-sm .brand-icon-css {
    width: 24px;
    height: 24px;
}

.brand-logo-sm .brand-text {
    font-size: 1.35rem;
}

/* Medium - Standard / Auth Pages */
.brand-logo-md {
    gap: 0.6rem;
}

.brand-logo-md .brand-icon,
.brand-logo-md .brand-icon-css {
    width: 32px;
    height: 32px;
}

.brand-logo-md .brand-text {
    font-size: 1.65rem;
}

/* Large - Hero / Footer */
.brand-logo-lg {
    gap: 0.75rem;
}

.brand-logo-lg .brand-icon,
.brand-logo-lg .brand-icon-css {
    width: 40px;
    height: 40px;
}

.brand-logo-lg .brand-text {
    font-size: 2.1rem;
}

/* Extra Large - Special occasions */
.brand-logo-xl {
    gap: 0.85rem;
}

.brand-logo-xl .brand-icon,
.brand-logo-xl .brand-icon-css {
    width: 48px;
    height: 48px;
}

.brand-logo-xl .brand-text {
    font-size: 2.5rem;
}

/* Sidebar Specific */
.brand-logo-sidebar {
    gap: 0.55rem;
}

.brand-logo-sidebar .brand-icon,
.brand-logo-sidebar .brand-icon-css {
    width: 28px;
    height: 28px;
}

.brand-logo-sidebar .brand-text {
    font-size: 1.5rem;
}

/* Responsive (Mobile) */
.brand-logo-responsive .brand-icon,
.brand-logo-responsive .brand-icon-css {
    width: 24px;
    height: 24px;
}

.brand-logo-responsive .brand-text {
    font-size: 1.35rem;
}

/* ========================================
   COLOR VARIANTS
   ======================================== */

/* Dark Background (Default) */
.brand-logo-dark .brand-text .ankr {
    color: #ffffff;
}

/* Light Background */
.brand-logo-light .brand-text .ankr {
    color: #0F172A;
}

.brand-logo-light .brand-icon .gem-main {
    fill: var(--logo-accent-dark);
}

/* Monochrome White */
.brand-logo-mono-white .brand-text .ankr,
.brand-logo-mono-white .brand-text .ex {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.brand-logo-mono-white .brand-icon .gem-main,
.brand-logo-mono-white .brand-icon .gem-light,
.brand-logo-mono-white .brand-icon .gem-dark {
    fill: #ffffff;
}

/* Monochrome Emerald */
.brand-logo-mono-emerald .brand-text .ankr {
    color: var(--logo-accent);
    background: none;
    -webkit-text-fill-color: var(--logo-accent);
}

/* ========================================
   IMAGE LOGO VARIANT
   ======================================== */

.brand-logo-img {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo-img:hover {
    transform: scale(1.03);
}

.brand-logo-img img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-logo-img.brand-logo-sm img {
    height: 32px;
}

.brand-logo-img.brand-logo-md img {
    height: 40px;
}

.brand-logo-img.brand-logo-lg img {
    height: 52px;
}

.brand-logo-img.brand-logo-sidebar img {
    height: 36px;
}

/* ========================================
   TEXT-ONLY VARIANT (No Icon)
   ======================================== */

.brand-logo-text-only {
    gap: 0;
}

.brand-logo-text-only .brand-icon,
.brand-logo-text-only .brand-icon-css {
    display: none;
}

/* ========================================
   SPECIAL EFFECTS
   ======================================== */

/* Glow Effect */
.brand-logo-glow .brand-icon {
    filter: drop-shadow(0 0 12px var(--logo-glow));
}

.brand-logo-glow .brand-text .ex {
    filter: drop-shadow(0 0 16px var(--logo-glow-strong));
}

/* Animated Shimmer */
@keyframes logo-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.brand-logo-shimmer .brand-text .ex {
    background: linear-gradient(
        90deg,
        var(--logo-accent) 0%,
        var(--logo-accent-light) 25%,
        #ffffff 50%,
        var(--logo-accent-light) 75%,
        var(--logo-accent) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-shimmer 3s linear infinite;
}

/* Pulse Icon Animation */
@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.brand-logo-pulse .brand-icon {
    animation: icon-pulse 2s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .brand-logo-lg {
        gap: 0.55rem;
    }
    
    .brand-logo-lg .brand-icon,
    .brand-logo-lg .brand-icon-css {
        width: 32px;
        height: 32px;
    }
    
    .brand-logo-lg .brand-text {
        font-size: 1.65rem;
    }

    .brand-logo-md .brand-icon,
    .brand-logo-md .brand-icon-css {
        width: 26px;
        height: 26px;
    }

    .brand-logo-md .brand-text {
        font-size: 1.45rem;
    }
}

@media (max-width: 576px) {
    .brand-logo-lg {
        gap: 0.5rem;
    }
    
    .brand-logo-lg .brand-icon,
    .brand-logo-lg .brand-icon-css {
        width: 28px;
        height: 28px;
    }
    
    .brand-logo-lg .brand-text {
        font-size: 1.5rem;
    }

    .brand-logo-md .brand-icon,
    .brand-logo-md .brand-icon-css {
        width: 24px;
        height: 24px;
    }

    .brand-logo-md .brand-text {
        font-size: 1.35rem;
    }
}

/* ========================================
   FAVICON / APP ICON REFERENCE
   ======================================== */

/* 
   For favicon/app icon usage, use the image:
   static/themes/green/img/ankrex-logo.png
   
   Recommended sizes to generate:
   - favicon.ico: 32x32, 16x16
   - apple-touch-icon: 180x180
   - android-chrome: 192x192, 512x512
*/
