/* NUI - Native UI Framework - Official Implementation */
/* Based on https://github.com/chrlzs/NUI-Native-UI */
/*
   This file provides the core styles and variables for the NUI framework.
   It includes global variables, layout utilities, typography, components, and responsive design.
*/

/* Global Variables */
:root {
    --primary-color: rgba(0, 123, 255, 1);
    --secondary-color: rgba(108, 117, 125, 1);
    --success-color: rgba(40, 167, 69, 1);
    --danger-color: rgba(220, 53, 69, 1);
    --warning-color: rgba(255, 193, 7, 1);
    --info-color: rgba(23, 162, 184, 1);
    --dark-color: rgba(51, 58, 64, 1);
    --dark-transparent-color: rgba(51, 58, 64, .75);
    --light-color: rgba(248, 249, 250, 1);
    --lighter-color: rgba(242, 244, 245, 1);
    --white: rgba(255, 255, 255, 1);
    --black: rgba(0, 0, 0, 1);
    --font-family: sans-serif;
    --border-radius: 4px;
    --transition-speed: 0.3s;
    --transition-timing-function: ease;
    --font-size: 1em;
    
    /* Card Variables */
    --card-border: #ccc;
    --card-bg: #fff;
    --card-footer-text: #777;
    
    /* Button Variables */
    --button-primary-bg: var(--primary-color);
    --button-primary-color: var(--white);
    --button-secondary-bg: var(--secondary-color);
    --button-secondary-color: var(--white);
}
/*
   Root variables for NUI colors, fonts, and component styles.
   Used throughout the framework for consistent theming.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*
   Resets default browser styles and sets base box-sizing.
*/

html {
    font-size: 16px;
    line-height: 1.6;
}
    /* Base font size */

body {
    font-family: var(--font-family);
    color: var(--dark-color);
    background: var(--light-color);
}
    /* Set body font */

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
/*
   Heading styles for all heading levels.
*/

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
/* Font sizes for headings */

p {
    margin-bottom: 1rem;
}
/* Paragraph spacing */

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}
/* Link styles and hover effect */

a:hover {
    color: var(--secondary-color);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
/*
   Container and max-width utilities for layout.
*/

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Flexbox */
.flex {
    display: flex;
}
/* Flexbox utilities */

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

/* Spacing */
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
/* Spacing utilities for padding and margin */

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-12 { margin-top: 3rem; }

.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Text */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
/* Text alignment, size, and weight utilities */

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-sans { font-family: var(--font-family); }

.text-primary { color: var(--primary-color); }
.text-primary-contrast { color: var(--white); }
.text-muted { color: var(--secondary-color); }
.text-link { color: var(--primary-color); }

/* Background */
.bg-surface { background-color: var(--light-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-muted { background-color: var(--lighter-color); }
/* Background color utilities */

/* NUI Card Component */
.nui-card, .card {
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: var(--card-bg);
    transition: all var(--transition-speed) var(--transition-timing-function);
}
/*
   Card styles for NUI cards and .card elements.
   Includes header, body, and footer styles.
*/

.nui-card:hover, .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nui-card-header, .card-header {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}

.nui-card-body, .card-body {
    margin-bottom: 8px;
}

.nui-card-footer, .card-footer {
    text-align: right;
    font-size: 0.9em;
    color: var(--card-footer-text);
}

/* NUI Button Component */
.button {
    font-family: var(--font-family);
    background-color: var(--button-primary-bg);
    color: var(--button-primary-color);
    border: none;
    border-radius: var(--border-radius);
    padding: 10px 20px;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing-function);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: var(--font-size);
}
/*
   Button styles for NUI buttons and .button elements.
   Includes outline and hover effects.
*/

.button:hover {
    background-color: var(--button-secondary-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.button-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Badge Component */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--lighter-color);
    color: var(--dark-color);
    border: 1px solid var(--card-border);
    transition: all var(--transition-speed);
}
/*
   Badge styles for NUI badges and .badge elements.
   Includes outline and hover effects.
*/

.badge:hover {
    background: var(--light-color);
    transform: translateY(-1px);
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.badge-outline:hover {
    background: rgba(0, 123, 255, 0.1);
}

/* Lists */
.list-disc {
    list-style-type: disc;
}
/*
   List style utilities for disc and inside positioning.
*/

.list-inside {
    list-style-position: inside;
}

/* Borders */
.border {
    border: 1px solid var(--card-border);
}
/*
   Border utilities for general and left border styles.
*/

.border-l-4 {
    border-left: 4px solid;
}

/* Grid System */
.grid {
    display: grid;
}
/*
   Grid layout utilities for columns and gaps.
*/

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/*
   Responsive utilities for grid, container, and font sizes.
   Adjusts layout for medium and small screens.
*/

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .text-4xl { font-size: 2rem; }
    .text-2xl { font-size: 1.25rem; }
    
    .nui-card, .card {
        padding: 12px;
    }
    
    .py-8 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .flex {
        flex-direction: column;
    }
    
    .gap-4 > * {
        margin-bottom: 0.5rem;
    }
}
