:root {
    --primary-color: #121fdf;
    --secondary-color: #fff;
    --free-color: #008000;
    --text-dark: #364264;
    --text-light: #fff;
    --gray-text: #6f7e88;
    --bg-color: #0e2332;
    --menu-bg: #0f2738;
    --text-main: #ffffff;
    --text-dim: #8895ae;
    --accent-blue: #5c7cfa;
    --hover-bg: #15354d;
    --border-radius: 6px;
}

/* Base Styles */
html {
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: var(--gray-text);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 500;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Hero Section and Header */
.main-header {
    background: linear-gradient(135deg, #0c32ff 0%, #ee3e62 100%);
    color: var(--text-light);
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo-nav {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 50px;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.top-nav ul {
    display: flex;
}

.top-nav li {
    margin-right: 25px;
}

.top-nav a {
    color: var(--secondary-color);
    opacity: 1;
    transition: opacity 0.3s;
    font-weight: 500;
}

.top-nav a:hover {
    opacity: 0.8;
}

.user-actions {
    display: flex;
    align-items: center;
}

.user-actions a {
    color: var(--secondary-color);
    margin-left: 20px;
    opacity: 1;
}

.user-actions a:hover {
    opacity: 0.8;
}

.btn-signup, .btn-login {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-signup {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
}

.btn-login {
    background-color: transparent;
    border: none;
}

.hero-content {
    text-align: center;
    margin-top: 50px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-form {
    display: flex;       /* Układa elementy w jednej linii */
    width: 100%;         /* Formularz zajmuje całą szerokość .search-box */
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-box input {
    flex-grow: 1;
    padding: 20px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--gray-text);
    border-radius: 8px 0 0 8px;
}

.search-button {
    background-color: transparent;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 20px;
    border-radius: 0 8px 8px 0;
}

/* Search Header - Full Width */
.search-header {
    background: linear-gradient(135deg, #0c32ff 0%, #ee3e62 100%);
    color: var(--text-light);
    padding: 0 20px 30px;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.search-header .header-container {
    max-width: 100%;
    width: 100%;
    padding: 20px 0;
}

.search-box-full {
    display: flex;
    width: 100%;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
    overflow: hidden;
}

.search-box-full input {
    flex-grow: 1;
    padding: 20px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--gray-text);
    border-radius: 8px 0 0 8px;
}

.search-box-full .search-button {
    background-color: transparent;
    border: none;
    padding: 0 30px;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 20px;
    border-radius: 0 8px 8px 0;
}

.search-results-summary {
    width: 100%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.search-results-summary h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.pagination {
    display: flex;
    align-items: center;
}

.pagination-arrow {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: var(--gray-text);
    margin: 0 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-arrow:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.page-info {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 5px;
}

.total-pages {
    font-size: 14px;
    color: var(--gray-text);
    margin-left: 5px;
}

.page-info-input {
    width: 40px;
    height: 30px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 5px;
    -moz-appearance: textfield;
}

.page-info-input::-webkit-outer-spin-button,
.page-info-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Main Content Sections */
main {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
}

.bottom-pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-type-section, .image-grid-section {
    margin-bottom: 60px;
}

h2 {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

/* Content Type Grid */
.content-type-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.content-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
}

.content-item-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.content-item:hover .content-item-image {
    transform: translateY(-5px);
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.image-card {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s;
}

.image-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.image-card img {
    width: 100%;
    display: block;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--free-color);
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    opacity: 0.8;
}

.badge-big {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--free-color);
    color: white;
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    opacity: 0.8;
}

/* Footer */
.main-footer {
    background-color: #0e2332;
    color: #869198;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-columns-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #869198;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    max-width: 1300px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid #ffffff14;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo-social {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.logo-footer {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-right: 20px;
}

.logo-footer img {
    height: 30px;
    width: auto;
    display: block;
}

.social-icons a {
    color: #869198;
    font-size: 18px;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.copyright {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.copyright p {
    margin-right: 20px;
}

/* Burger Menu */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-burger span {
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-burger.active span:nth-child(2) {
    opacity: 0;
}

.nav-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
.mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #212529;
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 80px;
    box-shadow: none;
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

.mobile-nav.active {
    right: 0;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    border-bottom: 1px solid #333;
}

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #a0a0a0;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.mobile-nav a:hover {
    background-color: #333;
    color: var(--secondary-color);
}

/* Vector Image Page Styles */
.nav-container {
    max-width: 1300px;
    padding-bottom: 10px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.nav-container a {
    color: var(--text-dark);
}

.nav-container span {
    color: var(--text-dark);
    font-weight: bold;
}

.container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    gap: 30px;
}

/* LEWA STRONA - OBRAZ */
.content {
    flex: 2;
}

.image-wrapper {
    position: relative;
    background-color: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    max-height: 840px;
    display: block;
}

.image-caption {
    margin-top: 8px;
    margin-bottom: 5px;
    text-align: center;
    color: var(--gray-text);
    font-size: 14px;
}

/* PRAWA STRONA - SIDEBAR */
.sidebar {
    flex: 1;
    min-width: 300px;
}

.title-section h1 {
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* PRZYCISK POBIERANIA */
.download-section {
    margin: 15px 0;
    text-align: center;
}

/* Menu rozwijane */
.dropdown-menu {
    display: block; /* Ukryte domyślnie */
    width: 100%;
    background-color: var(--menu-bg);
    border-radius: var(--border-radius);
    padding: 15px 0;
}

.menu-header {
    padding: 0 20px;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 1px;
    font-weight: bold;
    text-align: left;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:hover {
    background-color: var(--hover-bg);
}

.label {
    font-weight: bold;
    color: var(--text-main);
}

.size {
    color: var(--text-dim);
    font-size: 14px;
}

.menu-divider {
    height: 1px;
    background-color: #344653;
    margin: 10px 15px;
}

/* Przycisk ZIP na dole */
.zip-btn {
    margin: 5px 15px;
    background: none;
    border: 1px solid #344653;
    color: var(--text-main);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

.zip-btn:hover {
    background-color: var(--hover-bg);
}

/* AKCJE I LICENCJA */
.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.action-item {
    background: #f1f3f5;
    color: var(--text-dark);
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.action-item:hover {
    background: #e9ecef;
}

.license-info {
    list-style: none;
    font-size: 14px;
}

.license-info li {
    margin-bottom: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-info a {
    color: var(--text-dark);
}

/* SŁOWA KLUCZOWE */
.tags-section {
    max-width: 1300px;
    margin: 20px auto;
}

.tags-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list span {
    background: #f1f3f5;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
}

.tags-list span:hover {
    background: #e9ecef;
}

.tag-link {
    text-decoration: none;
    padding-bottom: 11px;
}

.ad-placeholder {
    background-color: #f7f7f7;
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--gray-text);
    border: 1px solid #e3ebf2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-burger {
        display: flex;
    }

    .top-nav,
    .user-actions {
        display: none;
    }

    .logo-nav {
        flex: 1;
    }

    .logo {
        margin-right: 0;
    }

    .header-container {
        position: relative;
    }

    .hero-content {
        margin-top: 30px;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .search-box {
        max-width: 100%;
        margin: 0;
    }

    .search-box input {
        padding: 15px 15px;
        font-size: 14px;
    }

    .search-header {
        padding: 0 15px 25px;
    }

    .search-header .header-container {
        padding: 15px 0;
    }

    .search-box-full {
        margin-top: 15px;
    }

    .search-box-full input {
        padding: 15px 15px;
        font-size: 14px;
    }

    .search-box-full .search-button {
        padding: 0 20px;
        font-size: 18px;
    }

    .search-box-full .search-button {
        padding: 0 20px;
        font-size: 18px;
    }

    .search-results-summary {
        padding: 0;
        margin-top: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .search-results-summary h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .pagination {
        margin-top: 10px;
    }

    .pagination {
        margin-top: 10px;
    }

    .page-info-input {
        width: 35px;
        height: 28px;
        font-size: 14px;
    }


    main {
        padding: 20px 15px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .content-type-grid {
        justify-content: center;
        gap: 15px;
    }

    .content-item {
        margin: 5px;
    }

    .content-item-image {
        width: 120px;
        height: 120px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .footer-columns-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-logo-social {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .logo-footer {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .search-box input {
        padding: 12px 12px;
        font-size: 14px;
    }

    .search-header {
        padding: 0 12px 20px;
    }

    .search-header .header-container {
        padding: 12px 0;
    }

    .search-box-full {
        margin-top: 12px;
    }

    .search-box-full input {
        padding: 12px 12px;
        font-size: 14px;
    }

    .search-box-full .search-button {
        padding: 0 15px;
        font-size: 16px;
    }

    .search-results-summary {
        padding: 0;
        margin-top: 0;
    }

    .search-results-summary h1 {
        font-size: 18px;
    }

    .pagination {
        margin-top: 8px;
    }

    .page-info-input {
        width: 30px;
        height: 25px;
        font-size: 12px;
    }


    .content-item-image {
        width: 100px;
        height: 100px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .mobile-nav {
        width: 100%;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Overlay for mobile menu */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mobile-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }

    .content {
        flex: none;
        width: 100%;
    }

    .sidebar {
        flex: none;
        width: 100%;
        min-width: auto;
    }
    
    .action-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    .badge-big {
        font-size: 16px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Report form styles */
.report-centered {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(16,24,40,0.08);
}

.report-centered .image-wrapper {
    display: flex;
    justify-content: center;
}

.report-centered .image-wrapper img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.06);
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-form .form-row label {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.report-form input[type="text"],
.report-form input[type="email"],
.report-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    box-sizing: border-box;
}

.report-form textarea { resize: vertical; min-height: 120px; }

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn.btn-primary { background: var(--primary-color); color: #fff; }
.btn.btn-link { background: transparent; color: var(--gray-text); text-decoration: underline; }

.messages { margin-bottom: 8px; }
.messages .message { padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.messages .message.success { background: #e6ffef; color: #0a6b2f; border: 1px solid #c7f0d0; }

@media (min-width: 900px) {
    .report-centered .image-wrapper { flex: 0 0 500px; }
    .report-centered .report-form { flex: 1; }
}