/*
Theme Name: GeneratePress
Theme URI: https://generatepress.com
Author: Tom Usborne
Author URI: https://generatepress.com/about
Description: GeneratePress is a lightweight WordPress theme built with a focus on speed and usability. Performance is important to us, which is why a fresh GeneratePress install adds less than 10kb (gzipped) to your page size. We take full advantage of the block editor (Gutenberg), which gives you more control over creating your content. If you use page builders, GeneratePress is the right theme for you. It is completely compatible with all major page builders, including Beaver Builder and Elementor. Thanks to our emphasis on WordPress coding standards, we can boast full compatibility with all well-coded plugins, including WooCommerce. GeneratePress is fully responsive, uses valid HTML/CSS, and is translated into over 25 languages by our amazing community of users. A few of our many features include 60+ color controls, powerful dynamic typography, 5 navigation locations, 5 sidebar layouts, dropdown menus (click or hover), and 9 widget areas. Learn more and check out our powerful premium version at https://generatepress.com
Version: 3.6.1
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress
Tags: two-columns, three-columns, one-column, right-sidebar, left-sidebar, footer-widgets, blog, e-commerce, flexible-header, full-width-template, buddypress, custom-header, custom-background, custom-menu, custom-colors, sticky-post, threaded-comments, translation-ready, rtl-language-support, featured-images, theme-options

GeneratePress, Copyright 2014-2025 EDGE22 Studios LTD.
GeneratePress is distributed under the terms of the GNU GPL

GeneratePress is based on Underscores http://underscores.me/, (C) 2012-2025 Automattic, Inc.

Actual CSS can be found in /assets/css/ folder.
*/

/* 
 * VELOG CUSTOMIZATIONS START 
 * Added by AI
 */

/* General Body and Background */
body {
    background-color: #f8f9fa; /* Light grey background like Velog */
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Nanum Gothic", "Noto Sans KR", "Noto Sans CJK KR", arial, 돋움, Dotum, Tahoma, Geneva, sans-serif;
}

/* Header Styles */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(0,0,0,0.08);
}

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

/* Navigation */
.main-navigation {
    background: transparent;
}

.main-navigation .main-nav ul li a {
    color: #212529;
    font-weight: 500;
    font-size: 1.1rem;
}

.main-navigation .main-nav ul li:hover > a, 
.main-navigation .main-nav ul li.current-menu-item > a {
    color: #12b886; /* Velog Green */
    background: transparent;
}

/* Post Grid Layout (Velog Card Style) */
/* Force grid layout for archives/blog */
.blog .site-main, .archive .site-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start; /* Left align for rows */
}

/* Make each post a card */
.blog .type-post, .archive .type-post {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 16px 0 rgba(0,0,0,0.04);
    transition: transform 0.25s ease-in, box-shadow 0.25s ease-in;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 20px); /* 3 columns */
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .blog .type-post, .archive .type-post {
        width: calc(50% - 20px); /* 2 columns */
    }
}

@media (max-width: 768px) {
    .blog .type-post, .archive .type-post {
        width: 100%; /* 1 column */
    }
}

.blog .type-post:hover, .archive .type-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px 0 rgba(0,0,0,0.08);
}

.inside-article {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image on top */
.post-image {
    margin: 0 !important;
}
.post-image img {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

/* Content Area */
.entry-header {
    padding: 1rem 1rem 0.5rem 1rem;
    margin-top: 0;
}

.entry-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.entry-title a {
    color: #212529;
    text-decoration: none;
}

.entry-summary {
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Push footer down */
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta / Footer of Card */
.entry-meta {
    padding: 0.625rem 1rem;
    border-top: 1px solid #f1f3f5;
    font-size: 0.75rem;
    color: #868e96;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push to bottom */
}

/* Tags in footer or separate? GeneratePress puts them in footer-meta usually */
.cat-links, .tags-links {
    display: block;
    padding: 0 1rem 1rem;
}

.tags-links a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f1f3f5;
    color: #12b886;
    border-radius: 1rem;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

.tags-links a:hover {
    background: #f8f9fa;
}

/* Read More Button - Hide */
.read-more {
    display: none;
}

/* VELOG CUSTOMIZATIONS END */

/* Sidebar Adjustments for Velog Style */
.site-content {
    display: flex;
}

/* Ensure sidebar is on left and content on right with correct proportions if flexbox is used */
/* GeneratePress uses specific classes. .grid-container might need adjustment if sidebar is fixed width */

/* Force sidebar width */
@media (min-width: 769px) {
    .left-sidebar .site-content .content-area {
        width: calc(100% - 280px); /* 250px sidebar + 30px gap */
        margin-left: auto;
    }
    .left-sidebar .site-content .widget-area {
        width: 250px;
        position: sticky;
        top: 80px; /* Sticky top below header */
        align-self: flex-start;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    /* Hide scrollbar for cleaner look */
    .left-sidebar .site-content .widget-area::-webkit-scrollbar {
        width: 4px;
    }
    .left-sidebar .site-content .widget-area::-webkit-scrollbar-thumb {
        background-color: #dee2e6;
        border-radius: 2px;
    }
}

/* Clean up Widget Styles */
.widget {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
