/* Critical CSS */
/* --- Rules from animate.min.css --- */
:root{--animate-duration:1s;--animate-delay:1s;--animate-repeat:1}.animate__animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-duration:var(--animate-duration);animation-duration:var(--animate-duration);-webkit-animation-fill-mode:both;animation-fill-mode:both}
.animate__fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}

/* --- Rules from all.min.css --- */
.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}
.fa-arrow-left:before{content:"\f060"}
.fa-bars:before{content:"\f0c9"}
.fa-brain:before{content:"\f5dc"}
.fa-building:before{content:"\f1ad"}
.fa-check-circle:before{content:"\f058"}
.fa-chevron-down:before{content:"\f078"}
.fa-envelope:before{content:"\f0e0"}
.fa-external-link-alt:before{content:"\f35d"}
.fa-flask:before{content:"\f0c3"}
.fa-globe:before{content:"\f0ac"}
.fa-home:before{content:"\f015"}
.fa-instagram:before{content:"\f16d"}
.fa-map-marker-alt:before{content:"\f3c5"}
.fa-pills:before{content:"\f484"}
.fa-question-circle:before{content:"\f059"}
.fa-search:before{content:"\f002"}
.fa-star:before{content:"\f005"}
.fa-tag:before{content:"\f02b"}
.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}
.fab{font-family:"Font Awesome 5 Brands"}
.fab,.far{font-weight:400}
.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900}

/* --- Rules from tailwind.min.css --- */
*,::after,::before{box-sizing:border-box}html{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}body{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif,'Apple Color Emoji','Segoe UI Emoji'}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}
blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}button{background-color:transparent;background-image:none}
ol,ul{list-style:none;margin:0;padding:0}html{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";line-height:1.5}body{font-family:inherit;line-height:inherit}*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}
img{border-style:solid}
input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{padding:0;line-height:inherit;color:inherit}
audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}
*,::after,::before{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}.container{width:100%}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}
.mx-2{margin-left:.5rem;margin-right:.5rem}
.mx-auto{margin-left:auto;margin-right:auto}
.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}
.mt-6{margin-top:1.5rem}
.mt-8{margin-top:2rem}
.mt-auto{margin-top:auto}
.mr-2{margin-right:.5rem}
.mr-4{margin-right:1rem}
.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}
.mb-6{margin-bottom:1.5rem}
.mb-8{margin-bottom:2rem}
.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}
.block{display:block}.inline-block{display:inline-block}
.flex{display:flex}
.grid{display:grid}
.hidden{display:none}
.h-10{height:2.5rem}
.h-32{height:8rem}
.h-48{height:12rem}
.h-64{height:16rem}
.h-full{height:100%}
.min-h-screen{min-height:100vh}
.w-full{width:100%}
.max-w-none{max-width:none}
.flex-grow{flex-grow:1}
.cursor-pointer{cursor:pointer}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.flex-col{flex-direction:column}
.flex-wrap{flex-wrap:wrap}
.items-center{align-items:center}
.justify-between{justify-content:space-between}
.gap-1{gap:.25rem}
.gap-4{gap:1rem}
.gap-6{gap:1.5rem}
.gap-8{gap:2rem}
.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}
.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}
.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}
.overflow-hidden{overflow:hidden}
.rounded-md{border-radius:.375rem}.rounded-lg{border-radius:.5rem}
.rounded-full{border-radius:9999px}
.border-0{border-width:0}
.border{border-width:1px}
.border-t{border-top-width:1px}
.border-gray-200{--tw-border-opacity:1;border-color:rgba(229,231,235,var(--tw-border-opacity))}
.border-gray-700{--tw-border-opacity:1;border-color:rgba(55,65,81,var(--tw-border-opacity))}
.bg-white{--tw-bg-opacity:1;background-color:rgba(255,255,255,var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgba(249,250,251,var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgba(243,244,246,var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity:1;background-color:rgba(229,231,235,var(--tw-bg-opacity))}
.object-cover{object-fit:cover}
.p-3{padding:.75rem}.p-4{padding:1rem}
.p-6{padding:1.5rem}
.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}
.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}
.py-8{padding-top:2rem;padding-bottom:2rem}
.py-10{padding-top:2.5rem;padding-bottom:2.5rem}
.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}
.pt-6{padding-top:1.5rem}
.text-left{text-align:left}.text-center{text-align:center}
.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.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-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}
.text-white{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}
.text-gray-300{--tw-text-opacity:1;color:rgba(209,213,219,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgba(156,163,175,var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgba(107,114,128,var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgba(75,85,99,var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgba(55,65,81,var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgba(31,41,55,var(--tw-text-opacity))}
.hover\:text-white:hover{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity))}
*,::after,::before{--tw-shadow:0 0 #0000}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}
.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0, 0, 0, 0.1),0 2px 4px -1px rgba(0, 0, 0, 0.06);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}
.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}
*,::after,::before{--tw-ring-inset:var(--tw-empty, );/*!*//*!*/--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59, 130, 246, 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000}
.transition{transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4,0,0.2,1);transition-duration:150ms}.transition-colors{transition-property:background-color,border-color,color,fill,stroke;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:.3s}

