/**
 * PWA Installation Section - Compact Version
 * Versão compacta com fontes reduzidas e altura menor
 */

.pwa-installation-section {
    width: 100%;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pwa-installation-section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pwa-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.pwa-section-subtitle {
    font-size: 0.95rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Cards Grid - Compact */
.pwa-cards-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    justify-items: center;
}

/* Card Compact Base */
.pwa-card-compact {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border-top: 3px solid;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
    min-height: 450px;
}

.pwa-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

/* Platform-specific colors */
.ios-card-compact {
    border-top-color: #0EA5A8;
}

.android-card-compact {
    border-top-color: #2ecc71;
}

.desktop-card-compact {
    border-top-color: #0F766E;
}

/* Card Header Compact */
.card-header-compact {
    padding: 1.2rem;
    text-align: center;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.card-header-compact h3 {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.icon-compact {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
}

.ios-icon-compact {
    background: linear-gradient(135deg, #0EA5A8 0%, #0F766E 100%);
}

.android-icon-compact {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.desktop-icon-compact {
    background: linear-gradient(135deg, #0F766E 0%, #0d6064 100%);
}

/* Steps Compact */
.steps-compact {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    overflow-y: auto;
    max-height: 330px;
}

.step-compact {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0EA5A8 0%, #0F766E 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.step-content-compact {
    flex: 1;
    font-size: 0;
}

.step-content-compact strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

.step-content-compact p {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Icon Demo Styles */
.icon-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0.3rem 0;
    border-radius: 6px;
    background: #f3f4f6;
    color: #1f2937;
    flex-shrink: 0;
}

.icon-demo svg {
    width: 18px;
    height: 18px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ios-share {
    color: #0EA5A8;
    background: #e0f2f1;
}

.android-menu {
    color: #2ecc71;
    background: #e8f8f5;
}

.desktop-install {
    color: #0F766E;
    background: #e0f2f1;
}

/* Responsive */
@media (max-width: 768px) {
    .pwa-installation-section {
        padding: 2rem 1rem;
    }

    .pwa-section-title {
        font-size: 1.4rem;
    }

    .pwa-section-subtitle {
        font-size: 0.85rem;
    }

    .pwa-cards-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 100%;
    }

    .pwa-card-compact {
        max-width: 100%;
        width: 100%;
    }

    .card-header-compact {
        padding: 1rem;
    }

    .steps-compact {
        padding: 0.8rem;
        gap: 0.5rem;
    }
}
