/* halfsies Color Palette Utilities */

/* Base styles to prevent horizontal scroll */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Color Variables */
:root {
    --background: #121212;
    --surface: #1E1E1E;
    --primary: #26A69A;
    --primary-variant: #4DB6AC;
    --secondary: #80CBC4;
    --secondary-variant: #00695C;
    --on-primary: #FFFFFF;
    --on-surface: #E0F2F1;
    --on-secondary: #000000;
    --on-background: #80CBC4;
    --error: #CF6679;
    --on-error: #FFFFFF;
}

/* Background Colors */
.bg-background { background-color: var(--background); }
.bg-surface { background-color: var(--surface); }
.bg-primary { background-color: var(--primary); }
.bg-primary-variant { background-color: var(--primary-variant); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary-variant { background-color: var(--secondary-variant); }
.bg-error { background-color: var(--error); }

/* Text Colors */
.text-on-primary { color: var(--on-primary); }
.text-on-surface { color: var(--on-surface); }
.text-on-secondary { color: var(--on-secondary); }
.text-on-background { color: var(--on-background); }
.text-on-error { color: var(--on-error); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.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; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.m-4 { margin: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* Typography */
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background-color: var(--primary-variant);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--on-secondary);
}

.btn-secondary:hover {
    background-color: var(--primary-variant);
    color: var(--on-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Cards */
.card {
    background-color: var(--surface);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Space Between Elements */
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Responsive */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:text-left { text-align: left; }
    .md\:text-5xl { font-size: 3rem; }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:text-6xl { font-size: 3.75rem; }
}

/* Utilities */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); }

.w-full { width: 100%; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

.min-h-screen { min-height: 100vh; }

/* Prevent horizontal overflow */
.overflow-x-hidden { overflow-x: hidden; }
.overflow-hidden { overflow: hidden; }

.border-t { border-top-width: 1px; }
.border-secondary-variant { border-color: var(--secondary-variant); }

/* Animations */
.transition { transition: all 0.2s ease; }
.hover\:scale-105:hover { transform: scale(1.05); }
