/* assets/css/portal.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}

.portal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.portal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-content h1 {
    font-size: 28px;
    font-weight: 300;
}

.header-content h1 i {
    color: #FDD835;
    margin-right: 15px;
}

.header-info {
    font-size: 14px;
    opacity: 0.8;
}

.header-info i {
    margin-right: 8px;
}

/* Banner */
.portal-banner {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.3);
}

.portal-banner h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 300;
}

.portal-banner h2 i {
    color: #FDD835;
}

.portal-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* Grid de Sistemas */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.system-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D32F2F, #FDD835);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.system-card:hover::before {
    opacity: 1;
}

.system-card:hover .card-arrow {
    transform: translateX(5px);
    color: #D32F2F;
}

.card-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.card-content {
    flex: 1;
}

.card-content h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.card-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.development {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.planned {
    background: #e3f2fd;
    color: #0d47a1;
}

.version {
    font-size: 11px;
    color: #999;
}

.card-arrow {
    color: #ccc;
    font-size: 20px;
    transition: all 0.3s ease;
    margin-left: auto;
}

/* Footer */
.portal-footer {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #e0e0e0;
}

/* Responsividade */
@media (max-width: 768px) {
    .portal-container {
        padding: 10px;
    }
    
    .header-content h1 {
        font-size: 20px;
    }
    
    .portal-banner {
        padding: 25px;
    }
    
    .portal-banner h2 {
        font-size: 24px;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
    }
    
    .system-card {
        padding: 18px;
    }
    
    .card-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .card-status {
        flex-direction: column;
        align-items: flex-start;
    }
}