/* Modern Classless CSS Framework - Optimized */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text: #111827;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --max-width: 1280px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: Avenir, Montserrat, Corbel, 'URW Gothic', source-sans-pro, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
}

.selector-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text);
}

.selector-container h2 {
    color: var(--primary);
    border-bottom: none;
    padding-bottom: 0;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.selector-container label {
    color: var(--text);
}

.selector-container select {
    background-color: var(--bg);
    color: var(--text);
    border: 2px solid var(--border);
}

.selector-container select:focus {
    border-color: var(--primary);
    outline: none;
}

.status {
    background-color: var(--bg-secondary);
    border-left-color: var(--primary);
    color: var(--text);
}

.demo-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 2rem 1.5rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-top: 0;
}

h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    background: linear-gradient(var(--primary), var(--primary)) 0 100% / 0 2px no-repeat;
}

a:hover {
    color: var(--primary-dark);
    background-size: 100% 2px;
}

strong, b {
    font-weight: 600;
    color: var(--text);
}

em, i {
    font-style: italic;
}

small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Lists */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

li {
    margin: 0.75rem 0;
    padding-left: 0.5rem;
}

/* Forms */
select, button {
    font-family: inherit;
    font-size: 1rem;
}

select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg);
    color: var(--text);
    transition: var(--transition);
    margin: 0.75rem 0;
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

button {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    margin: 0.75rem 0.75rem 0.75rem 0;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::after {
    width: 300px;
    height: 300px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

/* Utilities */
[hidden] {
    display: none !important;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }
}
