/**
 * WhiteOwl Blog Theme - Main Stylesheet
 */

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Bricolage Grotesque', 'Arial', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    background-color: #ffffff;
}

/* Responsive Utilities */
.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    .md\:block {
        display: block !important;
    }
    
    .md\:hidden {
        display: none !important;
    }
}

.block {
    display: block !important;
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }
}

/* Header Styles */
.site-header {
    position: fixed;
    top: -5px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    transition: background-color 0.3s ease;
    background-color: white;
    overflow: visible;
    padding-bottom: 0;
    min-height: 72px;
}

.curvy-header {
    position: relative;
}

/* Header wave SVG - positioned at bottom of header */
.header-wave-bg {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.header-wave-bg img {
    width: 100%;
    height: 72px;
    object-fit: cover;
    object-position: bottom;
    display: block;
    vertical-align: bottom;
}

/* Header content wrapper - white background on desktop so text is readable over wave */
@media (min-width: 1024px) {
    .header-content-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
        background-color: white;
    }
}

/* Ensure header has enough height to show wave (72px SVG height + padding) */
.site-header {
    min-height: calc(72px + 1rem); /* 72px SVG + padding */
}

@media (min-width: 1024px) {
    .header-wave-bg {
        display: block !important;
    }
}

@media (max-width: 1023px) {
    .header-wave-bg {
        display: none !important;
    }
}

.header-inter-font {
    font-family: 'Inter', sans-serif !important;
}

.curvy-header {
    position: relative;
}

/* White top padding only - Desktop only */
@media (min-width: 1024px) {
    .white-top-padding {
        background: linear-gradient(to bottom, white 0.75rem, transparent 0.5rem);
    }
}

/* Diagonal swipe button effect */
.demo-diagonal-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.demo-diagonal-btn > * {
    position: relative;
    z-index: 2;
}

.demo-diagonal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -3rem;
    border-right: 3rem solid transparent;
    border-bottom: 4rem solid rgba(15, 23, 42, 0.95);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 1;
}

.demo-diagonal-btn:hover::before {
    transform: translateX(0);
}

/* Navigation link hover and active effects */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #0055FF !important;
    transform: translateY(-1px);
}

.nav-link:active {
    color: #0055FF !important;
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.nav-link.active {
    color: #0055FF !important;
}

/* Icon color change on hover and click */
.nav-link:hover .nav-icon-path,
.nav-link:active .nav-icon-path {
    fill: #0055FF !important;
    transition: fill 0.3s ease;
}

.nav-link:hover svg,
.nav-link:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon-img {
    opacity: 1 !important;
    filter: brightness(0) saturate(100%) invert(27%) sepia(100%) saturate(7500%) hue-rotate(220deg) brightness(100%) contrast(100%);
}

.nav-link:active .nav-icon-img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(100%) saturate(7500%) hue-rotate(220deg) brightness(100%) contrast(100%);
}

.nav-link.active .nav-icon-path {
    fill: #0055FF !important;
    transition: fill 0.3s ease;
}

/* Mobile nav link effects */
.mobile-nav-link {
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.mobile-nav-link:hover {
    transform: translateX(4px);
    color: #0055FF !important;
}

.mobile-nav-link:hover svg {
    transform: scale(1.1) translateX(2px);
}

.mobile-nav-link:hover svg path {
    stroke: #0055FF !important;
    fill: #0055FF !important;
}

.mobile-nav-link:active {
    transform: translateX(2px);
    color: #0055FF !important;
}

.mobile-nav-link:active svg path {
    stroke: #0055FF !important;
    fill: #0055FF !important;
}

.mobile-nav-link.active {
    color: #0055FF !important;
}

.mobile-nav-link.active svg path {
    stroke: #0055FF !important;
    fill: #0055FF !important;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-section .logo-link {
    display: inline-block;
}

.logo {
    height: 2.5rem;
    width: auto;
}

.logo-white {
    display: block;
}

.logo-black {
    display: none;
}

.site-header.scrolled .logo-white {
    display: none;
}

.site-header.scrolled .logo-black {
    display: block;
}

/* Navigation */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
}

.nav-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.625rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    position: relative;
}

@media (min-width: 768px) {
    .nav-link {
        font-size: 0.6875rem;
    }
}

@media (min-width: 1024px) {
    .nav-link {
        font-size: 0.75rem;
    }
}

@media (min-width: 1280px) {
    .nav-link {
        font-size: 0.875rem;
    }
}

.nav-link:hover {
    color: #0055FF !important;
    transform: translateY(-1px);
}

.nav-link:active {
    color: #0055FF !important;
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.nav-link.active {
    color: #0055FF !important;
}

/* CTA Buttons */
.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    display: none;
}

@media (min-width: 640px) {
    .btn-login {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #4b5563;
        text-decoration: none;
        font-size: 0.625rem;
        font-weight: 500;
        padding: 0.625rem 0;
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: 'Inter', sans-serif;
    }
}

@media (min-width: 1024px) {
    .btn-login {
        font-size: 0.875rem;
    }
}

.btn-free-account {
    display: none;
}

