/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    min-height: 70px;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 12px;
    border-radius: 8px;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.nav-admin {
    background-color: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.nav-admin:hover {
    background-color: rgba(231, 76, 60, 0.3);
}

.nav-cart {
    position: relative;
}

.cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    margin-left: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #333;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    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-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 20px;
    display: block;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    transform: none;
}

.logout-link:hover {
    background-color: #ffe6e6 !important;
    color: #e74c3c !important;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 300;
}

.page-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 30px;
}

.header-quick-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.highlight-item {
    text-align: center;
}

.highlight-price {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #ffd700;
}

.highlight-badge {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #ff6b6b;
}

.highlight-text {
    display: block;
    font-size: 1.1em;
    opacity: 0.9;
}

.hero-cta-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.hero-cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.contact-info {
    margin-top: 40px;
}

.phone-button {
    display: inline-block;
    background-color: #27ae60;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.phone-button:hover {
    background-color: #229954;
    transform: translateY(-2px);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: white;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.video-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #2c3e50;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.banner-video {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

/* Migration Section */
.migration-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.migration-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.migration-content h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #2c3e50;
}

.migration-offer {
    margin-bottom: 40px;
}

.offer-badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
}

.trust-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffd700;
}

.stat-label {
    display: block;
    font-size: 1.1em;
    opacity: 0.9;
}

/* Podstawowe style dla modali */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.3s ease;
}

/* Modal header z gradientem */
.modal-content h2 {
    margin: 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    text-align: center;
    border-radius: 12px 12px 0 0;
    font-size: 1.5em;
    font-weight: 600;
}

/* Container dla formularza */
.modal-content form {
    padding: 30px;
}

.close {
    color: rgba(255, 255, 255, 0.8);
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Style formularzy */
.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.modal-content input:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
    transform: translateY(-1px);
}

.modal-content button[type="submit"] {
    width: 100%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.modal-content button[type="submit"]:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 15px;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Style dla logowania społecznościowego */
.social-login {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.social-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.google-btn {
    background-color: #db4437;
    color: white;
    margin-bottom: 30px;
    width: 90%;
}

.google-btn:hover {
    background-color: #c23321;
}

.facebook-btn {
    background-color: #4267B2;
    color: white;
}

.facebook-btn:hover {
    background-color: #365899;
}

/* Animacje dla modali */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsywność dla modali */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
    }

    .modal-content h2 {
        padding: 20px 25px;
        font-size: 1.3em;
    }

    .modal-content form {
        padding: 25px 20px;
    }

    .close {
        right: 15px;
        top: 15px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 10px auto;
    }

    .modal-content h2 {
        padding: 15px 20px;
        font-size: 1.2em;
    }

    .modal-content form {
        padding: 20px 15px;
    }

    .modal-content input[type="email"],
    .modal-content input[type="password"],
    .modal-content input[type="text"] {
        padding: 10px 12px;
        font-size: 16px;
        /* Zapobiega zoomowaniu na iOS */
    }
}

/* Style dla specjalnych pól w rejestracji */
#registerModal .modal-content {
    max-width: 600px;
}

#registerModal .modal-content form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

#registerModal .modal-content label:first-of-type,
#registerModal .modal-content input[name="email"] {
    grid-column: 1 / -1;
}

#registerModal .modal-content label:nth-of-type(2),
#registerModal .modal-content input[name="haslo"] {
    grid-column: 1 / -1;
}

#registerModal .modal-content button[type="submit"] {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    #registerModal .modal-content form {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #registerModal .modal-content label,
    #registerModal .modal-content input {
        grid-column: 1 / -1;
    }
}

/* Footer styles (basic) */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    text-align: center;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {

    /* Show hamburger on mobile */
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1002;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(52, 73, 94, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    /* Show nav links when active */
    .nav-links.active {
        transform: translateX(0);
    }

    /* Style nav links for mobile */
    .nav-links li {
        width: 90%;
        text-align: center;
    }

    .nav-links a {
        width: 100%;
        padding: 15px 20px;
        font-size: 1.1em;
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
        display: block;
        text-align: center;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        transform: none;
    }

    /* Dropdown active state for mobile */
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    /* Dropdown styles for mobile */
    .dropdown-menu {
        position: static !important;
        display: none;
        background-color: rgba(0, 0, 0, 0.4);
        width: 100%;
        margin-top: 10px;
        border-radius: 8px;
        padding: 10px 0;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .dropdown-menu.mobile-open {
        display: block !important;
        animation: slideDown 0.3s ease;
    }

    .dropdown-menu li {
        width: 100%;
    }

    .dropdown-menu a {
        padding: 12px 20px;
        font-size: 1em;
        background-color: transparent;
        border: none;
        margin-bottom: 5px;
        color: white !important;
        /* Biały tekst na ciemnym tle mobile */
        border-radius: 6px;
        transition: background-color 0.3s ease;
    }

    .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.15);
        color: white !important;
    }

    /* Specjalny styl dla linku wyloguj */
    .dropdown-menu .logout-link {
        color: #ff6b6b !important;
    }

    .dropdown-menu .logout-link:hover {
        background-color: rgba(255, 107, 107, 0.1) !important;
        color: #ff6b6b !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Cart counter positioning for mobile */
    .cart-counter {
        top: -5px;
        right: 10px;
        font-size: 0.8em;
        min-width: 18px;
        height: 18px;
        line-height: 18px;
    }

    /* Logo adjustments for mobile */
    .logo-img {
        width: 35px;
        height: 35px;
    }

    .logo-text {
        font-size: 1.3em;
    }

    /* Page header adjustments for mobile */
    .page-title {
        font-size: 1.8em;
    }

    .page-subtitle {
        font-size: 1em;
    }

    .header-quick-links {
        flex-direction: column;
        gap: 15px;
    }

    .quick-link {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    /* Nav container adjustments */
    .nav-container {
        padding: 0 15px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
        padding-top: 30px;
    }

    .nav-links a {
        padding: 12px 15px;
        font-size: 1em;
    }

    .site-header {
        padding: 10px 0;
    }

    .navbar {
        height: 60px;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 1.2em;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        margin: 2px 0;
    }

    .page-title {
        font-size: 1.5em;
    }

    .page-subtitle {
        font-size: 0.9em;
    }
}

/* Hamburger animation states */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Contact form animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.form-message {
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}