/*
Theme Name: HTML CSS Toolbox
Theme URI: https://wikiment.com/html-css-toolbox/
Author: Rohit Bhatt
Author URI: https://rohitbhatt.com/
Description: A WordPress theme designed as a toolbox for HTML and CSS examples.
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: html-css-toolbox
Tags: custom-background, custom-header, custom-menu, featured-images, flexible-header, full-width-template, html5, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-patterns, wide-blocks, editor-style
*/

/* --- General Styles & Typography --- */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8fafc; /* Light gray background */
    color: #334155; /* Darker text for readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1024px; /* Slightly wider container */
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 0.75rem; /* More rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Softer, larger shadow */
}

/* --- Header Styles --- */
.site-header {
    background-color: #1e293b; /* Dark blue-gray */
    color: #f8fafc;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* Subtle shadow for depth */
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
}

.site-branding .site-title {
    margin: 0;
    font-size: 2.25rem; /* Slightly larger title */
    font-weight: 700; /* Bold */
    letter-spacing: -0.025em; /* Tighten letter spacing */
}

.site-branding .site-title a {
    color: inherit; /* Inherit color from parent */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-branding .site-title a:hover {
    color: #cbd5e1; /* Lighter color on hover */
}

.site-branding .site-description {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #cbd5e1;
}

.main-navigation {
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for horizontal navigation */
    justify-content: center; /* Center items */
    gap: 1.5rem; /* Space between items */
}

.main-navigation ul li {
    margin: 0; /* Remove default list item margin */
}

.main-navigation ul li a {
    color: #cbd5e1; /* Lighter color for links */
    text-decoration: none;
    font-weight: 600; /* Semi-bold */
    padding: 0.5rem 1rem;
    border-radius: 0.375rem; /* Slightly rounded buttons */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a { /* Style for active menu item */
    background-color: #3b82f6; /* Blue background on hover/active */
    color: #ffffff;
}

/* --- Content Area Styles (Minimal for now) --- */
.site-content {
    padding: 1rem 0; /* Add some padding around the content area */
}

/* --- Footer Styles --- */
.site-footer {
    background-color: #1e293b; /* Match header background */
    color: #cbd5e1; /* Match header text color */
    padding: 2rem;
    text-align: center;
    margin-top: 3rem; /* More space above footer */
    border-top: 1px solid #334155; /* Subtle top border */
    font-size: 0.875rem; /* Smaller text */
}

.site-footer a {
    color: #60a5fa; /* A light blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #93c5fd; /* Lighter blue on hover */
}

.site-info {
    max-width: 1024px;
    margin: 0 auto;
    display: flex; /* Use flexbox for layout */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items */
    gap: 0.5rem; /* Space between elements */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .site-branding .site-title {
        font-size: 1.75rem;
    }

    .main-navigation ul {
        flex-direction: column; /* Stack navigation items vertically */
        gap: 0.5rem;
    }
}
