/**
 * Common CSS - Shared between Admin and Public, Light and Dark Modes
 * This file contains styles that are used across all pages regardless of context
 */

/* ============================================
   GOOGLE FONTS - Modern Professional Typography
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

/* ============================================
   FONT DISPLAY OPTIMIZATION
   ============================================ */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
}

/* ============================================
   COMMON CSS VARIABLES - Shared across all modes
   ============================================ */
:root {
    /* Spacing - Used in both light and dark */
    --github-spacing-xs: 4px;
    --github-spacing-sm: 8px;
    --github-spacing-md: 16px;
    --github-spacing-lg: 24px;
    --github-spacing-xl: 32px;
    --github-spacing-2xl: 48px;

    /* Border Radius - Used in both light and dark */
    --github-radius: 6px;
    --github-radius-lg: 12px;

    /* Typography - Used in both light and dark */
    --github-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    --github-font-size-xs: 12px;
    --github-font-size-sm: 14px;
    --github-font-size-base: 16px;
    --github-font-size-lg: 18px;
    --github-font-size-xl: 20px;
    --github-font-size-2xl: 24px;

    /* Font Weights - Used in both light and dark */
    --github-font-weight-normal: 400;
    --github-font-weight-medium: 500;
    --github-font-weight-semibold: 600;
    --github-font-weight-bold: 700;
}

/* ============================================
   GLOBAL RESETS - Shared across all pages
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   BASE BODY STYLES - Shared across all pages
   ============================================ */
body {
    font-family: var(--github-font-family);
    font-size: var(--github-font-size-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ============================================
   UTILITY CLASSES - Shared across all pages
   ============================================ */
/* Hide on mobile */
.hide-mobile,
.d-none-mobile {
    display: none !important;
}

@media (max-width: 767px) {
    .hide-mobile,
    .d-none-mobile {
        display: none !important;
    }
}

/* Show only on mobile */
.show-mobile,
.d-block-mobile {
    display: none !important;
}

@media (max-width: 767px) {
    .show-mobile,
    .d-block-mobile {
        display: block !important;
    }
}

/* Full width on mobile */
@media (max-width: 767px) {
    .w-100-mobile {
        width: 100% !important;
    }
}

/* Text alignment on mobile */
@media (max-width: 767px) {
    .text-center-mobile {
        text-align: center !important;
    }
}
