/**
 * Coach Frank - Custom Styles
 * Additional styles that complement Tailwind CSS.
 */

/* =============================================================================
   Base Styles
   ============================================================================= */

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================================================
   Custom Animations
   ============================================================================= */

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Pulse animation for important elements */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(249, 115, 22, 0);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

/* =============================================================================
   Card Hover Effects
   ============================================================================= */

/* Gradient border on hover */
.card-hover-gradient {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
}

.card-hover-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(249, 115, 22, 0.3));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover-gradient:hover::before {
    opacity: 1;
}

/* =============================================================================
   Text Utilities
   ============================================================================= */

/* Line clamp utility (for text truncation) */
.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;
}

/* =============================================================================
   Step Counter Styles (for trick instructions)
   ============================================================================= */

/* Custom counter for ordered steps */
.step-list {
    counter-reset: step-counter;
}

.step-item {
    counter-increment: step-counter;
}

.step-item::before {
    content: counter(step-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: #f97316;
    color: white;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* =============================================================================
   Scrollbar Styling (Webkit browsers)
   ============================================================================= */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

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

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

/* =============================================================================
   Selection Styling
   ============================================================================= */

::selection {
    background-color: rgba(249, 115, 22, 0.3);
    color: #f3f4f6;
}

/* =============================================================================
   Focus Styles (Accessibility)
   ============================================================================= */

/* Better focus outline for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* =============================================================================
   Print Styles
   ============================================================================= */

@media print {
    body {
        background: white;
        color: black;
    }
    
    nav, footer, .no-print {
        display: none !important;
    }
}
