/* Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #222222;  /* Zmienione z #333333 dla lepszego kontrastu */
    --card-bg: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
    --hover-color: #e0e0e0;
    --nav-height: 70px;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --shadow: rgba(255, 255, 255, 0.1);
    --hover-color: #3d3d3d;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    padding-top: var(--nav-height);
    display: flex;
    flex-direction: column;
}

/* Navigation */
.nav-header {
    height: var(--nav-height);
    background: var(--bg-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.2rem;
    gap: 0.5rem;
}

.logo-img {
    height: 2rem;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation Items */
.nav-item {
    position: relative;
    color: var(--text-color);
    text-decoration: dotted; /* Dodane podkreślenie dla lepszej dostępności */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-item:hover {
    background-color: var(--hover-color);
}

/* Dropdown Menu */
.dropdown-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.dropdown-btn:hover {
    background-color: var(--hover-color);
}

.arrow {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 220px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.versions-list {
    margin-top: 0.5rem;
}

.versions-list a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: dotted; /* Dodane podkreślenie */
    color: var(--text-color);
    border-radius: 4px;
    transition: background-color 0.2s;
}

.versions-list a:hover {
    background-color: var(--hover-color);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background-color: var(--hover-color);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Container and Cards */
.container {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
    height: 345px;
    width: 345px; /* Dodana wysokość */
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
    opacity: 0.9; /* Zwiększone z 0.8 dla lepszego kontrastu */
}

.card-logo {
    width: 50px;
    height: 50px;
    margin: 1rem auto;
    border-radius: 10px;
    overflow: hidden;
}

.card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.card:hover .card-logo img {
    transform: scale(1.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #0056b3; /* Zmienione z #007bff dla lepszego kontrastu */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #003d82; /* Ciemniejszy odcień dla hover */
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    margin-top: auto;
}

.footer a {
    color: var(--text-color);
    text-decoration: underline; /* Dodane podkreślenie */
}

.footer a:hover {
    text-decoration: underline;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.breadcrumbs {
    padding: 0.75rem 2rem;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--shadow);
    margin-top: auto; /* Dopasuj do wysokości twojego nagłówka */
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #0056b3; /* Lub inny kolor akcentu używany na stronie */
}

/* Separator między elementami */
.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: var(--text-color);
    opacity: 0.4;
}

/* Ostatni element (aktualna strona) */
.breadcrumbs li:last-child {
    color: var(--text-color);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-header {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 4px var(--shadow);
        gap: 1rem;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav > a {
        padding-left: 30px;
    }

    .nav-item {
        width: 100%;
        text-align: left;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        margin: 0.5rem 0;
        width: 100%;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .card {
        min-height: 150px;
        padding: 1.5rem;
    }
}