/* ============================================
   myKokoro Portal Page Styles
   portal.css — Choice/Landing Page Only
   ============================================ */

:root {
    --bg-primary: #16213e;
    --bg-secondary: #1e2a4a;
    --accent-teal: #4fd1c7;
    --accent-lavender: #c084fc;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;

    /* Wing accent colors */
    --counseling-accent: #4fd1c7;
    --health-green: #6b8c3a;
    --health-teal: #00c9b1;
    --health-mauve: #9e5a7a;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Portal Header ---- */
.portal-header {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(22, 33, 62, 0.97);
}

.portal-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.portal-vc-logo {
    height: 38px;
    width: auto;
}

.portal-division-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.03em;
}

/* ---- Portal Main ---- */
.portal-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.portal-main::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 15% 85%, rgba(79, 209, 199, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(107, 140, 58, 0.07) 0%, transparent 50%);
    pointer-events: none;
}

/* ---- Hero Section ---- */
.portal-hero {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out both;
}

.portal-main-logo {
    height: 160px;
    width: auto;
    margin-bottom: 1.5rem;
}

.portal-tagline {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-lavender));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.portal-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* ---- Cards Container ---- */
.portal-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ---- Individual Card ---- */
.portal-card {
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
    display: block;
    animation: fadeInUp 0.9s ease-out both;
}

.portal-card:nth-child(2) {
    animation-delay: 0.15s;
}

.portal-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
    height: 100%;
}

/* Counseling card hover */
.counseling-card:hover {
    border-color: var(--counseling-accent);
    background: rgba(79, 209, 199, 0.06);
    transform: translateY(-6px);
}

/* Health card hover */
.health-card:hover {
    border-color: #7a3d5a;
    background: rgba(122, 61, 90, 0.06);
    transform: translateY(-6px);
}

/* ---- Card Logo ---- */
.portal-card-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.8rem;
}

.portal-card-logo img {
    height: 200px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* ---- Card Content ---- */
.portal-card-content {
    text-align: center;
    width: 100%;
}

.portal-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
    line-height: 1.25;
}

.portal-card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Tags ---- */
.portal-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.tag {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tag-teal {
    background: rgba(79, 209, 199, 0.15);
    color: var(--accent-teal);
    border: 1px solid rgba(79, 209, 199, 0.3);
}

.tag-green {
    background: rgba(107, 140, 58, 0.15);
    color: #8ab54a;
    border: 1px solid rgba(107, 140, 58, 0.35);
}

.tag-teal-dark {
    background: rgba(0, 201, 177, 0.15);
    color: var(--health-teal);
    border: 1px solid rgba(0, 201, 177, 0.3);
}

.tag-mauve {
    background: rgba(158, 90, 122, 0.15);
    color: #c47a9e;
    border: 1px solid rgba(158, 90, 122, 0.3);
}

.tag-purple {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

/* ---- CTA Button ---- */
.portal-card-cta {
    margin-top: auto;
}

.portal-enter-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.counseling-btn {
    background: #0f766e;
    color: white;
}

.counseling-btn:hover {
    background: #0d5d56;
}

.health-btn {
    background: #7a3d5a;
    color: white;
}

.health-btn:hover {
    background: #622f48;
}

/* ---- Portal Footer ---- */
.portal-footer {
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-primary);
}

.portal-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.portal-footer-inner p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

.portal-social {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.portal-social a img {
    border-radius: 6px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.portal-social a:hover img {
    opacity: 1;
}

/* ---- Animations ---- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .portal-cards {
        grid-template-columns: 1fr;
        max-width: 540px;
    }

    .portal-tagline {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .portal-tagline {
        font-size: 1.8rem;
    }

    .portal-main-logo {
        height: 120px;
    }

    .portal-card-logo img {
        height: 160px;
    }

    .portal-card-title {
        font-size: 1.35rem;
    }
}
