/* Reset & Variables */
:root {
    --bg-color: #f8f9fa;
    --text-color: #1f2937;
    --primary-color: #6366f1; /* Indigo 500 */
    --secondary-color: #a5b4fc; /* Indigo 200 */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --card-bg: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
ul {
    list-style: none;
}
/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
    display: flex;
    align-items: center;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
}
.nav ul {
    display: flex;
    gap: 24px;
}
.nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
}
.nav a:hover {
    color: var(--primary-color);
}
/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    margin-bottom: 60px;
}
.hero h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(to right, #4f46e5, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.25rem;
    color: #6b7280;
}
/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}
.post-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.post-thumb {
    height: 200px;
    overflow: hidden;
    background-color: #e5e7eb;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-card:hover .post-thumb img {
    transform: scale(1.05);
}
.post-info {
    padding: 24px;
}
.post-category {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}
.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #111827;
}
.post-summary {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.post-date {
    font-size: 0.875rem;
    color: #9ca3af;
}
/* Post View (Article) */
.post-view {
    max-width: 800px;
    margin: 0 auto 100px;
    background: #fff;
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}
.post-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 40px;
}
.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.post-meta {
    color: #6b7280;
    font-size: 0.95rem;
}
.post-content {
    font-size: 1.125rem;
    color: #374151;
}
.post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: #111827;
}
.post-content p {
    margin-bottom: 24px;
}
.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}
/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}
/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .post-view {
        padding: 30px;
    }
    
    .post-header .post-title {
        font-size: 1.8rem;
    }
}