@import "user-styles.css";
@import "splash-styles.css";
@import "home-styles.css";
@import "post-styles.css";
@import "joincommunities-styles.css";
@import "feed-styles.css";
@import "comment-styles.css";

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --color-bg: #f8f7ff;
    --color-surface: #ffffff;
    --color-border: #e8e3f4;
    --color-primary: #7c3aed;
    --color-primary-hover: #6d28d9;
    --color-primary-light: #f5f3ff;
    --color-accent: #f59e0b;
    --color-accent-light: #fef3c7;
    --color-text: #1e1b4b;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;
    --color-danger: #ef4444;
    --color-success: #22c55e;
    --color-upvote: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    --gradient-primary-hover: linear-gradient(135deg, #6d28d9 0%, #4f46e5 100%);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Legacy aliases so existing Lua/JS that references these still works */
    --purple: #7c3aed;
    --purple2: #6d28d9;
    --blue: #0ea5e9;
    --yellow: #f59e0b;
    --yellow2: #d97706;
    --light-yellow: #fde68a;
    --gray: #6b7280;
    --light-gray: #9ca3af;
    --lighter-gray: #d1d5db;
    --lightest-gray: #f5f3ff;
    --red: #ef4444;
    --green: #22c55e;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    min-height: 100vh;
    overscroll-behavior: none;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body:has(.main-header) {
    display: block;
}

body:not(:has(.main-header)) {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.main-content {
    padding: 24px 16px;
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

h1, h2 {
    margin-bottom: 16px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1rem; }

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    margin: 6px 0;
    box-sizing: border-box;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: var(--color-text-muted);
}

.internalcontent {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .main-content { padding: 12px 10px; }
    h1 { font-size: 1.4rem; }
}
