/*
Theme Name: Personal Blog Theme
Description: A sophisticated fullwidth WordPress theme for personal blogs, poetry, quotes, audio, and multimedia content. Features elegant typography, customizable colors, and intuitive Gutenberg integration.
Author: Manus AI
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: personal-blog-theme
Tags: blog, one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #f8f6f3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: #2c2c2c;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
}

h5 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

p {
    margin: 0 0 1.5rem 0;
    font-size: 1.125rem;
    line-height: 1.7;
}

a {
    color: #57d77;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d97162;
    text-decoration: underline;
}

/* ==========================================================================
   Layout Structure
   ========================================================================== */

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
}

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

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

.main-navigation a {
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.main-navigation a:hover {
    color: #d97162;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.site-main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.content-area {
    width: 100%;
}

/* ==========================================================================
   Post Styles
   ========================================================================== */

.post {
    margin-bottom: 4rem;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.post-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    padding: 2.5rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

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

.post-title a:hover {
    color: #d97162;
}

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

.post-meta a {
    color: #888;
}

.post-meta a:hover {
    color: #d97162;
}

.post-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #555;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: #57d77;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.read-more:hover {
    color: #d97162;
}

/* ==========================================================================
   Poetry Post Styles
   ========================================================================== */

.post-format-poetry .post-content {
    text-align: center;
    padding: 3rem 2rem;
}

.post-format-poetry .post-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.post-format-poetry .post-text {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    white-space: pre-line;
}

/* ==========================================================================
   Quote Post Styles
   ========================================================================== */

.post-format-quote .post-content {
    text-align: center;
    padding: 3rem 2rem;
}

.post-format-quote .quote-text {
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 1.5rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.post-format-quote .quote-text::before {
    content: """;
    font-size: 3rem;
    color: #d97162;
    line-height: 0;
    margin-right: 0.25rem;
}

.post-format-quote .quote-text::after {
    content: """;
    font-size: 3rem;
    color: #d97162;
    line-height: 0;
    margin-left: 0.25rem;
}

.post-format-quote .quote-attribution {
    font-size: 1rem;
    color: #888;
    font-style: normal;
}

/* ==========================================================================
   Audio Post Styles
   ========================================================================== */

.post-format-audio .audio-player {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f6f3;
    border-radius: 8px;
}

.post-format-audio audio {
    width: 100%;
    height: 40px;
}

.audio-meta {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* ==========================================================================
   Gallery Post Styles
   ========================================================================== */

.post-format-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.post-format-gallery .gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.post-format-gallery .gallery img:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: #2c2c2c;
    color: #ccc;
    padding: 2rem 0;
    text-align: center;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
}

.site-footer a {
    color: #57d77;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .main-navigation ul {
        gap: 1rem;
    }
    
    .site-main {
        padding: 2rem 1rem;
    }
    
    .post-content {
        padding: 2rem 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .post-format-poetry .post-title {
        font-size: 2rem;
    }
    
    .post-format-quote .quote-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 1.5rem 0.75rem;
    }
    
    .post-content {
        padding: 1.5rem 1rem;
    }
    
    .post-format-poetry .post-content,
    .post-format-quote .post-content {
        padding: 2rem 1rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: none;
    width: calc(100% + 4rem);
}

.alignfull {
    margin-left: calc(-100vw / 2 + 100% / 2);
    margin-right: calc(-100vw / 2 + 100% / 2);
    max-width: 100vw;
    width: 100vw;
}

.has-text-align-center {
    text-align: center;
}

.has-text-align-left {
    text-align: left;
}

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

