/* FOLHA DE ESTILOS DE WEB SYSTEMS SOFTWARES */

/* RESET */
:root {
    --primary: #00d2ff;
    --dark-bg: #0f0c29;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    color: var(--text-color);
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    display: none;
    overflow: hidden;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* HEADER E BUSCA */
.iframe-header { 
    text-align: center; 
    padding: 40px 5% 20px; 
}

.iframe-header h1 { 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
}

.subtitle { 
    opacity: 0.8; 
    font-size: 1.1rem; 
    margin-bottom: 30px; 
}

.search-action-bar {
    display: flex;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
}

#searchInput {
    flex: 1;
    min-width: 250px;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.btn-main {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-main:hover { 
    transform: scale(1.05); 
    box-shadow: 0 0 15px var(--primary); 
}

/* FILTROS */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.filter-btn.active, .filter-btn:hover { 
    background: var(--primary); 
    color: #000; 
    font-weight: 600; 
}

/* GRID E CARDS */
.grid-vitrine {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    justify-content: center;
    gap: 30px;
    padding: 20px 5% 60px;
}

.card {
    width: 300px;
    height: 480px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
}

.card:hover { 
    transform: translateY(-10px); 
    border-color: var(--primary); 
}

.card-image { 
    height: 180px; 
    background-size: cover; 
    background-position: center; 
}

.card-content { 
    padding: 20px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.badges-wrapper { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin-bottom: 12px; 
    min-height: 25px; 
}

.badge {
    background: var(--primary);
    color: #000;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    white-space: nowrap; /* Garante que o texto não quebre linha dentro do badge */
}

.card-content h3 { 
    margin: 0 0 10px 0; 
    font-size: 1.2rem; 
    height: 2.4em; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.card-content p { 
    font-size: 0.85rem; 
    line-height: 1.4; 
    opacity: 0.8; 
    height: 4.2em; 
    overflow: hidden;
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
}

.btn-cta {
    margin-top: auto;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cta:hover { 
    background: var(--primary); 
    color: #000; 
}

/* MODAIS */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; top: 0;
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.85); 
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #1a1a2e; 
    margin: 5vh auto; 
    padding: 40px; 
    width: 90%; 
    max-width: 850px;
    border-radius: 20px; 
    border: 1px solid var(--primary); 
    position: relative;
}

.close-btn { 
    position: absolute; 
    right: 25px; 
    top: 20px; 
    font-size: 30px; 
    cursor: pointer; 
    color: var(--primary); 
}

.modal-body { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 30px; 
}

#modalImg { 
    height: 300px; 
    background-size: cover; 
    border-radius: 10px; 
}

#modalFeatures {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#modalFeatures li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

#modalFeatures li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.modal-actions { 
    display: flex; 
    gap: 10px; 
    margin-top: 25px; 
}

.btn-sec { 
    background: transparent; 
    border: 1px solid #fff; 
    color: #fff; 
    padding: 12px 20px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
}

/* FORMULÁRIO */
.form-tech input, .form-tech select, .form-tech textarea {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 15px; 
    border-radius: 5px;
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.2); 
    color: #fff;
}

@media (max-width: 768px) {
    .modal-body { 
        grid-template-columns: 1fr; 
    }
    .modal-content { 
        height: 90vh; 
        overflow-y: auto; 
    }
}
