/**
 * WP GrapesJS Builder - Frontend Styles
 * Estilos para renderização dos templates no frontend
 */

/* ===================================
   Container Base
   =================================== */

.grapesjs-template-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Reset básico para garantir consistência */
.grapesjs-template-container * {
    box-sizing: border-box;
}

/* ===================================
   Tipografia Base
   =================================== */

.grapesjs-template-container h1,
.grapesjs-template-container h2,
.grapesjs-template-container h3,
.grapesjs-template-container h4,
.grapesjs-template-container h5,
.grapesjs-template-container h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.grapesjs-template-container p {
    margin-top: 0;
    margin-bottom: 1em;
}

/* ===================================
   Imagens Responsivas
   =================================== */

.grapesjs-template-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Links
   =================================== */

.grapesjs-template-container a {
    color: inherit;
    text-decoration: none;
}

.grapesjs-template-container a:hover {
    text-decoration: underline;
}

/* ===================================
   Grid/Flexbox Support
   =================================== */

.grapesjs-template-container .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.grapesjs-template-container .cell {
    flex: 1;
    padding: 0 15px;
}

/* ===================================
   Responsividade
   =================================== */

@media (max-width: 768px) {
    .grapesjs-template-container .row {
        flex-direction: column;
    }
    
    .grapesjs-template-container .cell {
        width: 100%;
    }
}

/* ===================================
   Utilitários Comuns
   =================================== */

.grapesjs-template-container .text-center {
    text-align: center;
}

.grapesjs-template-container .text-left {
    text-align: left;
}

.grapesjs-template-container .text-right {
    text-align: right;
}

.grapesjs-template-container .clearfix::after {
    content: "";
    display: table;
    clear: both;
}
