/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #020617, #071e3d, #0b3c5d, #020617);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #ffffff;
    padding: 140px 20px 40px 20px;
}

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ── Environment Banner (non-prod only) ─────────────────────────── */
.env-banner {
    display: none;
    position: fixed;
    top: 70px;          /* sits directly below the nav bar */
    left: 0;
    width: 100%;
    padding: 7px 20px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 999;
    animation: slideDown 0.4s ease;
}
.env-banner.visible {
    display: block;
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* ── Environment Pill (nav, non-prod only) ──────────────────────── */
.env-pill {
    display: none;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 10px;
    border: 1px solid currentColor;
}
.env-pill.visible {
    display: inline-block;
}

/* ── Fixed Top Bar ──────────────────────────────────────────────── */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
}

/* Top Company Logo Dimensions */
.top-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.portal-tag {
    font-size: 0.9rem;
    color: #38bdf8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Layout Container */
.portal-container {
    width: 100%;
    max-width: 1100px;
    text-align: center;
}

.portal-header {
    margin-bottom: 50px;
}

.portal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.portal-header p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

/* Card Styling */
.app-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 20px 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Image App Icon Style */
.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: all 0.3s ease;
}

/* Unified Icon Frame Base */
.icon-placeholder {
    width: 70px;
    height: 70px;
    background: #ffffff;
    color: #071e3d;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Hover Effects for Active Card */
.app-card:not(.disabled):hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #38bdf8;
    box-shadow: 0 15px 30px -5px rgba(56, 189, 248, 0.25);
    cursor: pointer;
}

.app-card:not(.disabled):hover .icon-placeholder {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
}

/* Disabled Card Styling */
.app-card.disabled {
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.01);
    border-color: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
}

.disabled .icon-placeholder {
    box-shadow: none;
}

/* Typography Inside Cards */
.app-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.subtext {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Coming Soon Badge */
.badge {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #ea580c;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.2);
}
