/* fajtaismerteto.php oldal stílusai — 2026.10.10-ig a fajtaismerteto.php végén volt <style>-ként; a <head>-ben töltődik ($oldalCss), hogy az első kirajzolásnál már érvényes legyen (CLS) */
/* Fajtaismertető oldal stílusok */
.fajta-hero {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.fajta-hero .section-title,
.fajta-hero .section-subtitle {
    color: white;
}

/* FCI info */
.fci-info {
    background: #FAF5FF;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    text-align: left;
}

.fci-info h3 {
    color: #5A1F6A;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.fci-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fci-info li {
    padding: 0.3rem 0;
    color: #2D2235;
}

.fci-info li i {
    color: #7B2D8E;
    margin-right: 0.5rem;
}

.fajta-section {
    padding: 3rem 0;
}

.fajta-section-alt {
    background-color: #FAF5FF;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Fajta kártya */
.fajta-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.fajta-card-icon {
    font-size: 3rem;
    color: #7B2D8E;
    margin-bottom: 1.5rem;
}

.fajta-card-icon img {
    max-height: 200px;
    width: auto;
}

.fajta-card h2 {
    color: #2D2235;
    margin-bottom: 1rem;
}

.fajta-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.fajta-card.with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    text-align: left;
    align-items: center;
}

.fajta-card.with-image.reverse {
    direction: rtl;
}

.fajta-card.with-image.reverse > * {
    direction: ltr;
}

.fajta-card-content h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fajta-card-content h2 i {
    color: #7B2D8E;
}

.fajta-card-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* FCI info */
.fci-info {
    background: #FAF5FF;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    text-align: left;
}

.fci-info h3 {
    color: #5A1F6A;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.fci-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fci-info li {
    padding: 0.3rem 0;
    color: #2D2235;
}

.fci-info li i {
    color: #7B2D8E;
    margin-right: 0.5rem;
}

/* 2x2 Szerepek grid */
.role-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.role-item {
    border-radius: 15px;
    overflow: hidden;
}

.role-image {
    height: 100%;
}

.role-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.role-text {
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.role-text h2 {
    color: #5A1F6A;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.role-text p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .role-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .role-grid-2x2 .role-item:nth-child(1) { order: 1; }
    .role-grid-2x2 .role-item:nth-child(2) { order: 2; }
    .role-grid-2x2 .role-item:nth-child(3) { order: 4; }
    .role-grid-2x2 .role-item:nth-child(4) { order: 3; }
}

/* Testvérfajták */
.breeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.breeds-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .breeds-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

.breed-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.breed-card:hover {
    transform: translateY(-5px);
}

.breed-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.breed-card h3 {
    padding: 1rem;
    text-align: center;
    color: #2D2235;
    margin: 0;
}

/* Feature box */
.feature-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.feature-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.feature-content blockquote {
    background: linear-gradient(135deg, #7B2D8E 0%, #5A1F6A 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    font-style: italic;
    position: relative;
}

.feature-content blockquote i {
    font-size: 1.5rem;
    opacity: 0.5;
    margin-right: 0.5rem;
}

.feature-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.feature-images-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
}

.feature-images-2x2.centered {
    max-width: 700px;
    margin: 0 auto;
    gap: 1rem;
}

.feature-images-2x2 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-images-2x2.centered img {
    height: 300px;
    border-radius: 10px;
}

.centered-quote {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    font-style: italic;
    font-size: 1.1rem;
    color: #5A1F6A;
    background: linear-gradient(135deg, #7B2D8E 0%, #5A1F6A 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 10px;
}

.centered-quote i {
    opacity: 0.6;
    margin: 0 0.3rem;
}

/* Family layout - kétoszlopos elrendezés */
.family-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    align-items: start;
    overflow: hidden;
}

.family-text-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 350px;
    margin-left: auto;
}

.family-text-item {
    padding: 1.5rem;
    text-align: center;
}

.family-text-item h3 {
    color: #5A1F6A;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.family-text-item p {
    color: #666;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

.family-image-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.family-image-column img {
    width: 70%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.family-full-width {
    margin-top: 0;
    text-align: center;
    padding: 1.5rem;
}

.family-full-width h3 {
    color: #5A1F6A;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.family-full-width p {
    color: #666;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
}

@media (max-width: 768px) {
    .family-layout {
        grid-template-columns: 1fr;
    }

    .family-image-column {
        order: -1;
    }
}

/* Temp grid */
.temp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.temp-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.temp-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-top: auto;
}

.temp-card .temp-icon,
.temp-card h3,
.temp-card p {
    padding: 0 2rem;
}

.temp-card p {
    padding-bottom: 2rem;
}

.temp-card.cold {
}

.temp-card.hot {
}

/* Kutyaovi képek */
.kutyaovi-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.kutyaovi-images img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.kutyaovi-images img:first-child {
    height: auto;
    max-height: none;
}

.temp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.temp-card.cold .temp-icon {
    color: #3498db;
}

.temp-card.hot .temp-icon {
    color: #e74c3c;
}

.temp-card h3 {
    color: #2D2235;
    margin-bottom: 1rem;
}

.temp-card p {
    color: #666;
    line-height: 1.6;
}

/* Warning box */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.warning-box i {
    color: #856404;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

.warning-box p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

/* Bernis quote */
.bernis-quote {
    background: #FAF5FF;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #7B2D8E;
    margin-top: 1.5rem;
    font-style: italic;
    color: #5A1F6A;
}

.bernis-quote i {
    color: #7B2D8E;
    margin-right: 0.5rem;
}

.bernis-quote span {
    display: block;
    margin-top: 0.5rem;
    font-weight: 600;
    font-style: normal;
}

/* Gender grid */
.gender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gender-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.gender-card.female {
    border-top: 4px solid #e91e8c;
}

.gender-card.male {
    border-top: 4px solid #3498db;
}

.gender-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gender-card.female .gender-icon {
    color: #e91e8c;
}

.gender-card.male .gender-icon {
    color: #3498db;
}

.gender-card h3 {
    color: #2D2235;
    margin-bottom: 1rem;
}

.gender-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gender-card li {
    padding: 0.5rem 0;
    color: #666;
    padding-left: 1.5rem;
    position: relative;
}

.gender-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #7B2D8E;
}

.gender-card p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.gender-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.gender-card.female .gender-card-img {
    height: 550px;
}

/* Fur grid */
.fur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.fur-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.fur-icon {
    font-size: 2.5rem;
    color: #7B2D8E;
    margin-bottom: 1rem;
}

.fur-card h3 {
    color: #2D2235;
    margin-bottom: 0.5rem;
}

.fur-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Fur mosaic layout */
.fur-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.fur-mosaic-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.fur-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    height: 100%;
}

.fur-mini-cell {
    border-radius: 10px;
    overflow: hidden;
}

.fur-mini-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fur-text-cell {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.fur-text-cell h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: white;
}

.fur-text-cell p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .fur-mosaic {
        grid-template-columns: 1fr;
    }

    .fur-mini-grid {
        min-height: 300px;
    }
}

