/**
 * FounderSEO Custom Styles
 * Modern 2026 Design System
 *
 * Colors:
 * - Primary Blue: #0032A0 (Pantone 286 C)
 * - Accent Orange: #FF6A14 (Pantone 1585 C)
 * - Background: #F0EEE9 (Cloud Dancer)
 * - Dark: #1a1a2e
 */

/* Smooth scrolling with reduced motion support */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid #0032A0;
    outline-offset: 2px;
}

/* Selection styling */
::selection {
    background-color: #0032A0;
    color: white;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #F0EEE9;
}

::-webkit-scrollbar-thumb {
    background: #0032A0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #002480;
}

/* Typography enhancements */
.prose {
    --tw-prose-links: #0032A0;
}

.prose a {
    text-decoration-color: rgba(0, 50, 160, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.prose a:hover {
    text-decoration-color: #0032A0;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video card click-to-load styles */
.video-card .aspect-video {
    position: relative;
}

.video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Audio player custom styling */
audio {
    width: 100%;
    height: 48px;
}

audio::-webkit-media-controls-panel {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form input transitions */
input,
textarea,
select {
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Button hover effects */
.btn-primary {
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.1s;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Card hover effects */
.journal-card,
.podcast-card,
.offer-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.journal-card:hover,
.podcast-card:hover {
    transform: translateY(-2px);
}

/* Details/Summary accordion styling */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    margin-bottom: 0;
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Skip link styling */
.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;
}

.sr-only:focus-within,
.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Print styles */
@media print {
    header,
    footer,
    nav,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}
