/* Reset podstawowy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top navigation */
.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    height: 60px;
    border-bottom: 1px solid #e5e7eb;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 24px;
    font-weight: bold;
    color: #3b82f6;
}

.fun-text {
    color: #06b6d4;
}

.navbar-nav-top {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #1f2937;
    font-weight: 400;
    font-size: 15px;
    padding: 10px 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.nav-link:hover {
    color: #3b82f6;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #3b82f6;
}

.notification-link {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.notification-icon {
    width: 20px;
    height: 20px;
    color: #6b7280;
    stroke: currentColor;
    flex-shrink: 0;
    display: block;
}

.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    min-width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    padding: 0 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid white;
}

.login-btn {
    background: #3b82f6;
    color: white !important;
    font-weight: 500;
    border-radius: 6px;
    padding: 10px 20px !important;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-btn:hover {
    background: #2563eb !important;
}

.user-account-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    font-weight: 400;
}

.user-icon {
    width: 18px;
    height: 18px;
    color: #1f2937;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Secondary navigation */
.navbar-secondary {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.nav-categories {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.category-link {
    color: #1f2937;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 14px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.category-link:hover {
    color: #3b82f6;
}

/* Główna zawartość */
.main-content {
    flex: 1;
    padding: 40px 0;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f9ff;
    position: relative;
    min-height: calc(100vh - 120px);
}

.main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-300px, -300px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer - zgodny z projektem */
.footer {
    background: #ffffff;
    color: #1f2937;
    padding: 16px 0;
    margin-top: auto;
    position: relative;
    z-index: 100;
    border-top: 1px solid #e5e7eb;
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-left {
    flex-shrink: 0;
}

.footer-credits {
    color: #9ca3af;
    font-size: 14px;
}

.footer-link-highlight {
    color: #ef4444;
    text-decoration: none;
    font-weight: 500;
}

.footer-link-highlight:hover {
    text-decoration: underline;
}

.footer-center {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contact-label {
    color: #1f2937;
    background: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: #00a8e8;
}

.footer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.youtube {
    background: #ff0000;
}

.social-icon:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.footer-right {
    flex-shrink: 0;
}

.footer-back-to-top {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00a8e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-back-to-top:hover {
    color: #0077b6;
}

.footer-arrow-icon {
    width: 16px;
    height: 16px;
}

/* Responsywność */
@media (max-width: 768px) {
    .navbar-top {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .navbar-nav-top {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-categories {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .category-link {
        padding: 8px 0;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f3f4f6;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 4px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown .nav-link {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar-top {
        padding: 15px;
    }

    .navbar-nav-top {
        gap: 10px;
    }

    .nav-link {
        font-size: 13px;
    }
}