/*
Theme Name: AgileDataModels
Theme URI: https://agiledatamodels.org
Author: Your Name
Author URI: https://agiledatamodels.org
Description: A professional WordPress theme for data modeling platforms with dark mode, customizable colors, and flexible content areas.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
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: agiledatamodels
Tags: dark, professional, data, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready

AgileDataModels WordPress Theme, (C) 2023
AgileDataModels is distributed under the terms of the GNU GPL.
*/

/* 
 * This theme uses Tailwind CSS loaded via CDN in header.php
 * Most styling is done through Tailwind utility classes
 * Additional custom styles are minimal and defined below
 */

/* Base resets and fallback styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #101822;
    color: #ffffff;
    line-height: 1.6;
}

/* Ensure dark mode colors apply */
html.dark body {
    background-color: #101822;
    color: #ffffff;
}

/* Basic typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: #136dec;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styling fallback */
header {
    background-color: rgba(16, 24, 34, 0.95);
    border-bottom: 1px solid #324867;
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Navigation */
nav a {
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    display: inline-block;
}

nav a:hover {
    color: #136dec;
    text-decoration: none;
}

/* Footer */
footer {
    background-color: #101822;
    border-top: 1px solid #324867;
    padding: 4rem 2.5rem 2rem;
    margin-top: auto;
}

/* Buttons */
.btn, button[type="submit"] {
    background-color: #136dec;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 700;
    display: inline-block;
}

.btn:hover, button[type="submit"]:hover {
    background-color: #0f5bbd;
    text-decoration: none;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #324867;
    border-radius: 0.5rem;
    background-color: #192433;
    color: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #136dec;
}

/* Custom scrollbar for code blocks */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #192433; 
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #324867; 
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #4B6382; 
}

/* WordPress core classes */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    padding: 0.5em 0;
}

.gallery {
    margin-bottom: 1.5em;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
    padding: 0.5em;
}

/* Sticky post indicator */
.sticky {
    border-left: 4px solid var(--primary-color, #136dec);
    padding-left: 1em;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -999px;
    left: -999px;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
}

/* Syntax highlighting for code blocks */
pre code {
    font-family: 'Fira Code', 'Courier New', monospace;
}

/* Print styles */
@media print {
    header nav,
    footer,
    .no-print {
        display: none !important;
    }
}
