/* styles-problems.css - Problems section styles */

.problems-section {
    position: relative;
    min-height: auto;
    background: transparent;
    padding: 40px 24px 60px;
    z-index: 1;
}

.problems-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.problems-header {
    text-align: center;
    margin-bottom: 48px;
}

.problems-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.problems-title {
    padding-top: 40px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.problems-subtitle {
    font-size: clamp(13px, 1.4vw, 15px);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--card-gap-lg);
    align-items: stretch;
}

.problem-card {
    background: linear-gradient(135deg, var(--surface-container) 0%, rgba(108, 86, 114, 0.06) 100%);
    border-radius: var(--card-radius-lg);
    padding: var(--card-padding-md);
    border: 1px solid var(--border);
    transform: translateY(0) scale(1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    touch-action: auto;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.problem-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (hover: hover) and (pointer: fine) {
    .problem-card:hover {
        border-color: var(--accent-light);
        box-shadow: 0 8px 32px rgba(64, 95, 144, 0.15), 0 0 50px rgba(64, 95, 144, 0.2);
        transform: translateY(-4px) scale(1);
    }

    .problem-card:hover .problem-icon.solution {
        animation: iconPulse 0.6s ease;
    }

    .problem-card:hover .problem-panel--solution {
        background: linear-gradient(135deg, rgba(165, 214, 167, 0.12) 0%, rgba(165, 214, 167, 0.06) 100%);
    }

    .problem-card:hover .problem-panel--pain {
        background: linear-gradient(135deg, rgba(255, 180, 171, 0.08) 0%, rgba(255, 180, 171, 0.04) 100%);
    }

    .problem-card:hover .problem-layout::after {
        opacity: 0.5;
    }
}

html.touch-device .feature-card,
html.touch-device .problem-card,
html.touch-device .faq-item,
html.touch-device .activity-card,
html.touch-device .maintenance-status-card .status-item,
html.touch-device .trust-badge {
    touch-action: pan-y;
}

html.touch-device .feature-card:hover,
html.touch-device .feature-card.visible:hover,
html.touch-device .problem-card:hover,
html.touch-device .faq-item:hover,
html.touch-device .activity-card:hover,
html.touch-device .maintenance-status-card .status-item:hover,
html.touch-device .trust-badge:hover {
    transform: none !important;
    box-shadow: none !important;
    transition: none !important;
}

html.touch-device .feature-card:hover {
    border-color: var(--border) !important;
}

html.touch-device .feature-card:hover .feature-icon,
html.touch-device .problem-card:hover .problem-icon.solution,
html.touch-device .trust-badge:hover .trust-badge-icon {
    animation: none !important;
    transform: none !important;
}

html.touch-device .problem-card:hover {
    border-color: var(--border) !important;
}

    html.touch-device .problem-card:hover .problem-panel--solution {
        background: linear-gradient(135deg, rgba(165, 214, 167, 0.06) 0%, rgba(165, 214, 167, 0.03) 100%);
    }

    html.touch-device .problem-card:hover .problem-panel--pain {
        background: linear-gradient(135deg, rgba(255, 180, 171, 0.06) 0%, rgba(255, 180, 171, 0.03) 100%);
    }

html.touch-device .problem-card:hover .problem-layout::after {
    opacity: 1;
}

html.touch-device .faq-item:hover {
    border-color: var(--border) !important;
}

html.touch-device .activity-card:hover,
html.touch-device .maintenance-status-card .status-item:hover {
    background: var(--surface-container-high);
}


.problem-layout::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
}

.problem-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    position: relative;
}


.problem-layout::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
    transform: translateX(-50%);
}


.problem-panel {
    padding: var(--space-md);
    border-radius: 6px;
    transition: background 0.3s ease;
}

.problem-panel--pain {
    background: linear-gradient(135deg, rgba(255, 180, 171, 0.08) 0%, rgba(255, 180, 171, 0.04) 100%);
    border-right: 1px solid rgba(255, 180, 171, 0.2);
}

