/*
Theme Name: CodeCrimes
Description: A sharp, direct theme for brutal honesty in tech. No bullshit, just truth.
Author: CodeCriminal
Version: 1.1.1
License: GPL v2 or later
Text Domain: codecrimes
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #000000;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Links */
a {
    color: #d32f2f;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.2s ease;
}

a:hover {
    border-bottom-color: #d32f2f;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 50%, #000000 100%);
    color: #ffffff;
    padding: 2.5rem 0;
    border-bottom: 3px solid #d32f2f;
    position: relative;
    overflow: hidden;
}

/* Subtle glassmorphism overlay */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211,47,47,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(211,47,47,0.1) 100%);
    pointer-events: none;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
}

.logo-container {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    text-decoration: none;
    background: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid #d32f2f;
}

.site-logo {
    height: 120px;
    width: auto;
    display: block;
}

.site-text {
    flex-grow: 1;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Navigation */
.main-navigation {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.main-navigation a:hover {
    color: #d32f2f;
    border-bottom: none;
}

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

/* Header container - full width with logo left, menu right */
.site-header .container {
    margin: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: none;
    width: 100%;
}

/* Main Content */
.site-main {
    padding: 3rem 0;
}

/* Posts */
.post {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e0e0e0;
}

.post:last-child {
    border-bottom: none;
}

.post-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.post-title a {
    color: #000000;
    text-decoration: none;
}

.post-title a:hover {
    color: #d32f2f;
    border-bottom: none;
}

.post-meta {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000000;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #000000;
}

.post-content blockquote {
    border-left: 4px solid #d32f2f;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #333333;
}

.post-content code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
}

.post-content pre {
    background: #1a1a1a;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Sidebar */
.sidebar {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 50%, #000000 100%);
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle glassmorphism overlay for footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(211,47,47,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(211,47,47,0.1) 100%);
    pointer-events: none;
}

.site-footer {
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: #cccccc;
}

.site-footer a:hover {
    color: #d32f2f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .site-branding {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .site-logo {
        height: 80px;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* Sharp, direct styling for quotes and emphasis */
.post-content strong {
    font-weight: 700;
    color: #000000;
}

.post-content em {
    font-style: italic;
    color: #333333;
}

/* Code highlighting */
.highlight {
    background: #fff3cd;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Warning/error styling */
.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
}

.error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin: 1.5rem 0;
}

/* Search Results */
.search-info {
    color: #666666;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.search-suggestions {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 5px;
    margin-top: 2rem;
}

.search-suggestions h3 {
    margin-bottom: 1rem;
    color: #000000;
}

.search-suggestions ul {
    list-style: none;
    padding-left: 0;
}

.search-suggestions li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.search-suggestions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d32f2f;
    font-weight: bold;
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #d32f2f;
    color: #ffffff;
    border-color: #d32f2f;
}

.pagination .current {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Read More Link */
.read-more {
    display: inline-block;
    font-weight: 600;
    color: #d32f2f;
    text-decoration: none;
    margin-top: 1rem;
}

.read-more:hover {
    color: #000000;
    border-bottom: none;
}

/* Error 404 Page */
.error-404 {
    text-align: center;
    padding: 2rem 0;
}

.error-404 .page-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-404 ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.error-404 li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.error-404 li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #d32f2f;
    font-weight: bold;
}

/* Comments Styling */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #000000;
}

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

.comment-list li {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f8f8;
    border-radius: 5px;
    border-left: 3px solid #d32f2f;
}

.comment-author {
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 1rem;
}

.comment-content {
    line-height: 1.6;
}

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

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.comment-navigation a {
    font-weight: 600;
    color: #000000;
}

.comment-navigation a:hover {
    color: #d32f2f;
}

.no-comments {
    font-style: italic;
    color: #666666;
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 5px;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 5px;
    border-left: 3px solid #d32f2f;
}

.comment-reply-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form input[type="submit"] {
    background: #000000;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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