/* Custom Styles for Process Hacker Website */

/* Custom utility classes - CSS only (no @apply for CDN compatibility) */
.container-custom {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-custom {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.heading-primary {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    color: rgb(17 24 39);
}

@media (min-width: 768px) {
    .heading-primary {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .heading-primary {
        font-size: 3.75rem;
        line-height: 1;
    }
}

.heading-secondary {
    margin-bottom: 1.5rem;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: rgb(17 24 39);
}

@media (min-width: 768px) {
    .heading-secondary {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

.heading-tertiary {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    color: rgb(17 24 39);
}

@media (min-width: 768px) {
    .heading-tertiary {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgb(37 99 235);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.2s;
}

.btn-primary:hover {
    background-color: rgb(29 78 216);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgb(229 231 235);
    color: rgb(31 41 55);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.2s;
}

.btn-secondary:hover {
    background-color: rgb(209 213 219);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    color: rgb(17 24 39);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Enhanced hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Glass morphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shine effect */
.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.shine:hover::before {
    left: 100%;
}

/* Grid pattern background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Enhanced carousel indicators */
.carousel-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

.carousel-indicator:hover {
    transform: scale(1.5);
}

/* Smooth image transitions */
#screenshot-carousel img {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Enhanced navigation */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #2563eb, #4f46e5);
    transition: transform 0.3s ease, width 0.3s ease;
}

nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
    width: 80%;
}

/* Hero Section Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-button {
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-button:hover {
    background-color: rgb(249 250 251);
}

.faq-button svg {
    transition: transform 0.3s ease;
}

.faq-button[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content:not(.hidden) {
    max-height: 2000px;
    padding-top: 0;
    padding-bottom: 1.5rem;
}

.faq-content.hidden {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Prose styles for content */
.prose {
    color: rgb(55 65 81);
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: rgb(17 24 39);
}

.prose img {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    /* Reduce padding on mobile */
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    /* Better spacing for mobile */
    .container-custom {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Disable hover effects on touch devices */
    .hover-lift:active {
        transform: translateY(-4px);
    }
    
    /* FAQ mobile adjustments */
    .faq-button {
        padding: 1rem;
    }
    
    .faq-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}