/*
Theme Name: BlogSpace Theme
Theme URI: https://example.com/blogspace
Author: Your Name
Author URI: https://example.com/
Description: A clean and modern blog theme built with Tailwind CSS.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blogspace
Tags: blog, clean, modern, responsive, two-columns
*/

.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.15);
}
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #dc2626;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Existing CSS from index page */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #dc2626;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open {
    transform: translateX(0);
}

/* Post-specific CSS from the new page */
.post-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #1f2937;
}
.post-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #374151;
}
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.post-content ul, .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}
.post-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.post-content blockquote {
    border-left: 4px solid #dc2626;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
}
.post-content code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}
.related-post {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.1);
}

/* Sidebar Widget Styling */
.widget {
    background-color: #fff;
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem; /* 24px */
    margin-bottom: 2rem; /* 32px */
}

.widget-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem; /* 16px */
}

.widget ul,
.widget ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

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

.widget a {
    color: #4b5563; /* gray-600 */
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #dc2626; /* red-600 */
}