/* Style dla podstrony migracji */

/* Migration stats */
.migration-stats {
    margin-bottom: var(--spacing-lg);
}

.migration-stats .trust-badges {
    justify-content: flex-start;
    margin-bottom: var(--spacing-md);
}

.migration-stats .trust-badges span {
    font-size: 1.1rem;
    margin-right: var(--spacing-md);
}

.migration-stats strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Popular hosts selection */
.popular-hosts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.popular-host-card {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    cursor: pointer;
    min-width: 180px;
}

.popular-host-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: var(--primary-light);
    color: white;
}

.popular-host-card.selected {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background-color: var(--primary-color);
    color: white;
    border: 2px solid white;
}

.host-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.host-info {
    display: flex;
    flex-direction: column;
}

.host-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.host-time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.popular-host-card:hover .host-name,
.popular-host-card:hover .host-time,
.popular-host-card.selected .host-name,
.popular-host-card.selected .host-time {
    color: white;
}

.separator-text {
    position: relative;
    text-align: center;
    margin: var(--spacing-md) 0;
}

.separator-text:before,
.separator-text:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: var(--border-color);
}

.separator-text:before {
    left: 0;
}

.separator-text:after {
    right: 0;
}

.separator-text span {
    display: inline-block;
    padding: 0 var(--spacing-sm);
    background-color: var(--background-alt);
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Dark mode styles for popular hosts */
body.dark-mode .popular-host-card {
    background-color: var(--dark-card);
}

body.dark-mode .host-name {
    color: var(--dark-text);
}

body.dark-mode .host-time {
    color: var(--dark-text-light);
}

body.dark-mode .separator-text span {
    background-color: var(--dark-background);
    color: var(--dark-text-light);
}

body.dark-mode .separator-text:before,
body.dark-mode .separator-text:after {
    background-color: var(--dark-border);
}

body.dark-mode .popular-host-card:hover {
    background-color: var(--primary-dark);
}

body.dark-mode .popular-host-card.selected {
    background-color: var(--primary-color);
    border: 2px solid var(--dark-text);
}

body.dark-mode .popular-host-card:hover .host-name,
body.dark-mode .popular-host-card:hover .host-time,
body.dark-mode .popular-host-card.selected .host-name,
body.dark-mode .popular-host-card.selected .host-time {
    color: white;
}

/* Dark mode styles for autocomplete */
body.dark-mode .autocomplete-dropdown {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
}

body.dark-mode .autocomplete-item:hover,
body.dark-mode .autocomplete-item.selected {
    background-color: var(--dark-background-alt);
}

body.dark-mode .autocomplete-item-name {
    color: var(--dark-text);
}

body.dark-mode .migration-time-result {
    background-color: var(--dark-background-alt);
}

body.dark-mode .result-label {
    color: var(--dark-text-light);
}

body.dark-mode .result-not-found {
    color: var(--dark-text-light);
}
/* Hero section */
.hero-simple {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* Style dla formularza migracji */
.migration-checker {
    margin-top: var(--spacing-xl);
}

.migration-checker h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--text-color);
}

.migration-form {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 10;
}

/* Autocomplete styles */
.autocomplete-container {
    position: relative;
    width: 100%;
    z-index: 100;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: var(--background-color);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-color);
}

.autocomplete-dropdown.show {
    display: block !important;
}

.autocomplete-item {
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: var(--background-alt);
}

.autocomplete-item-name {
    font-weight: 500;
}

.autocomplete-item-time {
    color: var(--primary-color);
    font-weight: 600;
}

