/*
Theme Name: Cros Browser AI Chat Child
Theme URI: https://ai-chat-ext.kouider.de
Description: Child theme of Twenty Twenty-Five for the AI Browser Chat plugin landing page
Author: Ahmad Kouider
Author URI: https://kouider.de
Template: twentytwentyfive
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cros-ai-chat-child
*/

:root {
    --cros-primary: #4f46e5;
    --cros-primary-end: #7c3aed;
    --cros-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.has-primary-gradient-background {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.wp-block-cover .wp-block-cover__inner-container a:not(.wp-block-button__link) {
    color: #c7d2fe;
}

.wp-block-column[style*="border-radius: 16px"]:hover {
    border-color: #c7d2fe !important;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
    transition: all 0.2s ease;
}

.has-primary-gradient-background.wp-block-cover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
}

footer a {
    color: #4f46e5;
    text-decoration: none;
}
footer a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

html {
    scroll-behavior: smooth;
}

.wp-site-blocks > * + * {
    margin-block-start: 0 !important;
}
.wp-site-blocks > header,
.wp-site-blocks > footer {
    margin: 0 !important;
}
.wp-site-blocks > main {
    margin: 0 !important;
}

/* ===== STICKY FLOATING HEADER ===== */

body.home .wp-site-blocks > header.wp-block-template-part {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    padding: 12px 16px !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none;
}

body.home .wp-site-blocks > header.wp-block-template-part > * {
    pointer-events: auto;
}

#cros-header {
    max-width: 1280px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.6);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#cros-header.cros-scrolled {
    max-width: 100%;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.04);
    border-color: rgba(229, 231, 235, 0.9);
    padding: 6px 20px;
}

#cros-header .wp-block-site-title {
    margin: 0;
}

body.home .wp-site-blocks {
    padding-top: 72px;
}

@media (max-width: 781px) {
    body.home .wp-site-blocks > header.wp-block-template-part {
        padding: 8px 12px !important;
    }
    #cros-header {
        padding: 8px 16px;
        border-radius: 16px;
    }
    #cros-header .wp-block-site-title a {
        font-size: 1.1rem;
    }
    #cros-header.cros-scrolled .wp-block-site-title a {
        font-size: 1rem;
    }
    #cros-header.cros-scrolled {
        padding: 4px 12px;
        border-radius: 12px;
    }
    body.home .wp-site-blocks {
        padding-top: 64px;
    }
}

/* ===== END STICKY HEADER ===== */

/* Responsive: center hero on mobile */
@media (max-width: 781px) {
    .hero-section .wp-block-columns {
        flex-direction: column-reverse !important;
    }
    .hero-section .wp-block-column {
        text-align: center !important;
        flex-basis: 100% !important;
    }
    .hero-section .wp-block-buttons {
        justify-content: center !important;
    }
    .hero-section h1 {
        text-align: center !important;
    }
    .hero-section p {
        text-align: center !important;
    }
    .hero-section .wp-block-image {
        margin-bottom: 2rem;
    }
    .hero-section .wp-block-image img {
        max-width: 280px !important;
        width: 100% !important;
        height: auto !important;
    }
    footer .wp-block-group.alignfull {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center !important;
    }
}

@media (max-width: 781px) {
    .md-flex-col {
        flex-direction: column !important;
    }
    .md-text-center {
        text-align: center !important;
    }
    .md-justify-center {
        justify-content: center !important;
    }
    .md-mb-8 {
        margin-bottom: 2rem !important;
    }
}
