/*!
Theme Name: Electopia
Theme URI: https://electopia.local
Author: Electopia Team
Author URI: https://electopia.local
Description: ערכת נושא וורדפרס מודרנית לבית חכם וניהול אנרגיה - A modern WordPress theme with ACF integration and custom post types for smart home and energy management.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: electopia
Domain Path: /languages
Requires at least: 6.0
Requires PHP: 8.1
Tested up to: 6.4
Tags: rtl-language-support, right-to-left, custom-logo, custom-menu, featured-images, theme-options
*/

/* Electopia WordPress-specific overrides */
:root {
  --primary-color: #5258F9;
  --secondary-color: #00F1D9;
  --text-dark: #01021E;
  --text-light: #656565;
  --bg-light: #f9fafb;
  --border-color: #e5e7eb;
}

/* WordPress body margin fix for admin bar */
body.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar header {
    top: 46px;
  }
}

/* Main content padding to account for fixed header */
.site-main {
  padding-top: 80px;
}

/* WordPress pagination styling */
.nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.nav-links a,
.nav-links span {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-dark);
}

.nav-links a:hover,
.nav-links .current {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Hide sidebar for cleaner RTL design */
.site-sidebar {
  display: none;
}

/* WordPress image alignments */
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: right;  /* RTL: flip alignment */
  margin-left: 1rem;
}

.alignright {
  float: left;   /* RTL: flip alignment */
  margin-right: 1rem;
}

/* Gallery styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Widget styles */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

/* Comment styles */
.comments-area {
  padding: 2rem 0;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Search form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-field {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.search-submit {
  padding: 0.5rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
}
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  background-color: var(--primary-color);
  color: white;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

button:hover,
input[type='submit']:hover,
input[type='button']:hover {
  background-color: var(--secondary-color);
}
