/*
Theme Name: Easterly IT Services
Theme URI: https://www.easterlyit.com
Author: Easterly IT Services
Author URI: https://www.easterlyit.com
Description: Custom WordPress theme matching the Easterly IT Services website. Dark tech theme with cyan accents, glassmorphism navigation, and animated grid backgrounds.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easterly-it

This theme is designed to match the static Easterly IT Services website
(easterlyit.com) so the WordPress blog section looks seamless.
*/

/* ===================================
   GLOBAL RESET & VARIABLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066cc;
    --secondary-blue: #004c99;
    --accent-cyan: #00b4d8;
    --dark-bg: #0a0e27;
    --darker-bg: #050814;
    --text-light: #ffffff;
    --text-gray: #bdbdbd;
    --success-green: #00ff88;
    --terminal-green: #00bf66;
    --error-red: #ff4444;
    --warning-yellow: #ffbb33;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--text-light);
}

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

/* ===================================
   NAVIGATION BAR
   =================================== */
nav.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    z-index: 1000;
    border-bottom: 1px solid var(--card-border);
}

nav.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

nav.site-nav .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav.site-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav.site-nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

nav.site-nav ul li a:hover,
nav.site-nav ul li a.active {
    color: var(--accent-cyan);
}

/* ===================================
   HAMBURGER MENU (Mobile)
   =================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 20, 0.98);
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
}

.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: color 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: var(--accent-cyan);
}

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
    padding: 8rem 5% 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 180, 216, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 180, 216, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ===================================
   BLOG LISTING (index, archive, search)
   =================================== */
.blog-section {
    padding: 4rem 5%;
    background: var(--darker-bg);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.2);
}

.post-card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-card-thumbnail-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.post-card-body {
    padding: 1.5rem 2rem 2rem;
}

.post-card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.post-card-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: rgba(0, 180, 216, 0.15);
    color: var(--accent-cyan);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.post-card-title a:hover {
    color: var(--accent-cyan);
}

.post-card-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
    color: var(--text-light);
}

/* ===================================
   SINGLE POST
   =================================== */
.single-post-section {
    padding: 2rem 5% 4rem;
    background: var(--darker-bg);
}

.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.single-post-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.9rem;
    color: var(--text-gray);
}

.single-post-featured-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
}

/* WordPress content styling */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.post-content h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
}

.post-content h4 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin: 1rem 0 1.5rem 2rem;
    color: var(--text-gray);
}

.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content blockquote {
    border-left: 4px solid var(--accent-cyan);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--card-bg);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content pre {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--success-green);
}

.post-content code {
    background: rgba(0, 180, 216, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-cyan);
}

.post-content pre code {
    background: none;
    padding: 0;
    color: var(--success-green);
}

.post-content img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-content a:hover {
    color: var(--text-light);
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--card-border);
    text-align: left;
}

.post-content th {
    background: var(--card-bg);
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Post tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.post-tags a {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 102, 204, 0.15);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 102, 204, 0.3);
    text-decoration: none;
}

.post-tags a:hover {
    background: rgba(0, 102, 204, 0.3);
    color: var(--text-light);
}

/* Post navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.post-nav-link {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.2);
}

.post-nav-label {
    font-size: 0.8rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: block;
}

.post-nav-title {
    color: var(--text-light);
    font-weight: 600;
}

.post-nav-link.next {
    text-align: right;
}

/* ===================================
   SIDEBAR (optional)
   =================================== */
.sidebar {
    padding: 2rem;
}

.widget {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget h3 {
    color: var(--accent-cyan);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--card-border);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.widget ul li a:hover {
    color: var(--accent-cyan);
}

/* ===================================
   COMMENTS
   =================================== */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.comments-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.comment-list {
    list-style: none;
}

.comment {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    color: var(--accent-cyan);
    font-weight: 600;
}

.comment-date {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.comment-content {
    color: var(--text-gray);
    line-height: 1.6;
}

.comment-content p {
    margin-bottom: 0.75rem;
}

/* Comment form */
.comment-respond {
    margin-top: 2rem;
}

.comment-respond h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4);
}

/* ===================================
   PAGINATION
   =================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--text-light);
    border-color: transparent;
}

/* ===================================
   SEARCH FORM
   =================================== */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form .search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.search-form .search-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* ===================================
   FOOTER
   =================================== */
footer.site-footer {
    background: var(--darker-bg);
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-light);
}

/* ===================================
   404 PAGE
   =================================== */
.error-404-section {
    padding: 5rem 5%;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--darker-bg);
}

.error-404-section h2 {
    font-size: 6rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.error-404-section p {
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 180, 216, 0.6);
    color: var(--text-light);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav.site-nav ul {
        display: none;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
