/*
Theme Name: MyDubai Headless
Theme URI: https://mydubai.cloud
Description: Headless WordPress theme for mydubai.cloud - Optimized for REST API consumption by Next.js frontend. Includes custom post types for Real Estate, Jobs, AI Tools, Guides, News, and Directories. Built for SEO and AdSense optimization.
Version: 1.0.0
Author: MyDubai Team
Author URI: https://mydubai.cloud
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mydubai-headless
Tags: headless, rest-api, custom-post-types, seo, adsense

This theme is designed to work with a Next.js frontend consuming the WordPress REST API.
It includes comprehensive custom post types, taxonomies, and REST API extensions.
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
    color: #333333;
    line-height: 1.7;
}

/* Heading Styles - Improved Readability */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a1a !important;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 32px;
    margin-top: 24px;
    margin-bottom: 16px;
}

h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 12px;
}

h4 {
    font-size: 20px;
    margin-top: 16px;
    margin-bottom: 10px;
}

/* Link Styles */
a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Content Readability */
.entry-content {
    color: #2c3338;
    line-height: 1.8;
}

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

/* Post Meta Data */
.post-meta-data,
.post-meta-data td,
.post-meta-data th {
    color: #1a1a1a;
    font-weight: 500;
}

.post-meta-data td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.post-meta-data th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
}

/* WordPress Admin Enhancements */
.admin-notice {
    background: #fff;
    border-left: 4px solid #2271b1;
    padding: 12px;
    margin: 20px 0;
    color: #1a1a1a;
}

/* API Endpoints Display */
.api-endpoint {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 15px;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
    color: #1a1a1a;
    word-break: break-all;
}

/* Improved Text Contrast */
.text-muted {
    color: #646970;
}

.text-primary {
    color: #2c3338;
}

/* Better Form Readability */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea,
select {
    color: #2c3338;
    border: 1px solid #8c8f94;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}
