/**
 * AI Prompt Library - Custom Styles
 * @package AI_Prompt_Library
 */

/* === GLOBAL RESETS === */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === HEADER === */
.wp-block-group.has-dark-background-color {
    border: none !important;
}

.wp-block-navigation {
    gap: 8px !important;
}

.wp-block-navigation-link a {
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

.wp-block-navigation-link a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* === BUTTONS === */
.wp-block-button__link {
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Accent button hover */
.has-accent-background-color .wp-block-button__link:hover {
    background-color: #059669 !important;
}

/* Primary button hover */
.has-primary-background-color .wp-block-button__link:hover {
    background-color: #4C1D95 !important;
}

/* Outline button */
.is-style-outline .wp-block-button__link {
    border-width: 2px !important;
    font-weight: 600 !important;
}

/* === CARDS === */
.wp-block-group[style*="border-radius"] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-group[style*="border-radius"]:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* === HERO SECTION === */
.wp-block-cover {
    min-height: 500px !important;
}

.wp-block-cover h1 {
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.1 !important;
}

/* === TRUST BAR === */
.has-gray-light-background-color p {
    margin-bottom: 0 !important;
}

/* === QUERY LOOP === */
.wp-block-post-template {
    gap: 24px !important;
}

.wp-block-post-title a {
    color: inherit;
    text-decoration: none;
}

.wp-block-post-title a:hover {
    color: var(--wp--preset--color--primary);
}

/* === FOOTER === */
.wp-block-site-title a {
    text-decoration: none !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column !important;
    }
    
    .wp-block-cover {
        min-height: 400px !important;
    }
    
    .wp-block-cover h1 {
        font-size: 2rem !important;
    }
    
    .wp-block-group[style*="padding-top: 80px"],
    .wp-block-group[style*="padding-top:80px"] {
        padding-top: 40px !important;
    }
    
    .wp-block-group[style*="padding-bottom: 80px"],
    .wp-block-group[style*="padding-bottom:80px"] {
        padding-bottom: 40px !important;
    }
}

@media (max-width: 480px) {
    .wp-block-cover h1 {
        font-size: 1.5rem !important;
    }
    
    .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}

/* === PERFORMANCE === */
/* Remove default WordPress block gap on full-width groups */
.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: auto;
}

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

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 2px;
}

/* === GREEN SQUARE GLITCH FIX === */
/* Override any Spectra overlay artifacts */
.spectra-overlay-color::before,
.spectra-overlay-color::after,
.spectra-dim-ratio::before,
.spectra-dim-ratio::after {
    content: none !important;
    display: none !important;
    background: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Kill any stray pseudo-elements on containers */
.wp-block-group::before,
.wp-block-group::after {
    content: none !important;
}