/* --- @media rules from tailwind.min.css --- */
@media (min-width:640px) {
.container{max-width:640px}
.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (min-width:768px) {
.container{max-width:768px}
.md\:not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}
.md\:mt-0{margin-top:0}
.md\:ml-4{margin-left:1rem}
.md\:block{display:block}.md\:inline-block{display:inline-block}
.md\:flex{display:flex}
.md\:hidden{display:none}
.md\:h-12{height:3rem}
.md\:h-full{height:100%}
.md\:w-1\/3{width:33.333333%}.md\:w-2\/3{width:66.666667%}
.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.md\:flex-row{flex-direction:row}
.md\:items-center{align-items:center}
.md\:text-2xl{font-size:1.5rem;line-height:2rem}
.md\:text-4xl{font-size:2.25rem;line-height:2.5rem}
}

@media (min-width:1024px) {
.container{max-width:1024px}
.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media (min-width:1280px) {
.container{max-width:1280px}
}

@media (min-width:1536px) {
.container{max-width:1536px}
}

/* Main Styles */
/* 
 * Nutropica - Custom Tailwind Colors
 * This file defines custom color classes that extend Tailwind
 */

/* Primary Colors - Teal */
.text-primary-light {
    color: #3faf9f;
}
.bg-primary-light {
    background-color: #3faf9f;
}
.hover\:text-primary-light:hover {
    color: #3faf9f;
}
.hover\:bg-primary-light:hover {
    background-color: #3faf9f;
}
.focus\:ring-primary-light:focus {
    --tw-ring-color: #3faf9f;
}
.border-primary-light {
    border-color: #3faf9f;
}

.text-primary-dark {
    color: #369087;
}
.bg-primary-dark {
    background-color: #369087;
}
.hover\:text-primary-dark:hover {
    color: #369087;
}
.hover\:bg-primary-dark:hover {
    background-color: #369087;
}
.focus\:ring-primary-dark:focus {
    --tw-ring-color: #369087;
}
.border-primary-dark {
    border-color: #369087;
}

/* Secondary Colors - Purple */
.text-secondary-light {
    color: #9067c1;
}
.bg-secondary-light {
    background-color: #9067c1;
}
.hover\:text-secondary-light:hover {
    color: #9067c1;
}
.hover\:bg-secondary-light:hover {
    background-color: #9067c1;
}
.border-secondary-light {
    border-color: #9067c1;
}

.text-secondary-dark {
    color: #7759b4;
}
.bg-secondary-dark {
    background-color: #7759b4;
}
.hover\:text-secondary-dark:hover {
    color: #7759b4;
}
.hover\:bg-secondary-dark:hover {
    background-color: #7759b4;
}
.border-secondary-dark {
    border-color: #7759b4;
}

/* Cream Colors - Light Neutral */
.text-cream-light {
    color: #fcf9f3;
}
.bg-cream-light {
    background-color: #fcf9f3;
}
.border-cream-light {
    border-color: #fcf9f3;
}

.text-cream-dark {
    color: #e9e4df;
}
.bg-cream-dark {
    background-color: #e9e4df;
}
.border-cream-dark {
    border-color: #e9e4df;
}

/* Charcoal Colors - Dark Neutral */
.text-charcoal-light {
    color: #363635;
}
.bg-charcoal-light {
    background-color: #363635;
}
.border-charcoal-light {
    border-color: #363635;
}

.text-charcoal-dark {
    color: #29282a;
}
.bg-charcoal-dark {
    background-color: #29282a;
}
.border-charcoal-dark {
    border-color: #29282a;
}

/* High Contrast Variations for Accessibility */
.text-on-primary {
    color: white;
}
.text-on-secondary {
    color: white;
}
.text-on-cream {
    color: #29282a;
}
.text-on-charcoal {
    color: white;
}

/**
 * Nutropica Custom Styles
 */

:root {
    --primary-light: #3faf9f;
    --primary-dark: #369087;
    --secondary-light: #9067c1;
    --secondary-dark: #7759b4;
    --cream-light: #fcf9f3;
    --cream-dark: #e9e4df;
    --charcoal-light: #363635;
    --charcoal-dark: #29282a;
}
a.in-text {
    color: var(--primary-dark);
}   
a.in-text:hover {
    color: var(--primary-light);
}
/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--cream-light);
    color: var(--charcoal-light);
}