.result-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.migration-time-result {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    background-color: var(--background-alt);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.result-time {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.result-not-found {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.migration-form .form-group {
    flex: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.brand-color {
    color: #ff6600;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

.stats-simple {
    margin-bottom: 30px;
}

.stats-simple .stat-item {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0056b3;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-secondary {
    background-color: #ff6600;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #e55c00;
}

.trust-badges-simple {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #555;
}

.badge-item i {
    color: #0056b3;
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Explanation section */
.explanation-section {
    padding: 80px 0;
    background-color: white;
}

.section-header {
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.text-center {
    text-align: center;
}

.section-subheader {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.content-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.explanation-text {
    flex: 1;
}

.explanation-text p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #444;
}

.feature-list li i {
    color: #28a745;
    margin-top: 4px;
}

.process-image {
    flex: 1;
    text-align: center;
}

.process-image img {
    max-width: 100%;
    height: auto;
}

.image-label {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

/* Benefits section */
.benefits-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-alt);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.benefit-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background-color: var(--background-color);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 179, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.benefit-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Steps section */
.migration-steps {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-color);
}

/* Process diagram */
.process-diagram {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.process-line {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    z-index: 1;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--background-alt);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    transition: all var(--transition-normal);
}

.step-item.active .step-circle,
.step-item:hover .step-circle {
    background-color: var(--primary-color);
    border-color: var(--primary-light);
    box-shadow: 0 0 15px rgba(0, 86, 179, 0.3);
}

.step-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    transition: color var(--transition-normal);
}

.step-item.active .step-number,
.step-item:hover .step-number {
    color: white;
}

.step-content {
    background-color: var(--background-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step-item:hover .step-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Migration Time Checker */
.migration-time-checker {
    background-color: var(--background-alt);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-md);
}

.migration-time-checker h3 {
    font-size: 1.4rem;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--text-color);
}

.migration-time-checker p {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-light);
}

.migration-time-providers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.migration-time-provider {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: var(--background-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.migration-time-provider:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.provider-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.provider-info {
    flex: 1;
}

.provider-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: var(--text-color);
}

.provider-time {
    font-size: 0.9rem;
    color: var(--text-light);
}

.provider-time strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.migration-time-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: var(--spacing-md);
}

.migration-time-note i {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Dark mode styles for migration time checker */
body.dark-mode .migration-time-checker {
    background-color: var(--dark-background-alt);
}

body.dark-mode .migration-time-provider {
    background-color: var(--dark-card);
}

body.dark-mode .provider-name {
    color: var(--dark-text);
}

body.dark-mode .provider-time {
    color: var(--dark-text-light);
}

body.dark-mode .migration-time-note {
    color: var(--dark-text-light);
}

@media (max-width: 768px) {
    .migration-time-providers {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .migration-time-providers {
        grid-template-columns: 1fr;
    }
}

/* Process visualization */
.process-visualization {
    margin-bottom: var(--spacing-xl);
}

.process-card {
    background-color: var(--background-alt);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.process-visualization-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xl);
}

.process-visualization-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-visualization-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

.process-visualization-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-visualization-text h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.process-visualization-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

/* FAQ section */
.faq-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--background-color);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

/* Dark mode specyficzny dla podstrony migracji */
body.dark-mode .faq-section {
    background-color: var(--dark-background);
}

body.dark-mode .faq-item {
    border-color: var(--dark-border);
    background-color: var(--dark-card);
}

body.dark-mode .faq-question {
    background-color: var(--dark-card);
    color: var(--dark-text);
    border-color: var(--dark-border);
}

body.dark-mode .faq-answer {
    background-color: var(--dark-card);
}

body.dark-mode .faq-answer p {
    color: rgba(228, 228, 228, 0.8);
}

body.dark-mode .text-center p {
    color: var(--dark-text);
}

/* CTA section */
.cta-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(45deg, rgba(0, 86, 179, 0.9), rgba(0, 86, 179, 0.7));
    z-index: 1;
}

.cta-section .section-header h2 {
    color: white;
    position: relative;
    z-index: 2;
}

.cta-section .section-subheader {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.cta-section .cta-button {
    position: relative;
    z-index: 2;
}

body.dark-mode .cta-section {
    background-color: var(--primary-dark);
}

body.dark-mode .cta-section::before {
    background-image: linear-gradient(45deg, rgba(0, 68, 148, 0.9), rgba(0, 68, 148, 0.7));
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .content-container {
        flex-direction: column;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .steps-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* JavaScript do obsługi FAQ */
document.addEventListener('DOMContentLoaded', function() {
    const faqQuestions = document.querySelectorAll('.faq-question');
    
    faqQuestions.forEach(question => {
        question.addEventListener('click', () => {
            // Toggle active class for the current question
            const parent = question.parentElement;
            parent.classList.toggle('active');
            
            // Close other open questions
            faqQuestions.forEach(q => {
                if (q !== question) {
                    q.parentElement.classList.remove('active');
                }
            });
        });
    });
});