/* ============================================================
   Portais e Sistemas - Administradora Mutual
   styles.css — Estilos principais
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

/* ---- Header ---- */
.header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ---- Grid ---- */
.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* ---- Card padrão ---- */
.system-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.system-card .icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #667eea;
    stroke-width: 2;
}

.system-card h3 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.system-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.system-card .url {
    color: #999;
    font-size: 0.85rem;
    margin-top: 10px;
    display: block;
    font-family: monospace;
}

/* ---- Card restrito ---- */
.restricted {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border: 2px solid #f39c12;
}

.restricted .icon-lock {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 1.5rem;
    height: 1.5rem;
    color: #f39c12;
}

/* ---- Card Destaque ---- */
.featured-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0a1628 0%, #1a2d50 50%, #0d3b66 100%);
    border: 2px solid #3b82f6;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3), 0 0 60px rgba(59, 130, 246, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.4), 0 0 80px rgba(59, 130, 246, 0.15);
    border-color: #60a5fa;
}

.featured-card .featured-icon-area {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.featured-card .featured-icon-area i {
    width: 40px;
    height: 40px;
    color: white;
    stroke-width: 2;
}

.featured-card .featured-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.featured-card .featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.featured-card h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.featured-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.6;
}

.featured-card .url {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
    margin-top: 12px;
    display: block;
    font-family: monospace;
}

.featured-card .featured-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.featured-card:hover .featured-arrow {
    color: #60a5fa;
    transform: translateX(5px);
}

/* ---- Rodapé ---- */
.footer {
    text-align: center;
    color: white;
    margin-top: 50px;
    opacity: 0.8;
}

/* ---- Barra de usuário ---- */
.user-bar {
    position: fixed;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 0 0 0 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
}

.user-bar .user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-bar .user-name {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

.user-bar .user-email {
    font-size: 0.75rem;
    color: #666;
}

.user-bar .btn-logout {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.user-bar .btn-logout:hover {
    background: #764ba2;
    transform: translateY(-1px);
}

/* ---- Responsivo ---- */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .systems-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px;
    }

    .featured-card .featured-arrow {
        display: none;
    }

    .featured-card h3 {
        font-size: 1.3rem;
    }
}
