/*
Theme Name: Dialyma Theme
Theme URI: https://dialyma.com
Author: Dialyma
Author URI: https://dialyma.com
Description: A modern WordPress theme built for Dialyma Builder
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dialyma-theme
Tags: page-builder, custom-header, custom-footer, full-width-template, flexible-header, block-styles, wide-blocks, editor-style, custom-logo
*/

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* Dialyma Builder Pages - Full Width */
.dialyma-page {
  margin: 0;
  padding: 0;
}

.dialyma-page .site-content {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

.dialyma-page .content-area {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Dialyma Builder Root Elements */
#dialyma-viewer-root,
#dialyma-header-root,
#dialyma-footer-root,
#dialyma-blog-root,
#dialyma-single-root,
#dialyma-404-root {
  width: 100%;
  min-height: 50px;
  position: relative;
}

/* Dialyma Builder Content - Remove default WordPress styling */
.dialyma-builder-content {
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}

.dialyma-builder-content .entry-header,
.dialyma-builder-content .entry-meta,
.dialyma-builder-content .entry-footer {
  display: none !important;
}

/* Default Header (when no custom header) */
.site-header {
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.site-branding {
  max-width: 1200px;
  margin: 0 auto;
}

.site-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

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

/* Default Footer (when no custom footer) */
.site-footer {
  padding: 40px 20px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  text-align: center;
}

.site-info {
  max-width: 1200px;
  margin: 0 auto;
}

/* Default Content Styles */
.content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.entry-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.8;
}

.entry-content p {
  margin-bottom: 1em;
}

/* Edit Template Links (for admins) */
.dialyma-edit-template {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0073aa;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  z-index: 99999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dialyma-edit-template:hover {
  background: #005a87;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    padding: 15px;
  }
  
  .content-area {
    padding: 20px 15px;
  }
  
  .entry-title {
    font-size: 24px;
  }
}
