/* LatinosPC - Input / Output Devices Stylesheet */

.io-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}

.io-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 244, 250, 0.9) 100%);
    border: 1px solid rgba(74, 111, 165, 0.2);
    border-radius: 16px;
    padding: 2.2rem 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.io-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, #4a6fa5, #2980b9);
}

.io-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: linear-gradient(135deg, #2c3e50, #4a6fa5);
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(44, 62, 80, 0.2);
}

.io-hero h1 {
    font-size: 2.2rem;
    color: #1a2530;
    margin: 0 0 1rem;
    line-height: 1.25;
}

.io-hero p.io-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 0 0 1.5rem;
    max-width: 1050px;
}

.io-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.2rem;
}

.io-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    background: #ffffff;
    border: 2px solid #4a6fa5;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(74, 111, 165, 0.12);
}

.io-switch-btn:hover {
    background: #4a6fa5;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 111, 165, 0.25);
}

.io-switch-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.io-switch-btn:hover svg {
    transform: translateX(3px);
}

/* Fun Trivia Box */
.io-trivia {
    background: linear-gradient(135deg, #f8fafc 0%, #eef3f9 100%);
    border-left: 4px solid #f39c12;
    border-radius: 12px;
    padding: 1.25rem 1.6rem;
    margin-bottom: 2.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.io-trivia-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.io-trivia-content {
    flex: 1;
}

.io-trivia-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d35400;
    margin-bottom: 0.35rem;
}

.io-trivia-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3748;
    margin: 0;
}

/* Cards Grid Enhancements */
.io-grid-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 2rem 0 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.io-count-pill {
    font-size: 0.85rem;
    font-weight: 600;
    background: #e2e8f0;
    color: #4a5568;
    padding: 0.2rem 0.75rem;
    border-radius: 12px;
}

.hardware-card .card-category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(74, 111, 165, 0.12);
    color: #315282;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    pointer-events: none;
}

.hardware-card .card-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem 1.2rem;
    border-top: 1px solid #f0f3f7;
    margin-top: auto;
}

.card-cta-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a6fa5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.card-cta-link:hover {
    color: #1e3c72;
    transform: translateX(2px);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .io-container {
        padding: 0.8rem 1rem 2rem;
    }
    .io-hero {
        padding: 1.5rem 1.25rem;
    }
    .io-hero h1 {
        font-size: 1.7rem;
    }
    .io-hero p.io-lead {
        font-size: 1rem;
    }
    .io-trivia {
        padding: 1rem 1.2rem;
        flex-direction: column;
        gap: 0.6rem;
    }
}
