/* home.css - Style specyficzne dla strony głównej MediHub Theme */
/* Lokalizacja: /user/themes/medihub-theme/css/home.css */

/* Hero Section */
.hero {
    background-color: var(--off-white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 40%;
    height: 70%;
    background-color: rgba(117, 169, 249, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background-color: rgba(243, 156, 18, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
    z-index: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--blue-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--gray-dark);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero-image {
    flex: 1;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 70%;
    border-radius: var(--radius);
}

/* Karuzela usług */
.carousel-container {
    position: relative;
    margin-bottom: 30px;
}

.carousel {
    position: relative;
    width: 100%;
    margin: 0 auto 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
    padding: 30px;
    display: flex;
    justify-content: center;
}

.carousel .service-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 4px solid var(--orange);
    transition: var(--transition);
}

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

.card-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon {
    width: 45px;
    height: 45px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--blue-dark);
}

.service-card p {
    font-size: 16px;
    color: #666;
}

/* Nawigacja karuzeli */
.carousel-controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 100;
}

.carousel-control {
    width: 44px;
    height: 44px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    margin: 0 15px;
}

.carousel-control:hover {
    background-color: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-control:active {
    transform: translateY(0);
}

.carousel-control svg {
    width: 24px;
    height: 24px;
    fill: var(--blue-dark);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray-medium);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: var(--blue-dark);
    transform: scale(1.2);
}

/* Sekcja problemów - kompaktowe kafle */
.problems {
    background-color: var(--gray-light);
    padding: 60px 0 40px;
}

.problems-container {
    margin-bottom: 20px;
}

.problems-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.problem-tile {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-left: 3px solid var(--blue-light);
}

.problem-tile:hover, .problem-tile.active {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    border-left: 3px solid var(--orange);
}

.problem-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    transition: var(--transition);
}

.problem-tile:hover .problem-icon, .problem-tile.active .problem-icon {
    background-color: var(--orange);
}

.problem-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--blue-dark);
    transition: var(--transition);
}

.problem-tile:hover .problem-icon svg, .problem-tile.active .problem-icon svg {
    fill: var(--white);
}

.problem-content {
    flex: 1;
}

.problem-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
    line-height: 1.3;
    transition: var(--transition);
}

.problem-tile:hover .problem-title, .problem-tile.active .problem-title {
    color: var(--orange);
}

.problem-description {
    height: 0;
    max-height: 0;
    font-size: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition);
    color: #64748B;
}

.problem-tile:hover .problem-description, .problem-tile.active .problem-description {
    height: auto;
    max-height: 100px;
    font-size: 0.8rem;
    opacity: 1;
    margin-top: 5px;
    line-height: 1.4;
}

/* Sekcja rozwiązań z efektem hover */
.solutions {
    background-color: var(--white);
    padding: 60px 0;
}

.solutions-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.solution-item {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.solution-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.solution-header {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.solution-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--blue-light);
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.solution-item:hover .solution-icon {
    background-color: var(--orange);
}

.solution-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--blue-dark);
    transition: var(--transition);
}

.solution-item:hover .solution-icon svg {
    fill: white;
}

.solution-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-dark);
    transition: var(--transition);
    margin: 0;
}

.solution-content {
    max-height: 0;
    opacity: 0;
    padding: 0 16px 0 60px;
    transition: var(--transition);
    overflow: hidden;
}

.solution-item:hover .solution-content {
    max-height: 300px;
    opacity: 1;
    padding-bottom: 16px;
}

.solution-description {
    color: #4A5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Progress Indicator */
.solution-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--blue-light);
    transition: var(--transition);
}

.solution-item:hover::before {
    width: 5px;
    background-color: var(--orange);
}

/* CTA for solutions */
.solutions .cta-container {
    text-align: center;
    padding: 20px 0;
}

.solutions .cta-text {
    margin-bottom: 14px;
    font-size: 1rem;
    color: #4A5568;
}

/* Process Section */
.process {
    background-color: var(--gray-light);
    position: relative;
    padding: 60px 0;
}

.process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--white), var(--gray-light));
}

.process-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(to bottom, var(--blue-light), var(--blue-medium), var(--blue-dark));
    border-radius: 1.5px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
}

.timeline-content {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.timeline-dot {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--orange);
    border: 4px solid var(--white);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--blue-dark);
    box-shadow: 0 0 0 3px rgba(61, 130, 211, 0.3);
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* Animacje dla sekcji procesu */
.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.hint-interactive .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-item.hint-interactive .timeline-dot {
    background-color: var(--blue-dark);
    box-shadow: 0 0 0 3px rgba(61, 130, 211, 0.3);
}

/* CTA Button */
.cta-container {
    text-align: center;
    margin-top: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--orange);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(243, 156, 18, 0.3);
    min-height: 50px;
    box-sizing: border-box;
    vertical-align: top;
}

.cta-button:hover {
    background-color: #E67E22;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(243, 156, 18, 0.4);
}

/* Media responsiveness */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content p {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .problems-wrapper {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide {
        padding: 15px;
    }
    
    .carousel-control {
        width: 36px;
        height: 36px;
        margin: 0 8px;
    }
    
    .carousel-control svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
}