/* General Body and Font Styles */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Nunito', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
}

/* --- Navigation Styles --- */
.main-nav-wrapper {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}
.nav-link {
    @apply py-2 px-3 text-white rounded-md text-sm font-medium transition-colors;
}
.nav-link:hover {
    @apply bg-zinc-700;
}
.nav-link.active {
    @apply bg-red-600 text-white;
}
.mobile-nav-link {
    @apply block py-3 px-4 text-base font-medium text-white bg-zinc-800 border-b border-zinc-700;
}
.mobile-nav-link:hover {
    @apply bg-zinc-700;
}
.mobile-nav-link.active {
    @apply bg-red-600;
}


/* --- Homepage Specific Styles --- */
.hero-section {
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)), url('https://placehold.co/1920x1080/18181b/0a0a0a?text=Fitness+Fuel') no-repeat center center;
    background-size: cover;
    position: relative;
}
.cta-button {
    @apply bg-red-600 text-white font-bold py-3 px-8 rounded-lg text-lg transition-transform transform hover:scale-105;
}
.feature-card {
    @apply bg-zinc-900 border border-zinc-800 p-8 rounded-lg text-center transition-all duration-300 hover:border-red-500 hover:transform hover:-translate-y-2;
}
.feature-icon {
    @apply w-16 h-16 rounded-full flex items-center justify-center mx-auto;
}


/* --- General Content & Card Styles --- */
.info-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
}
.info-card[data-builder-id] {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card[data-builder-id]:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.1);
}
.info-card .p-6 {
    flex-grow: 1;
}

.recipe-card {
    background-color: #18181b;
    border: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out, opacity 0.6s ease-out;
}
.recipe-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.recipe-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 30px rgba(239, 68, 68, 0.15), 0 8px 15px rgba(239, 68, 68, 0.1);
}
.recipe-card h3 {
    color: #ef4444;
}
#recipes, #desserts, #snacks {
    background-color: #0a0a0a;
    background-image: radial-gradient(rgba(239, 68, 68, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- Modal Styles --- */
#recipe-modal-overlay {
    transition: opacity 0.3s ease-in-out;
}
#recipe-modal-content {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.nutrition-item {
    border: 1px solid #27272a;
    border-left-width: 3px;
    border-left-color: #ef4444;
}
#nutrition-calculator tbody tr.selectable-row {
    cursor: pointer;
}
#modal-bg-canvas, #pro-tips-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 0.5rem;
    pointer-events: none;
}
#modal-progress-container {
    position: absolute;
    top: 0.5rem;
    left: 50%;
    width: 80%;
    max-width: 400px;
    height: 24px;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
#modal-barbell {
    width: 100%;
    height: 4px;
    background-color: #27272a;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-plate-set { display: flex; align-items: center; }
.modal-plate {
    width: 8px;
    height: 20px;
    background-color: #ef4444;
    border-radius: 2px;
    margin: 0 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-plate.loaded { transform: scaleX(1); }


/* --- Accordion Styles --- */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
}
.accordion-item.active .accordion-content {
    max-height: 500px; /* Adjust as needed */
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
.accordion-arrow {
    transition: transform 0.3s ease-in-out;
}
.accordion-item.active .accordion-arrow {
    transform: rotate(180deg);
}


/* --- Utility Styles --- */
ul, ol {
    list-style-position: outside;
    padding-left: 1.25rem;
}
li {
    padding-left: 0.5rem;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
