/* Supplement detail page specific styles */

/* Layout adjustments */
.supplement-hero-grid {
    display: grid;
    gap: clamp(1.5rem, 2vw + 1rem, 3rem);
    align-items: start;
}

@media (min-width: 768px) {
    .supplement-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.supplement-detail-grid {
    display: grid;
    gap: clamp(2rem, 1.5vw + 1.5rem, 3.5rem);
    align-items: start;
}

@media (min-width: 1024px) {
    .supplement-detail-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.supplement-description-card {
    padding: clamp(1.75rem, 2vw + 1.25rem, 2.75rem);
}

@media (max-width: 640px) {
    .supplement-description-card {
        padding: 1.75rem;
    }
}

.supplement-main-column > * + * {
    margin-top: clamp(2rem, 1.5vw + 1.5rem, 3rem);
}

.supplement-tab-card {
    display: flex;
    flex-direction: column;
}

.supplement-tab-panel {
    padding: clamp(1.75rem, 2vw + 1.25rem, 2.75rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 1.5vw + 1.5rem, 3rem);
}

@media (max-width: 640px) {
    .supplement-tab-panel {
        padding: 1.75rem;
        gap: 2rem;
    }
}

/* Cards */
.supplement-spec-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: clamp(1.5rem, 1.3vw + 1.25rem, 2.25rem);
    border-radius: 20px;
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.supplement-spec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.15);
}

.supplement-spec-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.27);
}

.supplement-spec-icon-svg {
    width: 22px;
    height: 22px;
    color: inherit;
}

.supplement-spec-text {
    color: #1f2937;
    font-weight: 600;
    line-height: 1.6;
}

.supplement-ingredients-box {
    padding: clamp(1.5rem, 1.4vw + 1.2rem, 2.25rem);
    border-radius: 20px;
    background:
        radial-gradient(circle at 85% -10%, rgba(96, 165, 250, 0.32) 0%, rgba(96, 165, 250, 0) 65%),
        radial-gradient(circle at -10% 110%, rgba(16, 185, 129, 0.25) 0%, rgba(16, 185, 129, 0) 70%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.supplement-usage-card {
    padding: clamp(1.5rem, 1.4vw + 1.2rem, 2.25rem);
    border-radius: 18px;
}

.supplement-warning-card {
    padding: clamp(1.5rem, 1.4vw + 1.2rem, 2.25rem);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.15);
}

/* Utilities */
.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #60a5fa, #c084fc, #f472b6) border-box;
}

/* Animations */
@keyframes dna-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.dna-icon::before {
    animation: dna-pulse 2s ease-in-out infinite;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.tab-button.active {
    color: #ed7d47;
    background-color: white;
    border-bottom-color: #ed7d47;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