@media (min-width: 1024px) {
    .btn-free-account {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
        background: linear-gradient(to right, #a855f7, #7c3aed);
        color: white;
        padding: 0.375rem 0.75rem;
        border-radius: 9999px;
        border: none;
        font-size: 0.625rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Inter', sans-serif;
    }
    
    @media (min-width: 1280px) {
        .btn-free-account {
            font-size: 0.875rem;
            padding: 0.5rem 1rem;
            gap: 0.75rem;
        }
    }
    
    .btn-free-account:hover {
        background: linear-gradient(to right, #9333ea, #6d28d9);
    }
}

.btn-mobile-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .btn-mobile-menu {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-link {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #0055FF;
}

/* Main Content */
.site-main {
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .site-main {
        padding-top: 20px; /* Account for wave height */
    }
}

/* Hero Section */
.hero-container {
    position: relative;
    overflow: hidden;
}

/* Parallax Slides */
.parallax-slide-1,
.parallax-slide-2 {
    transition: transform 0.1s linear;
}

/* Shade Animations */
@keyframes moveLeftToRight {
    0% { transform: translateX(-100%); }
    20% { transform: translateX(50%); }
    40% { transform: translateX(80%); }
    60% { transform: translateX(120%); }
    80% { transform: translateX(180%); }
    90% { transform: translateX(210%); }
    100% { transform: translateX(200%); }
}

@keyframes moveRightToLeft {
    0% { transform: translateX(200%); }
    20% { transform: translateX(50%); }
    40% { transform: translateX(20%); }
    60% { transform: translateX(-20%); }
    80% { transform: translateX(-80%); }
    90% { transform: translateX(-110%); }
    100% { transform: translateX(-100%); }
}

.shade-animation-left {
    animation: moveLeftToRight 15s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    mix-blend-mode: soft-light;
    filter: blur(2px) brightness(0.8) contrast(1.2);
}

.shade-animation-right {
    animation: moveRightToLeft 15s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    mix-blend-mode: soft-light;
    filter: blur(2px) brightness(0.8) contrast(1.2);
}

/* CTA Button Styles */
.cta-button {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(94, 170, 158, 0.8);
    transition: all 0.3s ease;
}

.cta-button:hover {
    border-color: rgba(94, 170, 158, 0.8);
}

.arrow-icon {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.4s ease;
}

.cta-button:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Shimmer Button */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.shimmer-button {
    position: relative;
    overflow: hidden;
}

.shimmer-button span {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        90deg,
        #171717 0%,
        #171717 35%,
        #171717 42%,
        rgba(192, 192, 192, 0.8) 46%,
        rgba(255, 255, 255, 1) 50%,
        rgba(192, 192, 192, 0.8) 54%,
        #171717 58%,
        #171717 65%,
        #171717 100%
    );
    background-size: 200% 100%;
    background-position: 200% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    color: #171717;
}

@keyframes arrowMove {
    0% { transform: translateX(0); }
    50% { transform: translateX(10px); }
    100% { transform: translateX(0); }
}

.arrow-container {
    position: relative;
    display: flex;
    align-items: center;
    animation: arrowMove 1.5s ease-in-out infinite;
}

.arrow-container svg:not(:first-child) {
    margin-left: -8px;
}

/* Sticky Carousel */
.sticky-carousel-container {
    position: sticky;
    left: 0;
    right: 0;
    top: clamp(3rem, 5vh, 2rem);
    z-index: 10;
    min-height: 85vh;
}

@media (max-width: 640px) {
    .sticky-carousel-container {
        top: clamp(2rem, 4vh, 1.5rem);
        min-height: 80vh;
    }
}

/* Accordion Styles */
.accordion-button {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 1rem;
}

.accordion-content {
    padding: 0 1rem 1rem;
}

.accordion-content.hidden {
    display: none;
}

/* About Owl Float Animation */
@keyframes gentleFloatY {
    0% { transform: translateY(-8px); }
    50% { transform: translateY(8px); }
    100% { transform: translateY(-8px); }
}

.about-owl-float {
    animation: gentleFloatY 8s ease-in-out infinite;
}

/* Comparison Table Shimmer */
@keyframes shimmer {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

.shimmer-text {
    background: linear-gradient(90deg, #60a5fa 0%, #60a5fa 30%, #ffffff 50%, #60a5fa 70%, #60a5fa 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    display: inline-block;
}

/* Footer */
.site-footer {
    background: white;
    padding: 2rem 1rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-copyright {
    color: #4b5563;
    font-size: 0.875rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: -1;
}

@media (min-width: 768px) {
    .footer-logo {
        order: 0;
    }
}

.footer-logo-img {
    height: 2.5rem;
}

.footer-iso-img {
    height: 5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-links {
        flex-direction: row;
        gap: 2rem;
    }
}

.footer-nav-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #000;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-link img {
    height: 1.25rem;
    width: 1.25rem;
    transition: opacity 0.3s ease;
}

.social-link:hover img {
    opacity: 0.7;
}

/* Utility Classes */
.bg-gray-100 {
    background-color: #f3f4f6;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
}

@media (min-width: 640px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
}

/* Blog Page Wrapper */
.blog-page-wrapper {
    min-height: 100vh;
    background-color: #ffffff;
}

/* Blog Listing Styles */
.blog-listing-section {
    position: relative;
}

.blog-hero-header {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.blog-hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.blog-hero-header img {
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

.blog-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: white;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.blog-card img {
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* 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;
}

/* Container utility */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Single Post Styles */
.single-post-wrapper {
    background-color: #ffffff;
}

.featured-image-hero {
    position: relative;
}

.prose {
    color: #374151;
    line-height: 1.75;
}

.prose-purple a {
    color: #7c3aed;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.prose p {
    margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose a {
    color: #7c3aed;
    text-decoration: underline;
}

.prose a:hover {
    color: #6d28d9;
}

/* Pagination Styles */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a {
    background-color: #f3f4f6;
    color: #374151;
}

.pagination a:hover {
    background-color: #7c3aed;
    color: #ffffff;
}

.pagination .current {
    background-color: #7c3aed;
    color: #ffffff;
}
