/* === Variables CSS === */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --radius: 8px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* === Portal Container === */
.portal-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header === */
.portal-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.logo .subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.btn-logout {
    padding: 8px 16px;
    background: var(--error-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #dc2626;
}

/* === Main Content === */
.portal-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

/* === Welcome Section === */
.welcome-section {
    margin-bottom: 32px;
}

.welcome-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-text {
    font-size: 16px;
    color: var(--text-secondary);
}

/* === Card === */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 24px;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* === Info Grid === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* === Tech Info === */
.tech-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.token-preview {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: var(--bg-color);
    padding: 12px;
    border-radius: 4px;
    word-break: break-all;
    border: 1px solid var(--border-color);
}

/* === Coming Soon === */
.coming-soon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.coming-soon h3 {
    color: white;
}

.coming-soon ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.coming-soon li {
    font-size: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

/* === Footer === */
.portal-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    margin-top: auto;
}

.portal-footer p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* === Responsive === */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .user-menu {
        flex-direction: column;
    }
    
    .welcome-section h2 {
        font-size: 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}
