/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--atomic-blue), var(--deep-purple));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    margin-right: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon::before {
    content: "Cl";
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    position: absolute;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #000;
}

.logo-text .clever {
    color: var(--atomic-blue);
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--atomic-blue);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--atomic-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.lang-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-flag {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.8;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.lang-text {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.lang-option:hover .lang-flag {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lang-option:hover .lang-text {
    color: var(--atomic-blue);
}

.lang-option.active .lang-flag {
    opacity: 1;
    border-color: var(--atomic-blue);
    box-shadow: 0 0 12px rgba(var(--atomic-blue-rgb), 0.4);
}

.lang-option.active .lang-text {
    color: var(--atomic-blue);
    font-weight: 600;
}

.flag-pl {
    background-image: url('polish_flag.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-en {
    background-image: url('english_flag.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.flag-de {
    background-image: url('german_flag.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--deep-purple);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: auto;
    min-width: 200px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    margin-top: 0.5rem;
    margin-right: 1rem;
}

.nav-mobile.active {
    display: block !important;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile-content {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-mobile-links a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-mobile-links a:hover {
    color: var(--atomic-blue);
    background: rgba(var(--atomic-blue-rgb), 0.1);
    padding-left: 1rem;
}

.nav-mobile-languages {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-main {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-main {
        width: 100%;
        justify-content: space-between;
        order: 2;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-links {
        gap: 1rem;
        flex: 1;
    }
    
    .nav-right {
        justify-content: flex-end;
    }
    
    .language-switcher {
        gap: 0.6rem;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
    }

    .language-switcher {
        display: none !important;
    }
    
    .nav-container {
        flex-wrap: nowrap;
    }
    
    .nav-main {
        width: auto;
        order: initial;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        justify-content: space-between; /* Ensure logo stays left, menu stays right */
    }
    
    .logo {
        order: 1; /* Logo first */
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        width: 50px;
        height: 50px;
    }
    
    .nav-main {
        order: 2; /* Navigation second */
        flex-shrink: 0;
    }
}

/* iPhone 4.7" specific adjustments */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
        margin-right: 8px;
    }
    
    .logo-icon::before {
        font-size: 1rem;
    }
}/*
 Training Not Available Notification */
.training-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    animation: slideDown 0.3s ease-out;
}

.notification-content {
    background: #f59e0b;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 500px;
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    font-weight: 500;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive notification */
@media (max-width: 768px) {
    .training-notification {
        left: 1rem;
        right: 1rem;
        transform: none;
    }
    
    .notification-content {
        min-width: auto;
        max-width: none;
    }
}