/*
Theme Name: Neofilm Theme
Theme URI: https://example.com/neofilm-theme
Author: Your Name
Author URI: https://example.com
Description: A clean and modern WordPress theme for Neofilm
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: neofilm
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

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

html {
    margin-top: 0 !important;
}

#mobile-menu {
    display: none;
}

body {
    font-family: 'Noto Sans KR', '맑은 고딕', 'Malgun Gothic', 'Arial', 'Helvetica', 'sans-serif';
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Headings - Remove default margins */
h1, h2, h3, h4, h5, h6 {
    /* margin-top: 0; */
    /* margin-bottom: 0; */
}

/* Consistent Page Section Headings */
.page-section-heading {
    display: inline-block;
    position: relative;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.5rem;
    color: #666666;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .page-section-heading {
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin-bottom: 2rem;
    }
}

@media (min-width: 1024px) {
    .page-section-heading {
        font-size: 1.25rem;
        line-height: 1.875rem;
        margin-bottom: 2.5rem;
    }
}

/* Heading underline decoration */
.page-section-heading::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
}

/* Heading with bullet point */

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

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

/* Override default styles for Tailwind compatibility */
.neofilm-nav {
    /* Navigation styles handled by Tailwind */
}

/* Ensure Tailwind styles take precedence */
[class*="neofilm-"] {
    /* Component-specific styles handled by Tailwind */
}

/* Main Content */
.site-content {
    display: flex;
    gap: 30px;
    padding: 40px 0;
}

.content-area {
    flex: 1;
}

.widget-area {
    flex: 0 0 300px;
}

/* Posts */
.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.entry-meta {
    font-size: 0.875em;
    color: #666;
    margin-bottom: 20px;
}

.entry-content {
    margin-bottom: 30px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 30px 0 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* Widgets */
.widget {
    background-color: #f5f5f5;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
}

.widget-title {
    font-size: 1.25em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 5px 0;
}

/* Footer */
.site-footer {
    background-color: #23282d;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.site-info {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.875em;
}

/* Responsive */
@media (max-width: 768px) {
    .site-content {
        flex-direction: column;
    }
    
    .widget-area {
        flex: 1;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .entry-title {
        font-size: 2em;
    }
}

/* WordPress Core */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}