/* CaptionFormat - Optimized Tailwind CSS Subset */
/* Custom Properties */
:root {
    --primary: #ec4899;
    --primary-dark: #be185d;
    --background-light: #f8f8f8;
    --text-main: #222222;
    --text-secondary: #555555;
    --surface-light: #ffffff;
    --border-light: #e0e0e0;
}

/* Tailwind Base Reset */
*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    margin: 0;
    line-height: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

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

b, strong {
    font-weight: bolder;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button, [type='button'], [type='reset'], [type='submit'] {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

textarea {
    resize: vertical;
}

summary {
    display: list-item;
}

/* Utility Classes */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-8 { right: 2rem; }
.bottom-8 { bottom: 2rem; }
.left-1\/2 { left: 50%; }
.top-1\/2 { top: 50%; }

.z-50 { z-index: 50; }
.z-\[200\] { z-index: 200; }
.z-\[300\] { z-index: 300; }

.m-4 { margin: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.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-24 { margin-bottom: 6rem; }
.mb-32 { margin-bottom: 8rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.size-6 { width: 1.5rem; height: 1.5rem; }
.size-7 { width: 1.75rem; height: 1.75rem; }
.size-8 { width: 2rem; height: 2rem; }
.size-10 { width: 2.5rem; height: 2.5rem; }
.size-14 { width: 3.5rem; height: 3.5rem; }
.size-16 { width: 4rem; height: 4rem; }

.h-5 { height: 1.25rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-\[0\.5rem\] { height: 0.5rem; }

.min-h-screen { min-height: 100vh; }
.min-h-\[360px\] { min-height: 360px; }

.w-full { width: 100%; }
.w-px { width: 1px; }
.w-screen { width: 100vw; }

.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-\[600px\] { max-width: 600px; }
.max-w-\[800px\] { max-width: 800px; }
.max-w-\[900px\] { max-width: 900px; }
.max-w-\[1200px\] { max-width: 1200px; }
.max-w-full { max-width: 100%; }

.max-h-\[90vh\] { max-height: 90vh; }

.flex-grow { flex-grow: 1; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

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

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

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

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-auto { overflow-y: auto; }

.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 1.25rem; }
.rounded-xl { border-radius: 1.5rem; }
.rounded-2xl { border-radius: 2rem; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-none { border-style: none; }

.border-border-light { border-color: var(--border-light); }
.border-black { border-color: #000; }
.border-gray-200 { border-color: #e5e7eb; }

.bg-background-light { background-color: var(--background-light); }
.bg-surface-light { background-color: var(--surface-light); }
.bg-primary { background-color: var(--primary); }
.bg-primary\/10 { background-color: rgb(236 72 153 / 0.1); }
.bg-black { background-color: #000; }
.bg-black\/60 { background-color: rgb(0 0 0 / 0.6); }
.bg-black\/80 { background-color: rgb(0 0 0 / 0.8); }
.bg-white { background-color: #fff; }
.bg-white\/10 { background-color: rgb(255 255 255 / 0.1); }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-\[\#dedede\] { background-color: #dedede; }
.bg-transparent { background-color: transparent; }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-primary { --tw-gradient-from: var(--primary); --tw-gradient-to: rgb(236 72 153 / 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-purple-500 { --tw-gradient-to: #a855f7; }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

.fill-black { fill: #000; }

.p-0 { padding: 0; }
.p-2 { padding: 0.5rem; }
.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; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.pt-4 { padding-top: 1rem; }
.pt-12 { padding-top: 3rem; }
.pb-8 { padding-bottom: 2rem; }

.text-left { text-align: left; }
.text-center { text-align: center; }

.font-display { font-family: 'Poppins', sans-serif; }
.font-body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-\[10px\] { font-size: 10px; }
.text-\[18px\] { font-size: 18px; }
.text-\[45px\] { font-size: 45px; }
.text-\[1\.2rem\] { font-size: 1.2rem; }
.text-\[2\.4rem\] { font-size: 2.4rem; }

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

.uppercase { text-transform: uppercase; }

.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.1\] { line-height: 1.1; }
.\!leading-none { line-height: 1 !important; }

.tracking-widest { letter-spacing: 0.1em; }

.text-text-main { color: var(--text-main); }
.text-text-secondary { color: var(--text-secondary); }
.text-text-secondary\/40 { color: rgb(85 85 85 / 0.4); }
.text-text-secondary\/50 { color: rgb(85 85 85 / 0.5); }
.text-text-secondary\/60 { color: rgb(85 85 85 / 0.6); }
.text-primary { color: var(--primary); }
.text-white { color: #fff; }
.text-white\/40 { color: rgb(255 255 255 / 0.4); }
.text-white\/10 { color: rgb(255 255 255 / 0.1); }
.text-black { color: #000; }
.text-transparent { color: transparent; }

.underline { text-decoration-line: underline; }
.decoration-white\/20 { text-decoration-color: rgb(255 255 255 / 0.2); }
.underline-offset-4 { text-underline-offset: 4px; }

.placeholder\:text-text-secondary\/50::placeholder { color: rgb(85 85 85 / 0.5); }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.shadow-soft { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.shadow-button-hover { box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25); }

.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }

.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

.duration-300 { transition-duration: 300ms; }
.ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); }

.-translate-x-1\/2 { transform: translateX(-50%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-y-\[4px\] { transform: translateY(4px); }

.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

.cursor-pointer { cursor: pointer; }

.resize-none { resize: none; }

.list-disc { list-style-type: disc; }
.list-none { list-style-type: none; }

.whitespace-nowrap { white-space: nowrap; }

.tabular-nums { font-variant-numeric: tabular-nums; }

/* Hover States */
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-primary-dark:hover { background-color: var(--primary-dark); }
.hover\:bg-black:hover { background-color: #000; }
.hover\:bg-primary\/10:hover { background-color: rgb(236 72 153 / 0.1); }
.hover\:bg-white\/10:hover { background-color: rgb(255 255 255 / 0.1); }

.hover\:border-black:hover { border-color: #000; }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-white:hover { color: #fff; }
.hover\:text-text-main:hover { color: var(--text-main); }

.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.hover\:shadow-button-hover:hover { box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25); }

.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-0:focus { box-shadow: none; }

.focus-within\:border-primary\/50:focus-within { border-color: rgb(236 72 153 / 0.5); }

/* Group Hover States */
.group:hover .group-hover\:bg-primary { background-color: var(--primary); }
.group:hover .group-hover\:text-primary { color: var(--primary); }
.group:hover .group-hover\:text-white { color: #fff; }
.group:hover .group-hover\:shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.group:hover .group-hover\:-translate-y-1 { transform: translateY(-0.25rem); }
.group:hover .group-hover\:animate-bounce { animation: bounce 1s infinite; }

.group[open] .group-open\:rotate-180 { transform: rotate(180deg); }

/* Responsive Design */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:gap-6 { gap: 1.5rem; }
    .sm\:gap-8 { gap: 2rem; }
    .sm\:inline { display: inline; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

@media (min-width: 768px) {
    .md\:gap-6 { gap: 1.5rem; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:leading-\[1\] { line-height: 1; }
    .md\:block { display: block; }
}

@media (min-width: 1024px) {
    .lg\:pt-20 { padding-top: 5rem; }
    .lg\:text-\[4rem\] { font-size: 4rem; }
}

/* Important Overrides */
.\!text-\[2\.3rem\] { font-size: 2.3rem !important; }

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* Custom Styles from inline <style> */
.logo-text, .logo-text span {
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.6rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
}

h1, h2, h3, h4, summary, button {
    line-height: 1.2;
}

h1, h3, h4, button {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
}

h2 {
    font-family: 'Poppins', sans-serif !important;
}

button span:not(.material-symbols-outlined) {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
}

summary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

p, span, div, a, input {
    font-family: "Open Sans", system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 1rem;
}

textarea {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: -0.015em;
    word-spacing: 0.05em;
}

@media (min-width: 768px) {
    p, span, div, a, button, input {
        font-size: 1.125rem;
    }
}

textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

.toast {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

::selection {
    background-color: rgba(236, 72, 153, 0.2);
    color: inherit;
}

.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background-color: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: calc(100%);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
    pointer-events: none;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
