/* ==========================================
   SweetAmour Devon Rex - Koty Stylesheet
   ========================================== */

:root {
    --bg-dark: #1a1615;
    --card-bg: rgba(42, 36, 34, 0.75);
    --border: rgba(217, 180, 143, 0.15);
    --text-main: #fdfbf7;
    --text-secondary: #c5b8ad;
    --primary: #d97706;
    --primary-hover: #b45309;
    --accent: #fcd34d;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.glow-bg {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.18) 0%, rgba(26, 22, 21, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- LOGO & NAWIGACJA (WYŚRODKOWANA) --- */
.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-text {
    transform: scale(1.03);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    backdrop-filter: blur(16px);
    background: rgba(26, 22, 21, 0.9);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-links li {
    display: inline-block;
    white-space: nowrap;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}

.nav-links a:hover, 
.nav-links a.active { 
    color: var(--accent); 
}

.menu-toggle,
.hamburger {
    display: none;
    z-index: 2;
}

/* --- NAGŁÓWEK & FILTRY --- */
.page-header {
    text-align: center;
    padding: 5rem 5% 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(252, 211, 77, 0.3);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header h1 span {
    background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.8rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(252, 211, 77, 0.3);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: rgba(252, 211, 77, 0.4);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.4);
}

/* --- KONTENER I SIATKA (3 W RZĘDZIE) --- */
.cats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 4rem;
}

.cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* --- KARTA KOTA --- */
.cat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(252, 211, 77, 0.4);
}

.cat-image {
    position: relative;
    width: 100%;
    height: 240px;
    background: rgba(255, 255, 255, 0.02);
}

.cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- SLIDER ZDJĘĆ W KARCIE --- */
.cat-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 22, 21, 0.7);
    color: var(--accent);
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    z-index: 5;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: rgba(252, 211, 77, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.cat-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 3.5rem;
    background: rgba(217, 119, 6, 0.08);
}

.sex-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    z-index: 6;
}

.sex-badge.male {
    background: rgba(56, 189, 248, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.sex-badge.female {
    background: rgba(236, 72, 153, 0.25);
    border: 1px solid rgba(244, 114, 182, 0.4);
    color: #f472b6;
}

.cat-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
}

.cat-content h3 {
    font-size: 1.4rem;
    color: var(--text-main);
}

.cat-title-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(252, 211, 77, 0.12);
    border: 1px solid rgba(252, 211, 77, 0.3);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
}

.cat-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}

.cat-details li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-details i {
    color: var(--accent);
    width: 16px;
}

.cat-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.no-cats {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 3rem 0;
}

/* ==========================================
   NOWOCZESNA PAGINACJA (NUMERACJA STRON)
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 3.5rem;
    padding: 1rem 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(42, 36, 34, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: none;
}

.page-link:hover {
    background: rgba(217, 119, 6, 0.15);
    color: var(--accent);
    border-color: rgba(252, 211, 77, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}

.page-link.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border-color: rgba(252, 211, 77, 0.6);
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
    pointer-events: none;
    transform: scale(1.05);
}

.page-link i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.page-link:hover i.fa-chevron-left {
    transform: translateX(-2px);
}

.page-link:hover i.fa-chevron-right {
    transform: translateX(2px);
}

/* --- FOOTER --- */
.footer {
    position: relative;
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(26, 22, 21, 0.95), rgba(15, 13, 12, 1));
    padding: 5rem 5% 2rem;
    color: var(--text-secondary);
    overflow: hidden;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 3.5rem;
    max-width: 1200px;
    margin: 0 auto 3.5rem;
    position: relative;
    z-index: 2;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-brand .logo-link {
    margin-bottom: 1.2rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-org {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(252, 211, 77, 0.25);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.footer-org-logos {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 0.8rem;
}

.footer-org-logos img {
    height: 55px;
    width: auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.footer-org-logos img:hover {
    border-color: rgba(252, 211, 77, 0.4);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--accent);
}

.footer-links a:hover {
    color: var(--text-main);
    transform: translateX(6px);
}

.footer-contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-info i {
    color: var(--accent);
    width: 18px;
}

.socials {
    display: flex;
    gap: 0.9rem;
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

.socials a:hover {
    background: var(--primary);
    border-color: rgba(252, 211, 77, 0.4);
    transform: translateY(-4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.footer-crafted .highlight-author {
    color: var(--text-main);
    font-weight: 600;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 950px) {
    .cats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .navbar {
        display: flex;
        justify-content: space-between;
    }

    .hamburger {
        display: block;
        color: var(--text-main);
        font-size: 1.6rem;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger .icon-close { display: none; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 22, 21, 0.98);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1.5rem 5%;
        gap: 1.2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        transform: none;
        margin-left: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 0.4rem 0;
    }

    .menu-toggle:checked ~ .nav-links { display: flex; }
    .menu-toggle:checked ~ .hamburger .icon-open { display: none; }
    .menu-toggle:checked ~ .hamburger .icon-close { display: block; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

@media (max-width: 600px) {
    .cats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 6px;
    }
    .page-link {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        border-radius: 10px;
    }
}