/*
Theme Name: Will's Custom Theme
Theme URI: https://yourwebsite.com
Author: Will
Author URI: https://yourwebsite.com
Description: A custom WordPress theme
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wills-theme
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0f0f0f;
}

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

/* Header */
header {
    background-color: #1a1a1a;
    color: #fff;
    padding: 1rem 0;
    border-bottom: 2px solid #2a2a2a;
}

header h1 {
    margin: 0;
}

header a {
    color: #fff;
    text-decoration: none;
}

header p {
    margin: 0.5rem 0 0;
    color: #999;
}

.random-tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: #888;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4a9eff;
    text-decoration: underline;
}

/* Content Layout */
.content-wrapper {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

/* Sidebar */
.sidebar {
    flex: 0 0 250px;
    background-color: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid #2a2a2a;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar h3 {
    color: #f0f0f0;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2a2a2a;
}

.sidebar .widget {
    margin-bottom: 2rem;
}

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

.sidebar ul li {
    margin-bottom: 0.5rem;
}

.sidebar ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul li a:hover {
    color: #4a9eff;
}

/* Search Form */
.sidebar .search-form {
    display: flex;
    gap: 0.5rem;
}

.sidebar .search-form input[type="search"] {
    flex: 1;
    padding: 0.5rem;
    background-color: #0f0f0f;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.sidebar .search-form input[type="search"]:focus {
    outline: none;
    border-color: #4a9eff;
}

.sidebar .search-form button {
    padding: 0.5rem 1rem;
    background-color: #4a9eff;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.sidebar .search-form button:hover {
    background-color: #3a8eef;
}

/* Main Content */
main {
    flex: 1;
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 1px solid #2a2a2a;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    main {
        margin: 0;
    }
}

article {
    margin-bottom: 2rem;
}

article h2 {
    margin-bottom: 0.5rem;
}

article h2 a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s ease;
}

article h2 a:hover {
    color: #4a9eff;
}

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

.post-content {
    margin-top: 1rem;
    color: #d0d0d0;
}

.post-content p,
.post-content li,
.post-content div {
    color: #d0d0d0;
}

/* Featured Image as Horizontal Bar */
.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

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

/* Links in content */
.post-content a {
    color: #4a9eff;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

/* Read more link */
article > a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}

article > a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #b0b0b0;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 2px solid #2a2a2a;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: #4a9eff;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #3a8eef;
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #4a9eff;
}

.post-content img {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.post-content img:hover {
    opacity: 0.8;
}