/* Info checkerboard */
.info-checkerboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.checker-cell {
    border-radius: 15px;
    overflow: hidden;
    min-height: 320px;
}

.checker-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checker-text {
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.checker-text h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: white;
}

.checker-text p {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
}

.checker-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .info-checkerboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .info-checkerboard {
        grid-template-columns: 1fr;
    }

    .checker-cell {
        min-height: 250px;
    }
}

/* Size grid */
.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.size-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.size-icon {
    font-size: 2.5rem;
    color: #7B2D8E;
    margin-bottom: 1rem;
}

.size-card h3 {
    color: #2D2235;
    margin-bottom: 1.5rem;
}

.size-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.size-stat {
    text-align: center;
}

.size-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7B2D8E;
}

.size-label {
    font-size: 0.9rem;
    color: #666;
}

/* Info box */
.info-box {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.info-box i {
    color: #155724;
    font-size: 1.5rem;
}

.info-box p {
    color: #155724;
    margin: 0;
}

/* Home grid */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.home-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.home-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.home-card h3 {
    padding: 1rem 1.5rem 0.5rem;
    color: #2D2235;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-card h3 i {
    color: #7B2D8E;
}

.home-card p {
    padding: 0 1.5rem 1.5rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .fajta-hero {
        padding: 2rem 0;
    }

    .fajta-card.with-image {
        grid-template-columns: 1fr;
    }

    .fajta-card.with-image.reverse {
        direction: ltr;
    }

    .feature-box {
        grid-template-columns: 1fr;
    }

    .feature-images {
        grid-template-columns: 1fr;
    }

    .size-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Scroll to top gomb */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #5A1F6A 0%, #7B2D8E 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(123, 45, 142, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #7B2D8E 0%, #5A1F6A 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 45, 142, 0.5);
}

/* Lightbox */
.fajta-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.fajta-lightbox.active {
    display: flex;
}

.fajta-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    line-height: 1;
}

.fajta-lightbox .lightbox-close:hover {
    color: #7B2D8E;
}

.fajta-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(123, 45, 142, 0.8);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10001;
}

.fajta-lightbox .lightbox-nav:hover {
    background: rgba(123, 45, 142, 1);
}

.fajta-lightbox .lightbox-prev {
    left: 20px;
}

.fajta-lightbox .lightbox-next {
    right: 20px;
}

.fajta-lightbox .lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 160px);
    max-height: calc(100% - 80px);
}

.fajta-lightbox .lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 8px;
}

.fajta-lightbox .lightbox-counter {
    color: white;
    margin-top: 15px;
    font-size: 1rem;
    opacity: 0.8;
}

/* Kattintható képek */
.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .fajta-lightbox .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .fajta-lightbox .lightbox-prev {
        left: 10px;
    }

    .fajta-lightbox .lightbox-next {
        right: 10px;
    }

    .fajta-lightbox .lightbox-content {
        max-width: calc(100% - 100px);
    }

    .fajta-lightbox .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .fajta-lightbox .lightbox-content {
        max-width: calc(100% - 80px);
    }
}

/* CTA szekció fehér szöveg */
.cta-section h2,
.cta-section p {
    color: white;
}

.cta-section p {
    margin-bottom: 1.5rem;
}
