/* StockGenius AI - Pure Static Styles */

/* ========== CSS Variables ========== */
:root {
    --color-primary: #ccff00;
    --color-secondary: #000000;
    --color-light: #ffffff;
    --color-dark: #121212;
    --color-gray-custom: #888888;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    overflow-x: hidden;
    background-color: var(--color-secondary);
    color: var(--color-light);
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

input {
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== Layout ========== */
.min-h-screen { min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-24 { padding-top: 6rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-5 { margin-left: 1.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.-space-x-2 > * + * { margin-left: -0.5rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* ========== Flexbox ========== */
.flex { display: flex; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* ========== Grid ========== */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ========== Positioning ========== */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.top-1\/2 { top: 50%; }
.top-1\/4 { top: 25%; }
.-bottom-6 { bottom: -1.5rem; }
.-left-6 { left: -1.5rem; }
.-mr-20 { margin-right: -5rem; }
.-mt-20 { margin-top: -5rem; }
.-ml-20 { margin-left: -5rem; }
.-mb-20 { margin-bottom: -5rem; }
.-mx-4 { margin-left: -1rem; margin-right: -1rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.-z-10 { z-index: -10; }

/* ========== Sizing ========== */
.w-3 { width: 0.75rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }
.w-80 { width: 20rem; }
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-3 { height: 0.75rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-40 { height: 10rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }
.h-full { height: 100%; }
.h-auto { height: auto; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-2xl { max-width: 42rem; }

/* ========== Typography ========== */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-sans { font-family: var(--font-sans); }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }
.text-shadow { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }

/* Dynamic font size */
.text-\[clamp\(2rem\,5vw\,3\.5rem\)\] {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* ========== Colors ========== */
.text-primary { color: var(--color-primary); }
.text-secondary\/70 { color: rgba(0, 0, 0, 0.7); }
.text-secondary\/80 { color: rgba(0, 0, 0, 0.8); }
.text-light\/90 { color: rgba(255, 255, 255, 0.9); }
.text-secondary { color: var(--color-secondary); }
.text-light { color: var(--color-light); }
.text-white { color: #ffffff; }
.text-gray-custom { color: var(--color-gray-custom); }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-green-500 { color: #22c55e; }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-light { background-color: var(--color-light); }
.bg-dark { background-color: var(--color-dark); }
.bg-white { background-color: white; }
.bg-black { background-color: black; }
.bg-gray-700 { background-color: #374151; }
.bg-red-500 { background-color: #ef4444; }
.bg-yellow-500 { background-color: #eab308; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-600 { background-color: #16a34a; }
.hover\:bg-green-600:hover { background-color: #16a34a; }

/* Opacity colors */
.bg-primary\/10 { background-color: rgba(204, 255, 0, 0.1); }
.bg-primary\/20 { background-color: rgba(204, 255, 0, 0.2); }
.bg-primary\/5 { background-color: rgba(204, 255, 0, 0.05); }
.bg-secondary\/5 { background-color: rgba(0, 0, 0, 0.05); }
.bg-secondary\/20 { background-color: rgba(0, 0, 0, 0.2); }
.bg-secondary\/5 { background-color: rgba(0, 0, 0, 0.05); }
.bg-secondary\/20 { background-color: rgba(0, 0, 0, 0.2); }
.bg-dark\/70 { background-color: rgba(18, 18, 18, 0.7); }
.bg-dark\/80 { background-color: rgba(18, 18, 18, 0.8); }
.bg-green-500\/20 { background-color: rgba(34, 197, 94, 0.2); }
.bg-black.bg-opacity-75 { background-color: rgba(0, 0, 0, 0.75); }
.text-light\/90 { color: rgba(255, 255, 255, 0.9); }
.text-secondary\/70 { color: rgba(0, 0, 0, 0.7); }
.text-secondary\/80 { color: rgba(0, 0, 0, 0.8); }

/* ========== Borders ========== */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-4 { border-width: 4px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-300 { border-color: #d1d5db; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-primary\/30 { border-color: rgba(204, 255, 0, 0.3); }
.border-secondary { border-color: var(--color-secondary); }
.border-primary\/30 { border-color: rgba(204, 255, 0, 0.3); }
.border-t-transparent { border-top-color: transparent; }

/* ========== Border Radius ========== */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-l-lg { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

/* ========== Shadows ========== */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-primary\/20 { box-shadow: 0 10px 15px -3px rgba(204, 255, 0, 0.2); }
.shadow-secondary\/30 { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }

/* ========== Effects ========== */
.opacity-0 { opacity: 0; }
.opacity-10 { opacity: 0.1; }
.opacity-100 { opacity: 1; }
.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.object-cover { object-fit: cover; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.filter { filter: var(--tw-filter); }
.blur-3xl { filter: blur(64px); }
.cursor-pointer { cursor: pointer; }

/* ========== Transitions ========== */
.transition { transition-property: all; transition-timing-function: ease; transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: ease; transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: ease; transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }
.ease-out { transition-timing-function: ease-out; }

/* ========== Transforms ========== */
.transform { transform: translateX(var(--tw-translate-x, 0)) translateY(var(--tw-translate-y, 0)) scale(var(--tw-scale, 1)); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.-translate-y-1 { transform: translateY(-0.25rem); }
.-translate-y-2 { transform: translateY(-0.5rem); }
.scale-95 { transform: scale(0.95); }
.scale-100 { transform: scale(1); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }
.scale-\[1\.02\] { transform: scale(1.02); }

/* ========== Gradient ========== */
.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}
.from-dark\/70 {
    --tw-gradient-from: rgba(18, 18, 18, 0.7);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent);
}
.to-transparent {
    --tw-gradient-to: transparent;
}

/* ========== Ring ========== */
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, currentColor); }
.ring-primary\/20 { --tw-ring-color: rgba(204, 255, 0, 0.2); }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, #ccff00); }
.focus\:ring-primary:focus { --tw-ring-color: var(--color-primary); }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px white, 0 0 0 4px var(--tw-ring-color, #ccff00); }
.focus\:ring-offset-secondary:focus { --tw-ring-offset-color: var(--color-secondary); }
.focus\:outline-none:focus { outline: none; }

/* ========== Hover Effects ========== */
.hover\:bg-opacity-90:hover { opacity: 0.9; }
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:bg-dark:hover { background-color: var(--color-dark); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:transform:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:-translate-y-2:hover { transform: translateY(-0.5rem); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.hover\:shadow-primary\/10:hover { box-shadow: 0 10px 15px -3px rgba(204, 255, 0, 0.1); }
.hover\:shadow-primary\/20:hover { box-shadow: 0 20px 25px -5px rgba(204, 255, 0, 0.2); }

/* Group hover */
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:bg-primary\/90 { background-color: rgba(204, 255, 0, 0.9); }
.group:hover .group-hover\:bg-secondary { background-color: var(--color-secondary); }
.group:hover .group-hover\:-translate-y-2 { transform: translateY(-0.5rem); }

/* ========== Animation ========== */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* ========== List ========== */
.list-disc { list-style-type: disc; }

/* ========== Modal ========== */
.modal-content-style {
    max-height: 80vh;
    overflow-y: auto;
}

/* ========== Responsive ========== */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:w-1\/2 { width: 50%; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:pr-10 { padding-right: 2.5rem; }
    .md\:mx-0 { margin-left: 0; margin-right: 0; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:min-w-\[33\.333\%\] { min-width: 33.333%; }
}

/* ========== Placeholder ========== */
.placeholder-gray-custom::placeholder {
    color: var(--color-gray-custom);
}

/* ========== Custom Animations ========== */
.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #22c55e;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: #22c55e;
    stroke-width: 3;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}

/* ========== Demo Input Styles ========== */
#demoStockInput {
    font-size: 16px;
    min-height: 48px;
}

#demoStockInput::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

#demoAnalyzeBtn {
    min-height: 48px;
    font-size: 16px;
}

/* ========== Responsive Breakpoints ========== */
/* sm: 640px */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
}

/* md: 768px */
@media (min-width: 768px) {
    .md\:w-1\/2 { width: 50%; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:pr-10 { padding-right: 2.5rem; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:block { display: block; }
}