.problem-panel--solution {
    background: linear-gradient(135deg, rgba(165, 214, 167, 0.08) 0%, rgba(165, 214, 167, 0.04) 100%);
    border-left: 1px solid rgba(165, 214, 167, 0.2);
}

.problem-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.problem-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-icon svg {
    width: 18px;
    height: 18px;
}

.problem-icon.pain {
    background: var(--error-bg);
}

.problem-icon.pain svg {
    fill: var(--error);
}

.problem-icon.solution {
    background: var(--success-bg);
}

.problem-icon.solution svg {
    fill: var(--success);
}

.problem-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 5px;
    margin-bottom: var(--space-xs);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    padding-left: 8px;
}

.problem-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    flex-shrink: 0;
}

.problem-tag.pain::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    background: var(--error);
}

.problem-tag.solution::before {
    clip-path: circle(50% at 50% 50%);
    background: var(--success);
}

.problem-tag.pain {
    background: var(--error-bg);
    color: var(--error);
    border-left: 2px solid var(--error);
}

.problem-tag.solution {
    background: var(--success-bg);
    color: var(--success);
    border-left: 2px solid var(--success);
}

.problem-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.3;
}

.problem-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    display: box;
    line-clamp: 3;
    box-orient: vertical;
    overflow: hidden;
}

.problem-divider {
    display: none;
}

.problem-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    min-width: 36px;
}

.problem-arrow svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.problem-arrow span {
    display: none;
}

@media (max-width: 1024px) {
    .problem-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

@media (max-width: 800px) {
    .problems-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
}

@media (max-width: 768px) {
    .problems-grid { grid-template-columns: 1fr; }
    .problems-title { font-size: 22px; }
    .problem-card { padding: var(--space-md); }
    .problem-layout { display: flex; flex-direction: column; gap: 0; }
    .problem-layout::after { display: none; }
    .problem-panel { padding: var(--space-sm); }
    .problem-panel--pain {
        border-right: none;
        border-bottom: 1px solid rgba(255, 82, 82, 0.1);
    }
    .problem-panel--solution {
        border-left: none;
        border-top: 1px solid rgba(76, 175, 80, 0.1);
    }
    .problems-section {
        min-height: auto;
        padding: 60px 20px 60px;
    }
}

@media (max-width: 480px) {
    .problems-grid { grid-template-columns: 1fr; }
    .problems-title { font-size: 20px; }
    .problem-card {
        padding: var(--space-sm);
        border-radius: var(--card-radius-sm);
    }
    .problem-panel { padding: var(--space-xs); }
    .problem-icon {
        width: 32px;
        height: 32px;
        border-radius: var(--card-radius-sm);
    }
    .problem-icon svg { width: 16px; height: 16px; }
    .problem-tag {
        font-size: 9px;
        padding: 2px 6px;
        margin-bottom: var(--space-2xs);
    }
    .problem-title { font-size: 13px; }
    .problem-desc {
        font-size: 11px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 375px) {
    .problems-title { font-size: 18px; }
    .problems-subtitle { font-size: 12px; }
    .problem-card { padding: var(--space-xs); }
    .problem-panel { padding: var(--space-2xs); }
    .problem-icon {
        width: 28px;
        height: 28px;
    }
    .problem-icon svg { width: 14px; height: 14px; }
    .problem-title { font-size: 12px; }
    .problem-desc { font-size: 10px; }
}

@media (max-width: 320px) {
    .problems-section { padding: 40px 12px 40px; }
    .problems-title { font-size: 16px; }
    .problems-subtitle { font-size: 11px; }
    .problem-card { padding: var(--space-2xs); }
    .problem-panel { padding: var(--space-2xs); }
    .problem-icon {
        width: 24px;
        height: 24px;
    }
    .problem-icon svg { width: 12px; height: 12px; }
    .problem-tag { font-size: 8px; }
    .problem-title { font-size: 11px; }
    .problem-desc { font-size: 9px; }
}
