/**
 * FAQ stránka - Styly
 * JERGONLAB 2025
 * Prefix: jrg-faq- pro všechny třídy
 * Konzistentní s hlavním designem
 */

/* ========================================
   Hlavní layout
   ======================================== */
.jrg-faq-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    padding-top: 80px; /* Prostor pro fixed header */
    position: relative;
    overflow: hidden;
}

/* Dekorativní kruhy v pozadí - stejné jako na hlavní stránce */
.jrg-faq-main::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: jrgFaqFloat 25s ease-in-out infinite;
}

.jrg-faq-main::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: jrgFaqFloat 30s ease-in-out infinite reverse;
}

@keyframes jrgFaqFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.jrg-faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
    position: relative;
    z-index: 2;
}

/* ========================================
   Hero sekce
   ======================================== */
.jrg-faq-hero {
    text-align: center;
    margin-bottom: 60px;
    animation: jrgFaqFadeInUp 0.8s ease;
}

.jrg-faq-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: #0A0A0A;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-title .jrg-faq-highlight {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
}

.jrg-faq-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   Kategorie tlačítka
   ======================================== */
.jrg-faq-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
    padding: 20px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 3;
}

.jrg-faq-category-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.jrg-faq-category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.jrg-faq-category-btn:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    color: #0A0A0A;
    transform: translateY(-2px);
}

.jrg-faq-category-btn:hover::before {
    left: 100%;
}

.jrg-faq-category-btn.jrg-faq-active {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-color: #D4AF37;
    color: #0A0A0A;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
    transform: rotate(-0.5deg);
}

.jrg-faq-category-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.jrg-faq-category-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   FAQ obsah
   ======================================== */
.jrg-faq-content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

/* FAQ sekce */
.jrg-faq-section {
    margin-bottom: 60px;
    animation: jrgFaqFadeInUp 0.5s ease;
}

.jrg-faq-section:last-child {
    margin-bottom: 0;
}

.jrg-faq-section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    font-weight: 800;
    color: #0A0A0A;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid #F0F0F0;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #FFD700);
    border-radius: 2px;
}

.jrg-faq-section-title svg {
    stroke: #D4AF37;
    flex-shrink: 0;
}

/* ========================================
   FAQ Items - Accordion
   ======================================== */
.jrg-faq-item {
    margin-bottom: 20px;
    background: #FAFAFA;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.jrg-faq-item:hover {
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.jrg-faq-item.jrg-faq-active {
    background: #FFFFFF;
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Question button */
.jrg-faq-question {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    transition: all 0.3s ease;
}

.jrg-faq-question:hover {
    background: rgba(212, 175, 55, 0.02);
}

.jrg-faq-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    color: #D4AF37;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.jrg-faq-item.jrg-faq-active .jrg-faq-question-number {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-color: #D4AF37;
    color: #0A0A0A;
    transform: scale(1.1);
}

.jrg-faq-question-text {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0A0A0A;
    line-height: 1.4;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-question-arrow {
    flex-shrink: 0;
    stroke: #999;
    transition: transform 0.3s ease;
}

.jrg-faq-item.jrg-faq-active .jrg-faq-question-arrow {
    transform: rotate(180deg);
    stroke: #D4AF37;
}

/* Answer */
.jrg-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jrg-faq-answer-content {
    padding: 0 30px 25px 90px;
}

.jrg-faq-answer p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-answer p:last-child {
    margin-bottom: 0;
}

.jrg-faq-answer strong {
    color: #0A0A0A;
    font-weight: 700;
}

.jrg-faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}

.jrg-faq-answer ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-answer ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-weight: bold;
}

/* ========================================
   Special boxes
   ======================================== */
.jrg-faq-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.jrg-faq-info-box svg {
    flex-shrink: 0;
    stroke: #D4AF37;
    margin-top: 2px;
}

.jrg-faq-info-box p {
    margin: 0;
    font-size: 0.9375rem;
    color: #666;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: linear-gradient(135deg, #FFF5F5, #FFFAFA);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.jrg-faq-warning-box > svg {
    flex-shrink: 0;
    stroke: #D4AF37;
    margin-top: 2px;
}

.jrg-faq-warning-box p {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: #444;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-warning-box ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.jrg-faq-warning-box li {
    padding: 5px 0;
    color: #666;
    font-size: 0.9375rem;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-warning-box li::before {
    content: '→';
    margin-right: 10px;
    color: #D4AF37;
    font-weight: bold;
}

/* ========================================
   Process steps
   ======================================== */
.jrg-faq-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.jrg-faq-process-step {
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #E0E0E0;
}

.jrg-faq-process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.jrg-faq-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0A0A0A;
    margin: 0 auto 15px;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.jrg-faq-step-content p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   CTA sekce
   ======================================== */
.jrg-faq-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(255, 215, 0, 0.03));
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.jrg-faq-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: jrgFaqRotate 20s linear infinite;
    pointer-events: none;
}

@keyframes jrgFaqRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.jrg-faq-cta h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #0A0A0A;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
}

.jrg-faq-cta p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
}

