/* Typography base */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Hero background - domyślne tło jeśli brak losowego */
.hero-bg {
    background: linear-gradient(135deg, #1e3a5f 0%, #8b1538 100%);
    position: relative;
}

/* Modern Navigation Styles - 2025 Trends */
.modern-nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(139, 21, 56, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(139, 21, 56, 0.15);
}

/* Navigation typography - larger and more readable */
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e3a5f;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: #8B1538;
    background: rgba(139, 21, 56, 0.05);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #8B1538;
    font-weight: 600;
    background: rgba(139, 21, 56, 0.08);
}

/* Modern dropdown styling */
.dropdown-menu {
    background: white;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    margin-top: 0.5rem;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    left: 0;
    z-index: 9999;
}

/* Dropdown align right for items near the end */
.dropdown:nth-last-child(-n+3) .dropdown-menu,
.dropdown-menu.align-right {
    left: auto;
    right: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown section headers */
.dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.dropdown-header:first-child {
    margin-top: 0;
}

/* Dropdown items */
.dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.dropdown-item:hover {
    color: #8B1538;
    background: rgba(139, 21, 56, 0.05);
    transform: translateX(4px);
}

/* BIP Icon Button */
.bip-icon-button {
    position: relative;
    cursor: pointer;
}

.bip-icon-button:hover + .dropdown-menu,
.bip-icon-button + .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* CTA Buttons */
.cta-button {
    background: linear-gradient(135deg, #8B1538 0%, #701a3a 100%);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
    background: linear-gradient(135deg, #701a3a 0%, #8B1538 100%);
}

/* Mobile menu styles */
.mobile-menu {
    background: white;
    border-radius: 1rem;
    margin: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.mobile-nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e3a5f;
    padding: 1rem 1.5rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-link:hover {
    color: #8B1538;
    background: rgba(139, 21, 56, 0.05);
}

.mobile-section-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem 0.5rem;
    background: #f9fafb;
}

/* Hamburger animation */
.hamburger {
    width: 24px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1e3a5f;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.hamburger span:nth-child(1) { top: 6px; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 16px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 11px;
}

/* Panel admin styling */
.admin-panel-item {
    color: #8B1538;
    font-weight: 600;
    background: rgba(139, 21, 56, 0.1);
    border: 1px solid rgba(139, 21, 56, 0.2);
}

.admin-panel-item:hover {
    background: rgba(139, 21, 56, 0.15);
    color: #701a3a;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-btn.active {
    background: white;
    color: #8B1538;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn:hover:not(.active) {
    color: #1e3a5f;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .nav-link {
        font-size: 0.875rem;
        padding: 0.625rem 0.75rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Style dla formatowania TinyMCE */
.tinymce-content p { margin-bottom: 1rem; line-height: 1.6; }
.tinymce-content ul { list-style-type: disc; margin-left: 1.5rem; margin-bottom: 1rem; }
.tinymce-content ol { list-style-type: decimal; margin-left: 1.5rem; margin-bottom: 1rem; }
.tinymce-content li { margin-bottom: 0.5rem; }
.tinymce-content strong { font-weight: 600; }
.tinymce-content em { font-style: italic; }
.tinymce-content h1, .tinymce-content h2, .tinymce-content h3 { 
    font-weight: 600; margin-top: 1.5rem; margin-bottom: 1rem; 
}
.tinymce-content h1 { font-size: 1.5rem; }
.tinymce-content h2 { font-size: 1.3rem; }
.tinymce-content h3 { font-size: 1.1rem; }
.tinymce-content blockquote { 
    border-left: 4px solid #8B1538; 
    padding-left: 1rem; 
    margin: 1rem 0; 
    font-style: italic; 
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.cookie-banner.hidden {
    transform: translateY(100%);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-banner-description {
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.5;
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-banner-link {
    color: #8B1538;
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.cookie-banner-link:hover {
    color: #a01d44;
}

.cookie-banner-button {
    background: #8B1538;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
}

.cookie-banner-button:hover {
    background: #a01d44;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-banner-button {
        width: 100%;
    }
}

