/* 즉시 다크모드 적용을 위한 기본 스타일 - 최우선 적용 */
html[data-theme="dark"] {
    background-color: #0f172a !important;
}

html[data-theme="dark"] body {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

/* 다크모드 전환 시 깜빡임 방지를 위한 추가 스타일 */
html[data-theme="dark"] .navbar {
    background-color: #0f172a !important;
    border-bottom-color: #334155 !important;
}

html[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

html[data-theme="dark"] .contact-section {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

html[data-theme="dark"] .blog-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
}

/* 페이지 전환 시 깜빡임 방지를 위한 추가 스타일 */
html[data-theme="dark"] .main-content {
    background-color: #0f172a !important;
}

html[data-theme="dark"] .container {
    background-color: transparent !important;
}

html[data-theme="dark"] .post-detail {
    background-color: transparent !important;
}

html[data-theme="dark"] .post-detail-content {
    background-color: transparent !important;
}

/* CSS Variables for Theme Management */
:root {
    /* Light Theme Colors */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Dark Theme Colors */
    --dark-primary-color: #3b82f6;
    --dark-primary-hover: #2563eb;
    --dark-secondary-color: #94a3b8;
    --dark-accent-color: #fbbf24;
    
    --dark-bg-primary: #0f172a;
    --dark-bg-secondary: #1e293b;
    --dark-bg-tertiary: #334155;
    --dark-bg-card: #1e293b;
    
    --dark-text-primary: #f8fafc;
    --dark-text-secondary: #cbd5e1;
    --dark-text-muted: #94a3b8;
    
    --dark-border-color: #334155;
    --dark-border-hover: #475569;
    
    --dark-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --dark-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --dark-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: var(--dark-primary-color);
    --primary-hover: var(--dark-primary-hover);
    --secondary-color: var(--dark-secondary-color);
    --accent-color: var(--dark-accent-color);
    
    --bg-primary: var(--dark-bg-primary);
    --bg-secondary: var(--dark-bg-secondary);
    --bg-tertiary: var(--dark-bg-tertiary);
    --bg-card: var(--dark-bg-card);
    
    --text-primary: var(--dark-text-primary);
    --text-secondary: var(--dark-text-secondary);
    --text-muted: var(--dark-text-muted);
    
    --border-color: var(--dark-border-color);
    --border-hover: var(--dark-border-hover);
    
    --shadow-sm: var(--dark-shadow-sm);
    --shadow-md: var(--dark-shadow-md);
    --shadow-lg: var(--dark-shadow-lg);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.brand-link:hover {
    color: var(--primary-color);
}

.brand-icon {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
}

.brand-text {
    font-size: 1.5rem;
    letter-spacing: -0.025em;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.nav-link i {
    font-size: 0.875rem;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle i:last-child {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i:last-child {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 70px;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 600px;
}

.hero-text {
    z-index: 2;
}

.brand-animation {
    margin-bottom: 3rem;
}

.brand-title {
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.brand-subtitle {
    font-size: 1.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.hero-center-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    animation: pulse 4s ease-in-out infinite;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.floating-icon.icon-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon.icon-3 {
    bottom: 30%;
    left: 10%;
    animation-delay: 2s;
}

.floating-icon.icon-4 {
    bottom: 20%;
    right: 25%;
    animation-delay: 3s;
}

.floating-icon.icon-5 {
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(5deg); 
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 25px 50px rgba(37, 99, 235, 0.4);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}


/* Contact Section */
.contact-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 600px;
}

.contact-text {
    z-index: 2;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* Contact Visual */
.contact-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;
}

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 300px;
    padding: 1.5rem 2rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.contact-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-label {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-label {
    color: var(--primary-color);
}

/* Contact Decoration */
.contact-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.decoration-circle.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.decoration-circle.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.decoration-circle.circle-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

/* Footer */
.footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
}

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

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-icon {
    width: 40px;
    height: 40px;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.footer-bottom-content {
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* Blog Pages */
.blog-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-hover);
}

.blog-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.blog-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.category-tab:hover::before {
    left: 100%;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-post-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: left 0.6s ease;
    opacity: 0.1;
}

.blog-post-card:hover::before {
    left: 100%;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post-card-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.post-card-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card:hover .post-card-content h2 a {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* Post Detail */
.post-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-detail-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-detail-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.post-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-detail-content {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3,
.post-detail-content h4,
.post-detail-content h5,
.post-detail-content h6 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-detail-content h1 { font-size: 2.5rem; }
.post-detail-content h2 { font-size: 2rem; }
.post-detail-content h3 { font-size: 1.5rem; }
.post-detail-content h4 { font-size: 1.25rem; }

.post-detail-content p {
    margin-bottom: 1.5rem;
}

.post-detail-content ul,
.post-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-detail-content li {
    margin-bottom: 0.5rem;
}

.post-detail-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.post-detail-content code {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

/* 코드 블록 - 깔끔한 기본 스타일 */
.post-detail-content pre {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px;
    margin: 16px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
}

.post-detail-content pre code {
    background: none !important;
    padding: 0 !important;
    color: #000000 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: normal !important;
    text-shadow: none !important;
}

/* 다크 모드 */
[data-theme="dark"] .post-detail-content pre {
    background-color: #1e1e1e !important;
    border-color: #333 !important;
}

[data-theme="dark"] .post-detail-content pre code {
    color: #ffffff !important;
}

.post-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.post-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-detail-content th,
.post-detail-content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.post-detail-content th {
    background-color: var(--bg-tertiary);
    font-weight: 600;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.comments-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comments-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
    box-sizing: border-box;
}

/* Giscus 댓글 시스템 스타일링 */
#giscus-comments {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

/* Giscus 컨테이너 내부 요소들 - 더 강력한 제어 */
#giscus-comments *,
.gsc-comments,
.gsc-comment-box,
.gsc-comment-content,
.gsc-header,
.gsc-main,
.gsc-footer,
.gsc-textarea,
.gsc-comment,
.gsc-comment-content,
.gsc-comment-box,
.gsc-comment-box-content,
.gsc-comment-box-textarea {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Giscus 입력 필드 스타일링 */
.gsc-textarea,
.gsc-comment-box-textarea {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    resize: vertical !important;
}

/* Giscus 댓글 목록 */
.gsc-comments {
    max-width: 100% !important;
    width: 100% !important;
}

/* Giscus 댓글 개별 항목 */
.gsc-comment {
    max-width: 100% !important;
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Giscus 화이트 모드 강제 적용 */
[data-theme="light"] #giscus-comments {
    color-scheme: light !important;
}

[data-theme="light"] #giscus-comments iframe {
    color-scheme: light !important;
}

/* Giscus 다크 모드 강제 적용 */
[data-theme="dark"] #giscus-comments {
    color-scheme: dark !important;
}

[data-theme="dark"] #giscus-comments iframe {
    color-scheme: dark !important;
}

/* 반응형 댓글 섹션 */
@media (max-width: 768px) {
    .comments-container {
        max-width: 700px;
        padding: 0 0.5rem;
    }
    
    .comments-wrapper {
        padding: 1.5rem;
    }
    
    .comments-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .comments-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .comments-wrapper {
        padding: 1rem;
    }
    
    .comments-title {
        font-size: 1.125rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .hero-center-icon {
        width: 150px;
        height: 150px;
        font-size: 3rem;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .blog-title {
        font-size: 3rem;
    }
    
    .blog-description {
        font-size: 1.25rem;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .category-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .blog-post-card {
        padding: 1.25rem;
    }
    
    .post-card-content h2 {
        font-size: 1.25rem;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .brand-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .hero-center-icon {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-cards {
        align-items: center;
        gap: 1.5rem;
    }
    
    .contact-card {
        width: 250px;
    }
    
    .contact-title {
        font-size: 3rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-bottom-content {
        text-align: center;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-detail-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .category-tabs {
        flex-direction: column;
    }
    
    .category-tab {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section {
        padding: 2rem 0 4rem;
    }
    
    .contact-section {
        padding: 4rem 0;
    }
    
    .blog-section {
        padding: 4rem 0;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-description {
        font-size: 1rem;
    }
    
    .blog-post-card {
        padding: 1rem;
    }
    
    .post-card-content h2 {
        font-size: 1.1rem;
    }
    
    .post-excerpt {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .post-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .contact-cards {
        gap: 1rem;
    }
    
    .contact-card {
        width: 200px;
        padding: 1rem 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.25rem;
    }
    
    .contact-label {
        font-size: 1rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .hero-center-icon {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .brand-title {
        font-size: 2.5rem;
    }
    
    .brand-subtitle {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 1.75rem;
    }
    
    .post-detail-content {
        font-size: 1rem;
    }
    
    .post-detail-content h1 { font-size: 2rem; }
    .post-detail-content h2 { font-size: 1.75rem; }
    .post-detail-content h3 { font-size: 1.5rem; }
    .post-detail-content h4 { font-size: 1.25rem; }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .theme-toggle,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .post-detail-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}
