/* Default template styles - uses theme CSS variables */

/* Body defaults */
body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

/* Surface/card styles */
.default-surface {
    background-color: hsl(var(--card));
}

.default-border {
    border-color: hsl(var(--border));
}

/* Text styles */
.default-text-muted {
    color: hsl(var(--muted-foreground));
}

/* Accent colors - mapped to theme primary */
.default-accent {
    color: hsl(var(--primary));
}

.default-accent-bg {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.default-accent-bg:hover {
    background-color: hsl(var(--primary) / 0.9);
}

/* Typography */
.prose-default a {
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose-default a:hover {
    color: hsl(var(--primary) / 0.8);
}

.prose-default strong {
    font-weight: 600;
}

.prose-default h1,
.prose-default h2,
.prose-default h3,
.prose-default h4 {
    color: hsl(var(--foreground));
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* ============================================
   Standard Button System
   Templates can override these styles
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 150ms ease;
    cursor: pointer;
    text-decoration: none;
    border: none;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

/* Primary - filled with brand color */
.btn-primary {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

/* Secondary - muted fill */
.btn-secondary {
    background-color: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

/* Outline - transparent with border */
.btn-outline {
    background-color: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* Ghost - transparent, no border */
.btn-ghost {
    background-color: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background-color: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* Pill - fully rounded */
.btn-pill {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: 9999px;
}

.btn-pill:hover {
    background-color: hsl(var(--primary) / 0.9);
}

/* 3D - with bottom border effect */
.btn-3d {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-bottom: 4px solid hsl(var(--primary) / 0.7);
}

.btn-3d:hover {
    background-color: hsl(var(--primary) / 0.9);
    border-bottom-color: hsl(var(--primary) / 0.5);
}

.btn-3d:active {
    border-bottom-width: 2px;
    transform: translateY(2px);
}

/* Elevated - with shadow */
.btn-elevated {
    background-color: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.btn-elevated:hover {
    background-color: hsl(var(--muted));
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Link style - looks like a link */
.btn-link {
    background-color: transparent;
    color: hsl(var(--primary));
    text-decoration: underline;
    text-underline-offset: 4px;
    padding: 0.625rem 0.5rem;
}

.btn-link:hover {
    color: hsl(var(--primary) / 0.8);
}

/* Size variants */
.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* ============================================
   Navbar Link Hover Effects
   Used with navbar linkHoverEffect option
   ============================================ */

/* Fade - simple color transition (default behavior via Tailwind classes) */
.nav-link-fade {
    /* Uses existing transition-all and hover color classes */
}

/* Underline Slide - underline slides in from left */
.nav-link-underline-slide {
    position: relative;
}

.nav-link-underline-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width var(--nav-transition-duration, 300ms) ease;
}

.nav-link-underline-slide:hover::after {
    width: 100%;
}

/* Underline Grow - underline grows from center */
.nav-link-underline-grow {
    position: relative;
}

.nav-link-underline-grow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: all var(--nav-transition-duration, 300ms) ease;
    transform: translateX(-50%);
}

.nav-link-underline-grow:hover::after {
    width: 100%;
}

/* Background Fill - background fades in */
.nav-link-bg-fill {
    position: relative;
    z-index: 1;
}

.nav-link-bg-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: hsl(var(--accent));
    border-radius: 0.375rem;
    opacity: 0;
    z-index: -1;
    transition: opacity var(--nav-transition-duration, 300ms) ease;
}

.nav-link-bg-fill:hover::before {
    opacity: 1;
}

/* Glow - text glow effect */
.nav-link-glow {
    transition: text-shadow var(--nav-transition-duration, 300ms) ease,
                color var(--nav-transition-duration, 300ms) ease;
}

.nav-link-glow:hover {
    text-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
}

/* Lift - subtle lift transform */
.nav-link-lift {
    transition: transform var(--nav-transition-duration, 300ms) ease,
                color var(--nav-transition-duration, 300ms) ease;
}

.nav-link-lift:hover {
    transform: translateY(-2px);
}

/* Transition duration CSS custom property support */
.duration-150 {
    --nav-transition-duration: 150ms;
}

.duration-300 {
    --nav-transition-duration: 300ms;
}

.duration-500 {
    --nav-transition-duration: 500ms;
}
