/*
Theme Name: FlexBuilder Pro
Description: A powerful WordPress theme with an advanced UX builder, extensive CSS management, and reusable components
Version: 0.1.26
Author: Your Name
Text Domain: flexbuilder
Domain Path: /languages
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary Commercial License
License URI: https://yourwebsite.com/license
Tags: page-builder, drag-drop, responsive, custom-post-types, featured-images, threaded-comments, translation-ready

FlexBuilder Pro - Commercial WordPress Theme
Copyright (C) 2024 Your Name/Company

This is a commercial product. All rights reserved.
Unauthorized copying, distribution, or modification is prohibited.
This product is licensed, not sold.
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
}

a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    flex: 1;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0073aa;
}

/* Frontend styles - NO editor elements */
.site-content {
    min-height: 70vh;
    padding: 2rem 0;
}

.site-main {
    flex: 1;
    margin-right: 2rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    color: #333;
}

.entry-content {
    line-height: 1.8;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.read-more {
    background: #0073aa;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.read-more:hover {
    background: #005a87;
    color: white;
}

/* Sidebar */
.widget-area {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
}

.widget-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
    color: #333;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget-area h1,
.footer-widget-area h2,
.footer-widget-area h3,
.footer-widget-area h4,
.footer-widget-area h5,
.footer-widget-area h6 {
    color: #fff;
}

.footer-widget-area a {
    color: #ccc;
}

.footer-widget-area a:hover {
    color: #fff;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* FlexBuilder Frontend Content - NO EDITOR STYLES */
.flexbuilder-component {
    margin: 1rem 0;
    /* NO editor borders, hovers, or controls on frontend */
}

/* Component Styles */
.text-component,
.heading-component {
    line-height: 1.6;
}

.image-component {
    text-align: center;
}

.image-component img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.button-component {
    text-align: center;
    margin: 2rem 0;
}

.button-component .btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-2px);
}

.column-component {
    padding: 1rem;
    border-radius: 8px;
}

.video-component iframe,
.video-component video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.form-component {
    max-width: 600px;
    margin: 2rem auto;
}

.form-component form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-component input,
.form-component textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-component input:focus,
.form-component textarea:focus {
    outline: none;
    border-color: #0073aa;
}

.form-component button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-component button:hover {
    background: #005a87;
}

.icon-component {
    text-align: center;
    font-size: 3rem;
    color: #0073aa;
    margin: 1rem 0;
}

.divider-component {
    margin: 3rem 0;
}

.divider-component hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.spacer-component {
    display: block;
}

/* Hide editor-only elements on frontend */
.component-placeholder,
.component-controls,
.flexbuilder-empty {
    display: none !important;
}

/* Grid System */
.grid-section {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Consolidated Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }

/* Display utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

/* Flexbox utilities */
.flex-column { flex-direction: column; }
.flex-row { flex-direction: row; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }

/* Margin utilities */
.m-0 { margin: 0; }
.m-1 { margin: 1rem; }
.m-2 { margin: 2rem; }
.m-3 { margin: 3rem; }
.m-4 { margin: 4rem; }
.m-5 { margin: 5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }
.p-4 { padding: 4rem; }
.p-5 { padding: 5rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        background: #f9f9f9;
        padding: 1rem;
        border-radius: 8px;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .site-main {
        margin-right: 0;
        margin-bottom: 2rem;
    }
    
    .widget-area {
        width: 100%;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .site-content {
        padding: 1rem 0;
    }
    
    .flexbuilder-component {
        margin: 1rem 0;
    }
    
    .button-component .btn {
        width: 100%;
        padding: 15px;
    }
    
    .form-component {
        margin: 1rem 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.slide-down {
    animation: slideDown 0.4s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .widget-area,
    .menu-toggle,
    .nav-menu {
        display: none;
    }
    
    .site-content {
        padding: 0;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
}

/* Version indicator for debugging */
body::before {
    content: '';
    display: none;
    /* Version: 1.0.1 - This comment helps with debugging */
}