/*
Theme Name: RickyS.dev
Theme URI: https://rickys.dev
Author: Ricky Spears
Author URI: https://rickys.dev
Description: A professional automation and solutions architecture blog theme with a modern, technical aesthetic.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rickysdev
Tags: blog, two-columns, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    --accent-primary: #f59e0b;
    --accent-secondary: #0ea5e9;
    --border-color: #2a2a2a;
    --code-bg: #1a1a1a;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    font-size: 17px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 25px 0;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.site-logo a {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4em;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: normal;
    letter-spacing: 1px;
}

.site-navigation {
    display: flex;
    gap: 30px;
    align-items: center;
}

.site-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.site-navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95em;
}

.site-navigation a:hover {
    color: var(--text-primary);
}

.cta-button {
    background: var(--accent-primary);
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.95em;
}

.cta-button:hover {
    color: white !important;
    background: #d97706;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: inherit;
}

.hero h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: normal;
    line-height: 1.3;
}

.hero h1 .highlight {
    color: var(--accent-primary);
}

.hero-description {
    font-size: 1.15em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2em;
    color: var(--accent-primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9em;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-secondary);
}

/* Tech Stack */
.tech-stack {
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.tech-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.tech-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9em;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.tech-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Filter Navigation */
.content-filters {
    padding: 40px 0 30px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
}

.filter-button {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9em;
    text-decoration: none;
}

.filter-button:hover,
.filter-button.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Main Content */
.site-main {
    padding: 50px 0;
}

/* Articles */
.featured-label {
    display: inline-block;
    background: var(--accent-primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

article.post,
article.page {
    border-left: 2px solid var(--border-color);
    padding: 0 0 0 30px;
    margin-bottom: 50px;
    position: relative;
    transition: border-color 0.3s;
}

article.post:hover,
article.page:hover {
    border-left-color: var(--accent-primary);
}

article.post::before,
article.page::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

article.post:hover::before,
article.page:hover::before {
    opacity: 1;
}

.entry-header h2,
.entry-header h1 {
    font-size: 1.6em;
    margin-bottom: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.entry-header h2 a,
.entry-header h1 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.entry-header h2 a:hover {
    color: var(--accent-primary);
}

.entry-meta {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.meta-item a {
	color: var(--accent-secondary);
	text-decoration: none;
}
.meta-item a:hover {
	color: var(--accent-primary);
	text-decoration: underline;
}

.meta-divider {
    color: var(--border-color);
}

.entry-content p,
.entry-summary p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.entry-content {
    color: var(--text-secondary);
}

.entry-content h2 {
    font-size: 1.6em;
    color: var(--text-primary);
    margin: 40px 0 20px 0;
    font-weight: 500;
}

.entry-content h3 {
    font-size: 1.3em;
    color: var(--text-primary);
    margin: 30px 0 15px 0;
    font-weight: 500;
}

.entry-content h4 {
    font-size: 1.1em;
    color: var(--text-primary);
    margin: 25px 0 12px 0;
    font-weight: 500;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0 20px 40px;
    color: var(--text-secondary);
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-secondary);
    padding: 15px 20px;
    margin: 25px 0;
    background: rgba(14, 165, 233, 0.05);
    color: var(--text-secondary);
    font-style: italic;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 25px 0;
    border: 1px solid var(--border-color);
}

.entry-content pre {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    padding: 20px;
    margin: 25px 0;
    overflow-x: auto;
    border-radius: 4px;
}

.entry-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.entry-content p code {
    background: var(--code-bg);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 3px;
}

.entry-content a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.entry-content a:hover {
    color: var(--accent-primary);
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

.read-more:hover {
    color: var(--accent-primary);
}

.read-more::after {
    content: " →";
}

.entry-tags,
.tag-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.entry-tags a,
.tag-links a {
    color: var(--text-muted);
    font-size: 0.8em;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: all 0.2s;
    text-decoration: none;
}

.entry-tags a:hover,
.tag-links a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 4px;
}

.pagination a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination .current {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}
.comments-area a {
	color: var(--accent-secondary);
	text-decoration: none;
}
.comments-area a:hover {
	color: var(--accent-primary);
	text-decoration: underline;
}

.comments-title {
    font-size: 1.4em;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border-left: 2px solid var(--border-color);
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.comment-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.reply {
    margin-top: 10px;
}

.comment-reply-link {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 0.9em;
}

.comment-reply-link:hover {
    color: var(--accent-primary);
}

.comment-form {
    margin-top: 40px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95em;
    border-radius: 4px;
    margin-bottom: 15px;
}

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

.comment-form input[type="submit"] {
    background: var(--accent-primary);
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.comment-form input[type="submit"]:hover {
    background: #d97706;
    color: white;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9em;
}

.footer-text .highlight {
    color: var(--accent-primary);
    font-family: 'Courier New', Courier, monospace;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2em;
    }
    
    .site-navigation {
        width: 100%;
        justify-content: space-between;
    }
    
    .site-navigation ul {
        gap: 20px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    article.post,
    article.page {
        padding-left: 20px;
    }
    
    .container {
        padding: 0 20px;
    }
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

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

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

.wp-caption-text {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.sticky {
    /* Add styling for sticky posts if desired */
}

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

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95em;
    border-radius: 4px;
}

.search-form button {
    background: var(--accent-primary);
    color: #000;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.search-form button:hover {
    background: #d97706;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 80px 0;
}

.error-404 h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 4em;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.error-404 p {
    color: var(--text-secondary);
    font-size: 1.2em;
    margin-bottom: 30px;
}