/*
Theme Name: Seoga Theme
Theme URI: https://seoga.hzibs.com
Description: Custom theme for Seoga Construction
Author: Seoga Construction
Author URI: https://seoga.hzibs.com
Template: twentytwentyfive
Version: 1.0.0
Text Domain: seoga-theme
*/

/* ===================================
   Import Parent Theme
   =================================== */

/* ===================================
   Custom Variables
   =================================== */
:root {
    --seoga-primary: #667eea;
    --seoga-secondary: #764ba2;
    --seoga-dark: #1a1a2e;
    --seoga-text: #2d3748;
    --seoga-text-light: #718096;
    --seoga-bg: #f7fafc;
    --seoga-white: #ffffff;
    --seoga-border: #e2e8f0;
    --seoga-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ===================================
   Global Styles
   =================================== */
body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    color: var(--seoga-text);
    line-height: 1.8;
    background: var(--seoga-bg);
}

/* ===================================
   Single Post Styles
   =================================== */
.single-post {
    background: linear-gradient(180deg, #1a1a2e 0%, #2d3748 30%, var(--seoga-bg) 30%);
}

.single-post .wp-block-post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--seoga-white);
    text-align: center;
    padding: 80px 20px 40px;
    margin: 0;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Image */
.single-post .wp-block-post-featured-image {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.single-post .wp-block-post-featured-image img {
    border-radius: 20px;
    box-shadow: var(--seoga-shadow);
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Post Meta */
.single-post .wp-block-post-date,
.single-post .wp-block-post-author {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

/* Post Content Container */
.single-post .entry-content,
.single-post .wp-block-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 40px;
    background: var(--seoga-white);
    border-radius: 24px;
    box-shadow: var(--seoga-shadow);
    position: relative;
    z-index: 10;
}

/* Content Typography */
.single-post .entry-content h2,
.single-post .wp-block-post-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--seoga-dark);
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--seoga-primary);
}

.single-post .entry-content h3,
.single-post .wp-block-post-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--seoga-dark);
    margin-top: 36px;
    margin-bottom: 16px;
}

.single-post .entry-content h4,
.single-post .wp-block-post-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--seoga-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.single-post .entry-content p,
.single-post .wp-block-post-content p {
    font-size: 1.0625rem;
    line-height: 2;
    color: var(--seoga-text);
    margin-bottom: 24px;
}

.single-post .entry-content strong,
.single-post .wp-block-post-content strong {
    color: var(--seoga-dark);
    font-weight: 600;
}

/* Lists */
.single-post .entry-content ul,
.single-post .wp-block-post-content ul {
    padding-left: 0;
    margin-bottom: 24px;
}

.single-post .entry-content ul li,
.single-post .wp-block-post-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.8;
    list-style: none;
}

.single-post .entry-content ul li::before,
.single-post .wp-block-post-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--seoga-primary), var(--seoga-secondary));
    border-radius: 50%;
}

.single-post .entry-content ol,
.single-post .wp-block-post-content ol {
    padding-left: 0;
    margin-bottom: 24px;
    counter-reset: item;
}

.single-post .entry-content ol li,
.single-post .wp-block-post-content ol li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    line-height: 1.8;
    list-style: none;
    counter-increment: item;
}

.single-post .entry-content ol li::before,
.single-post .wp-block-post-content ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--seoga-primary), var(--seoga-secondary));
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images in Content */
.single-post .entry-content img,
.single-post .wp-block-post-content img {
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Blockquote */
.single-post .entry-content blockquote,
.single-post .wp-block-post-content blockquote {
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
    border-left: 4px solid var(--seoga-primary);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 16px 16px 0;
    font-style: italic;
    color: var(--seoga-text);
}

/* Post Navigation */
.single-post .wp-block-post-navigation-link {
    padding: 20px 28px;
    background: var(--seoga-white);
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.single-post .wp-block-post-navigation-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* ===================================
   Category/Tag Badges
   =================================== */
.single-post .wp-block-post-terms {
    text-align: center;
    margin-bottom: 20px;
}

.single-post .wp-block-post-terms a {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--seoga-primary), var(--seoga-secondary));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    margin: 4px;
    transition: all 0.3s ease;
}

.single-post .wp-block-post-terms a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}

/* ===================================
   Comments Section
   =================================== */
.single-post .wp-block-comments {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: var(--seoga-white);
    border-radius: 24px;
    box-shadow: var(--seoga-shadow);
}

/* ===================================
   Related Posts
   =================================== */
.single-post .wp-block-query {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ===================================
   Footer
   =================================== */
.single-post footer {
    background: var(--seoga-dark);
    color: white;
    padding: 60px 20px;
    margin-top: 80px;
}

/* ===================================
   CTA Section
   =================================== */
.seoga-cta-section {
    background: linear-gradient(135deg, var(--seoga-primary), var(--seoga-secondary));
    padding: 60px 40px;
    border-radius: 24px;
    text-align: center;
    margin: 48px 0;
    color: white;
}

.seoga-cta-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.seoga-cta-section p {
    opacity: 0.9;
    margin-bottom: 24px;
    color: white;
}

.seoga-cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: var(--seoga-primary);
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.seoga-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    .single-post .wp-block-post-title {
        padding: 60px 16px 30px;
        font-size: 1.5rem;
    }

    .single-post .entry-content,
    .single-post .wp-block-post-content {
        padding: 32px 20px;
        margin: 0 12px;
        border-radius: 20px;
    }

    .single-post .entry-content h2,
    .single-post .wp-block-post-content h2 {
        font-size: 1.375rem;
    }

    .single-post .entry-content h3,
    .single-post .wp-block-post-content h3 {
        font-size: 1.125rem;
    }

    .single-post .wp-block-post-featured-image {
        padding: 0 12px;
    }

    .single-post .wp-block-post-featured-image img {
        border-radius: 16px;
    }

    .seoga-cta-section {
        padding: 40px 24px;
        margin: 32px 0;
    }
}

/* ===================================
   Archive/Blog List Styles
   =================================== */
.archive .wp-block-post,
.blog .wp-block-post,
.home:not(.page) .wp-block-post {
    background: var(--seoga-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

.archive .wp-block-post:hover,
.blog .wp-block-post:hover,
.home:not(.page) .wp-block-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.archive .wp-block-post-featured-image img,
.blog .wp-block-post-featured-image img,
.home:not(.page) .wp-block-post-featured-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive .wp-block-post:hover .wp-block-post-featured-image img,
.blog .wp-block-post:hover .wp-block-post-featured-image img,
.home:not(.page) .wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

/* ===================================
   Header Customization
   =================================== */
.single-post .wp-block-template-part[data-area="header"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--seoga-primary), var(--seoga-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
}
