﻿/* Top Bar */
.top-bar {
    background-color: var(--primary);
    color: #FFFFFF;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001; 
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.top-bar-icon-wrap {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
}

.top-bar-icon {
    width: 20px;
    height: 20px;
    animation: ring 2s infinite;
}

.top-bar-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background-color: #EF4444; 
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

@keyframes ring {
    0% { transform: rotate(0); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-15deg); }
    15% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    25% { transform: rotate(5deg); }
    30% { transform: rotate(-5deg); }
    35% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

.top-bar-text {
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

.top-bar-text:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Branding */
.logo-main-wrapper {
    display: flex;
    flex-direction: column; 
    align-items: flex-start;
    gap: 0.2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.logo-sparkle {
    width: 24px;
    height: 24px;
    color: var(--primary);
    animation: pulse-icon 2s infinite alternate ease-in-out;
}

.logo-text-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

@keyframes shineSweep {
    0% { background-position: 100% center; } 
    40% { background-position: 0% center; }  
    100% { background-position: 0% center; } 
}

.logo-text-piril {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    font-family: 'Arial Black', Impact, sans-serif;
    text-transform: uppercase;
    
    background: linear-gradient(
        110deg,
        var(--primary) 40%,
        #A78BFA 48%, 
        #DDD6FE 50%, 
        #A78BFA 52%, 
        var(--primary) 60%
    );
    background-size: 300% auto; 
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineSweep 5s linear infinite;
    margin-bottom: -2px; 
}

.logo-separator {
    width: 3px;
    height: 2rem;
    background-color: var(--primary);
    border-radius: 2px;
    opacity: 0.8;
}

.logo-text-hali {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85; 
}

.logo-subtext {
    font-size: 0.75rem;
    color: #111111;
    font-weight: 600;
    letter-spacing: 0.3px;
    opacity: 0.85;
    white-space: nowrap; 
}

@keyframes pulse-icon {
    0% { transform: scale(1) rotate(0deg); opacity: 0.9; }
    100% { transform: scale(1.15) rotate(15deg); opacity: 1; }
}

footer .logo-text-piril {
    background: linear-gradient(
        110deg,
        var(--primary-light) 40%,
        #E9D5FF 50%, 
        var(--primary-light) 60%
    );
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
footer .logo-text-hali { color: var(--primary-light); }
footer .logo-separator { background-color: var(--primary-light); }
footer .logo-icon-wrapper {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
}
footer .logo-sparkle { color: var(--primary-light); }
footer .logo-subtext { color: #E5E7EB; }

/* Header */
header {
    position: fixed;
    top: var(--top-bar-height); 
    left: 0;
    width: 100%;
    background-color: var(--header-bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    min-width: 0;
    gap: 0.75rem;
}

