:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #311042 100%);
    --card-bg: rgba(30, 41, 59, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #818cf8;
    --accent-glow: rgba(129, 140, 248, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Glass ambient backdrops */
.glass-bg {
    position: fixed;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    pointer-events: none;
}

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.logo i {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent));
}

.logo strong {
    color: var(--accent);
}

.live-clock {
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    border: 1px solid var(--card-border);
}

/* Grid Layout */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.grid-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.grid-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
}

/* Member Directory Cards */
.member-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.member-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
    transform: translateX(4px);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.member-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.member-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.member-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 99px;
    font-weight: 600;
    cursor: pointer;
}

.status-online { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.status-away { background: rgba(234, 179, 8, 0.2); color: #facc15; }
.status-busy { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.email-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.email-btn:hover {
    color: var(--accent);
}

/* Quick Links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.link-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.link-card i {
    font-size: 1.5rem;
    color: var(--accent);
}

.link-card:hover {
    transform: translateY(-3px);
    background: rgba(129, 140, 248, 0.1);
    border-color: var(--accent);
}

/* Notice Board */
.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.note {
    background: linear-gradient(135deg, #fef08a 0%, #fef9c3 100%);
    color: #1e293b;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    font-size: 0.9rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #475569;
}

.note-close:hover {
    color: #ef4444;
}

.btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}
