/* 
   ER-Partners Hub - Minimal Premium Dark Theme
   Color Palette: Deep Blacks, Gold, Emerald, Ocean Blue
   Fonts: Outfit (Headings), Inter (Body)
*/

:root {
    --bg-base: #0a0a0c;
    --bg-card: rgba(20, 20, 26, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-main: #f3f3f3;
    --text-muted: #a0a0a5;
    
    --gold-primary: #c5a059;
    --gold-hover: #d4b373;
    
    --emerald-primary: #4cb883;
    --blue-primary: #3b82f6;
    --gray-primary: #6b7280;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(197, 160, 89, 0.03) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* Header */
.header {
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--gold-primary);
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--gold-hover);
    transform: scale(1.02);
}

.lang-selector {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.lang-selector:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.lang-current-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.global-lang-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Hub Main Area */
.hub-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 6rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hub-hero {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    animation: fadeInDown 0.8s ease-out;
}

.hub-subtitle {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hub-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a0a0a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Hub Grid (Tunnels) */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@media (max-width: 768px) {
    .hub-grid {
        grid-template-columns: 1fr;
    }
    .header {
        padding: 1.5rem;
    }
    .hub-title {
        font-size: 2rem;
    }
}

/* Cards (Glassmorphism) */
.tunnel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-decoration: none;
    color: var(--text-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    transition: var(--transition-smooth);
    z-index: 1;
}

.tunnel-card:hover:not(.disabled-card) {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.tunnel-card:hover .card-glow {
    opacity: 0.1;
}

.gold-glow { background: radial-gradient(circle at top right, var(--gold-primary), transparent 70%); }
.blue-glow { background: radial-gradient(circle at top right, var(--blue-primary), transparent 70%); }
.emerald-glow { background: radial-gradient(circle at top right, var(--emerald-primary), transparent 70%); }
.gray-glow { background: radial-gradient(circle at top right, var(--gray-primary), transparent 70%); }

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.gold-tag { color: var(--gold-primary); background-color: rgba(197, 160, 89, 0.1); }
.blue-tag { color: var(--blue-primary); background-color: rgba(59, 130, 246, 0.1); }
.emerald-tag { color: var(--emerald-primary); background-color: rgba(76, 184, 131, 0.1); }
.gray-tag { color: var(--gray-primary); background-color: rgba(107, 114, 128, 0.1); }

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.tunnel-card:hover:not(.disabled-card) .card-action svg {
    transform: translateX(5px);
}

.gold-action { color: var(--gold-primary); }
.blue-action { color: var(--blue-primary); }
.emerald-action { color: var(--emerald-primary); }
.gray-action { color: var(--gray-primary); }

.disabled-card {
    opacity: 0.6;
    cursor: not-allowed;
}

.disabled-card .card-title, .disabled-card .card-desc {
    color: var(--text-muted);
}

/* Footer */
.hub-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Gate Lock Screen (Auth) */
#gate-lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-base);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

#gate-login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    text-align: center;
}

.gate-logo {
    color: var(--gold-primary);
    margin-bottom: 2rem;
}

#gate-login-card h3 {
    color: var(--gold-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

#gate-login-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(255,255,255,0.02);
    color: var(--text-main);
    outline: none;
    transition: var(--transition-smooth);
    margin-bottom: 1.5rem;
}

.input-group input:focus {
    border-color: rgba(197, 160, 89, 0.5);
    background-color: rgba(255,255,255,0.05);
}

.btn-gate {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    background-color: var(--gold-primary);
    color: var(--bg-base);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-gate:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
}

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

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