/* Custom Tailwind Extensions */
.bg-primary-light { background-color: var(--primary-light); }
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-secondary-light { background-color: var(--secondary-light); }
.bg-secondary-dark { background-color: var(--secondary-dark); }
.bg-cream-light { background-color: var(--cream-light); }
.bg-cream-dark { background-color: var(--cream-dark); }
.bg-charcoal-light { background-color: var(--charcoal-light); }
.bg-charcoal-dark { background-color: var(--charcoal-dark); }

.text-primary-light { color: var(--primary-light); }
.text-primary-dark { color: var(--primary-dark); }
.text-secondary-light { color: var(--secondary-light); }
.text-secondary-dark { color: var(--secondary-dark); }
.text-cream-light { color: var(--cream-light); }
.text-cream-dark { color: var(--cream-dark); }
.text-charcoal-light { color: var(--charcoal-light); }
.text-charcoal-dark { color: var(--charcoal-dark); }

.border-primary-light { border-color: var(--primary-light); }
.border-primary-dark { border-color: var(--primary-dark); }
.border-secondary-light { border-color: var(--secondary-light); }
.border-secondary-dark { border-color: var(--secondary-dark); }

/* Card Styles */
.nootropic-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nootropic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Progress Bar Styles */
.rank-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--cream-dark);
}

.rank-bar-fill {
    height: 100%;
    transition: width 0.5s ease;
}

/* Category Pills */
.category-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pill.primary {
    background-color: var(--primary-light);
    color: white;
}

.category-pill.secondary {
    background-color: var(--secondary-light);
    color: white;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Filter Section */
.filter-section {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
footer {
    background: #29282a;
}
.nootropic-card h3, header h1 {
    text-transform: capitalize;
}
.col-count-2{
    column-count: 1;
}
/* Mobile Optimizations */

@media (min-width: 768px) {
    .md\:text-white, .md\:text-cream-light {
        color: #fcf9f3;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .nootropic-card {
        margin-bottom: 1.5rem;
    }
    .col-count-2{
        column-count: 2;
    }
}
/* Custom CSS for Nutropica */

/* Scroll highlight animation */
@keyframes scroll-highlight-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(63, 175, 159, 0.1);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(63, 175, 159, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(63, 175, 159, 0);
    }
}

.scroll-highlight {
    animation: scroll-highlight-animation 2s ease-out;
    transition: all 0.3s ease;
}

/* Table of contents styling */
.table-of-contents {
    border-left: 3px solid #3faf9f;
}

.table-of-contents a {
    position: relative;
    transition: all 0.3s ease;
}

.table-of-contents a:before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #9067c1;
    transition: width 0.3s ease;
}

.table-of-contents a:hover:before {
    width: 100%;
}
body {
    padding-top: 72px;
}
body > header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9;
}
* {
    scroll-padding-top: 90px;
}
section strong, header strong {
    font-weight: 600;
}