.jrg-faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.jrg-faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.jrg-faq-cta-primary {
    background: linear-gradient(135deg, #D4AF37, #FFD700);
    color: #0A0A0A;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transform: rotate(-0.5deg);
}

.jrg-faq-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.jrg-faq-cta-primary:hover {
    transform: rotate(-0.5deg) translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.jrg-faq-cta-primary:hover::before {
    left: 100%;
}

.jrg-faq-cta-secondary {
    background: #FFFFFF;
    color: #0A0A0A;
    border: 2px solid #D4AF37;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.jrg-faq-cta-secondary:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.1));
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.jrg-faq-cta-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.jrg-faq-cta-btn:hover svg {
    transform: scale(1.1);
}

/* ========================================
   Animace
   ======================================== */
@keyframes jrgFaqFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responzivní design - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .jrg-faq-container {
        padding: 50px 25px;
    }
    
    .jrg-faq-content {
        padding: 40px;
    }
    
    .jrg-faq-categories {
        padding: 15px;
        gap: 12px;
    }
    
    .jrg-faq-category-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .jrg-faq-process-steps {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
}

/* ========================================
   Responzivní design - MOBIL
   ======================================== */
@media (max-width: 768px) {
    .jrg-faq-main {
        padding-top: 70px;
    }
    
    .jrg-faq-container {
        padding: 40px 20px;
    }
    
    .jrg-faq-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .jrg-faq-subtitle {
        font-size: 1.125rem;
    }
    
    .jrg-faq-categories {
        gap: 10px;
        padding: 12px;
    }
    
    .jrg-faq-category-btn {
        padding: 10px 16px;
        font-size: 0.8125rem;
        gap: 8px;
    }
    
    .jrg-faq-category-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .jrg-faq-content {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .jrg-faq-section {
        margin-bottom: 45px;
    }
    
    .jrg-faq-section-title {
        font-size: 1.75rem;
        gap: 12px;
        margin-bottom: 25px;
    }
    
    .jrg-faq-section-title svg {
        width: 28px;
        height: 28px;
    }
    
    .jrg-faq-item {
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .jrg-faq-question {
        padding: 20px;
        gap: 15px;
    }
    
    .jrg-faq-question-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.8125rem;
    }
    
    .jrg-faq-question-text {
        font-size: 1rem;
    }
    
    .jrg-faq-question-arrow {
        width: 20px;
        height: 20px;
    }
    
    .jrg-faq-answer-content {
        padding: 0 20px 20px 20px;
    }
    
    .jrg-faq-answer p {
        font-size: 1rem;
    }
    
    .jrg-faq-answer ul li {
        font-size: 0.9375rem;
        padding-left: 25px;
    }
    
    .jrg-faq-info-box,
    .jrg-faq-warning-box {
        padding: 15px;
        gap: 12px;
    }
    
    .jrg-faq-info-box svg,
    .jrg-faq-warning-box svg {
        width: 20px;
        height: 20px;
    }
    
    .jrg-faq-process-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .jrg-faq-process-step {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        padding: 15px;
    }
    
    .jrg-faq-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin: 0;
    }
    
    .jrg-faq-cta {
        margin-top: 60px;
        padding: 40px 20px;
    }
    
    .jrg-faq-cta h2 {
        font-size: 2rem;
    }
    
    .jrg-faq-cta p {
        font-size: 1.125rem;
    }
    
    .jrg-faq-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jrg-faq-cta-btn {
        padding: 16px 30px;
        font-size: 1rem;
        justify-content: center;
    }
}

/* ========================================
   Responzivní design - MALÝ MOBIL
   ======================================== */
@media (max-width: 480px) {
    .jrg-faq-main {
        padding-top: 65px;
    }
    
    .jrg-faq-container {
        padding: 30px 15px;
    }
    
    .jrg-faq-title {
        font-size: 28px;
    }
    
    .jrg-faq-subtitle {
        font-size: 1rem;
    }
    
    .jrg-faq-categories {
        gap: 8px;
        padding: 10px;
    }
    
    .jrg-faq-category-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .jrg-faq-category-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .jrg-faq-content {
        padding: 25px 15px;
    }
    
    .jrg-faq-section-title {
        font-size: 1.5rem;
    }
    
    .jrg-faq-question {
        padding: 15px;
    }
    
    .jrg-faq-question-text {
        font-size: 0.9375rem;
    }
    
    .jrg-faq-answer p {
        font-size: 0.9375rem;
    }
    
    .jrg-faq-cta h2 {
        font-size: 1.75rem;
    }
    
    .jrg-faq-cta p {
        font-size: 1rem;
    }
    
    .jrg-faq-cta-btn {
        padding: 14px 25px;
        font-size: 0.875rem;
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .jrg-faq-answer {
        transition: none;
    }
}

/* ========================================
   Print styles
   ======================================== */
@media print {
    .jrg-faq-main {
        padding-top: 0;
        background: white;
    }
    
    .jrg-faq-main::before,
    .jrg-faq-main::after {
        display: none;
    }
    
    .header,
    .jrg-faq-categories,
    .jrg-faq-cta {
        display: none;
    }
    
    .jrg-faq-item {
        page-break-inside: avoid;
    }
    
    .jrg-faq-answer {
        max-height: none !important;
    }
    
    .jrg-faq-item.jrg-faq-active {
        border: 1px solid #000;
    }
}

/* ========================================
   Dark mode support
   ======================================== */
@media (prefers-color-scheme: dark) {
    .jrg-faq-main {
        background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
    }
    
    .jrg-faq-content {
        background: #1a1a1a;
        color: #FFFFFF;
    }
    
    .jrg-faq-title,
    .jrg-faq-section-title,
    .jrg-faq-question-text {
        color: #FFFFFF;
    }
    
    .jrg-faq-subtitle,
    .jrg-faq-answer p,
    .jrg-faq-answer ul li {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .jrg-faq-item {
        background: #2a2a2a;
        border-color: rgba(212, 175, 55, 0.1);
    }
    
    .jrg-faq-categories {
        background: #2a2a2a;
    }
    
    .jrg-faq-category-btn {
        border-color: #3a3a3a;
        color: rgba(255, 255, 255, 0.7);
    }
}