/*
Theme Name: Some Rhyme No Reason
Theme URI: https://example.com
Author: ITRS
Description: A minimalistic, mobile-first WordPress theme for displaying poetry
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: srnr
*/

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

body {
    font-family: 'Special Elite', cursive;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', Georgia, serif;
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p{
    margin-bottom: 16px;
}

.archive .site-main{
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Header */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: normal;
    font-family: 'Special Elite', cursive;
    margin-bottom: 0;
    line-height: 1;
}

.site-title a {
    color: #333;
}

.site-description {
    font-family: 'Special Elite', cursive;
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-weight: normal;
    margin-bottom: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Navigation */
.main-navigation {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.main-navigation.active {
    display: block;
}

.main-navigation ul {
    list-style: none;
}

.main-navigation li {
    margin-bottom: 10px;
}

.main-navigation a {
    display: block;
    padding: 5px 0;
}

/* Dropdown/Submenu Styles */
.main-navigation .sub-menu {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

.main-navigation .menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.7em;
}

/* Main Content */
.site-main {
    padding: 0;
    min-height: calc(100vh - 200px);
}

/* Poem Styles */
.poem {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

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

.poem-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.poem-content {
    line-height: 1.8;
}

.poem-image {
    margin-bottom: 30px;
}

.poem-image img {
    width: 100%;
    height: auto;
}

/* Home Page Image */
.poem-image-home {
    margin-top: 30px;
    text-align: center;
}

.poem-image-home img {
    max-width: 500px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.poem-image-home img:hover {
    opacity: 1;
}

/* Single Poem Layout - Creative Hero Design */
.single-poem {
    max-width: 100%;
    margin: 0;
}

.poem-header {
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
}

.poem-header .poem-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 400;
}

.poem-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}

.poem-hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.poem-hero-image:hover img {
    filter: grayscale(0%);
}

.poem-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.6s ease;
}

.poem-hero-image:hover .poem-hero-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.poem-hero-overlay .poem-title {
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    padding: 20px;
    margin: 0;
    max-width: 90%;
}

.poem-text-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.poem-text-container .poem-content {
    background: #fff;
    padding: 40px;
    border-left: 3px solid #333;
    line-height: 2;
}

.poem-footer {
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 30px 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9rem;
}

/* Home Page Styles */
.home-hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: #333;
}

.home-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.home-hero:hover img {
    filter: grayscale(0%);
}

.home-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.6s ease;
    padding: 20px;
}

.home-hero:hover .home-hero-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.home-title {
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0 0 10px;
    font-size: 2.5rem;
}

.home-tagline {
    color: #fff;
    text-align: center;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    font-size: 1.2rem;
}

/* Archive Header */
.archive-header {
    padding: 60px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.archive-title {
    text-align: center;
    font-size: 2rem;
    margin: 0;
    font-weight: 400;
}

.archive-description {
    max-width: 800px;
    margin: 20px auto 0;
    text-align: center;
    line-height: 1.8;
    color: #666;
}

.home-intro {
    padding: 60px 20px;
    background: #fafafa;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.home-poems {
    padding: 0 0 60px 0;
}

.poems-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.poem-card {
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    padding: 16px;
}

.poem-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.poem-card-image {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.poem-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.3s ease;
}

.poem-card:hover .poem-card-image img {
    transform: scale(1.05);
}

.poem-card-content {
    padding: 30px;
}

.poem-card-title {
    font-size: 1.5rem;
    margin: 0 0 15px;
}

.poem-card-title a {
    color: #333;
}

.poem-card-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.read-more {
    display: inline-block;
    color: #333;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #333;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #666;
    text-decoration: none;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
}

.load-more-btn {
    background: #333;
    color: #fff;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
    font-size: 16px;
    transition: background 0.3s ease;
}

.load-more-btn:hover {
    background: #555;
}

.load-more-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-family: 'Special Elite', cursive;
    font-size: 14px;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    background: #333;
    color: #fff;
    padding: 12px 30px;
    border: none;
    cursor: pointer;
    font-family: 'Special Elite', cursive;
    font-size: 16px;
}

.form-submit:hover {
    background: #555;
}

.form-message {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 3px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
    padding: 20px 0;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.9rem;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .main-navigation {
        display: block;
        position: static;
        border: none;
        padding: 0;
        box-shadow: none;
    }

    .main-navigation ul {
        display: flex;
        gap: 30px;
    }

    .main-navigation li {
        margin-bottom: 0;
        position: relative;
    }

    /* Desktop Dropdown Styles */
    .main-navigation .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        border: 1px solid #ddd;
        padding: 10px 0;
        min-width: 200px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-top: 0;
    }

    .main-navigation .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    .main-navigation .sub-menu li {
        display: block;
        margin: 0;
    }

    .main-navigation .sub-menu a {
        padding: 8px 20px;
        white-space: nowrap;
    }

    .main-navigation .sub-menu a:hover {
        background: #f5f5f5;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-description {
        font-size: 1rem;
    }

    .poem-title {
        font-size: 1.5rem;
    }

    /* Single Poem Desktop Enhancements */
    .poem-header .poem-title,
    .poem-hero-overlay .poem-title {
        font-size: 3.5rem;
    }

    .poem-text-container {
        margin: 80px auto;
    }

    .poem-text-container .poem-content {
        padding: 60px 80px;
        font-size: 1.1rem;
    }

    /* Home Page Desktop Enhancements */
    .home-title {
        font-size: 4rem;
    }

    .home-tagline {
        font-size: 1.5rem;
    }

    .home-intro {
        padding: 80px 20px;
    }

    .intro-text {
        font-size: 1.2rem;
    }

    .archive-header {
        padding: 80px 20px;
    }

    .archive-title {
        font-size: 3rem;
    }

    .poems-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .poem-card-title {
        font-size: 1.8rem;
    }
}
