/*
Theme Name: ghjk
Description: A WordPress theme converted from Lovable with preserved React styling
Version: 1.0.0
Author: Lovable Converter
Text Domain: lovable-theme
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==========================================
   COMPREHENSIVE WORDPRESS CSS RESET
   Ensures React component styles override WP defaults
   ========================================== */

/* Base Reset */
*,
*:before,
*:after {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Body & HTML Reset */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6 !important;
    font-size: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #333333 !important;
    height: 100% !important;
}

/* WordPress Specific Resets */
.wp-site-blocks,
.wp-block,
.wp-block-group,
.entry-content,
.site-header,
.site-footer {
    all: unset !important;
    display: block !important;
}

/* Container Resets */
.container,
.wp-block-group,
.entry-content {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    width: 100% !important;
}

/* Admin Bar Removal */
#wpadminbar {
    display: none !important;
}
body.admin-bar {
    margin-top: 0 !important;
}

/* Typography Reset */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.2 !important;
}

p {
    margin: 0 0 1rem 0 !important;
    line-height: 1.6 !important;
}

/* Button Reset */
button,
input[type="button"],
input[type="submit"] {
    appearance: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    font-family: inherit !important;
    cursor: pointer !important;
}

/* ==========================================
   REACT COMPONENT STYLES
   ========================================== */

/* React Component Base Styles */
.lovable-page {
    padding: 2rem 0 !important;
    min-height: 100vh !important;
}

.react-component {
    position: relative !important;
    width: 100% !important;
}

.react-component * {
    box-sizing: border-box !important;
}

/* Interactive Elements */
.react-component [data-wp-event] {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.react-component [data-wp-event]:hover {
    opacity: 0.8 !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .lovable-page .mobile-hidden,
    .react-component .mobile-hidden {
        display: none !important;
    }
    
    .lovable-page .mobile-full,
    .react-component .mobile-full {
        width: 100% !important;
    }
}

/* Tailwind CSS Compatibility */
.lovable-page .flex { display: flex !important; }
.lovable-page .grid { display: grid !important; }
.lovable-page .block { display: block !important; }
.lovable-page .hidden { display: none !important; }

/* ==========================================
   ORIGINAL THEME STYLES BELOW
   ========================================== */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}