/*
Theme Name: 백일계산기
Theme URI: https://ds1.co.kr
Description: 전문적이고 실용적인 백일 계산기 테마
Version: 2.0.0
Author: DS1
Text Domain: baekil-calculator
*/

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "맑은 고딕", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: #666;
    font-weight: 500;
    text-decoration: none;
}

.main-navigation a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Main Calculator Section */
.calculator-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4rem 0 3rem;
    text-align: center;
}

.calculator-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.calculator-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

.calculator-section {
    padding: 3rem 0;
}

.calculator-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2.5rem;
    margin-top: -4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-box h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Results */
.results {
    margin-top: 2rem;
    display: none;
}

.results.active {
    display: block;
}

.result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
}

.result-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.result-days {
    font-size: 2rem;
    font-weight: 700;
}

.result-list {
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
}

.result-item {
    background: #fff;
    border-left: 4px solid #667eea;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item.passed {
    border-left-color: #dee2e6;
    opacity: 0.6;
}

.result-label {
    font-weight: 600;
    color: #333;
}

.result-date {
    color: #666;
    font-size: 0.9rem;
}

.result-dday {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

.result-item.passed .result-dday {
    color: #999;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.blog-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.blog-title a {
    color: #333;
    text-decoration: none;
}

.blog-title a:hover {
    color: #667eea;
}

.blog-excerpt {
    color: #666;
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.9rem;
    color: #999;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
}

.footer-section a:hover {
    color: #667eea;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #95a5a6;
}

/* Page Content */
.page-content,
.single-content {
    background: #fff;
    border-radius: 8px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.entry-meta {
    color: #999;
    font-size: 0.9rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Archive */
.archive-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #667eea;
}

.pagination .current {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        gap: 1rem;
    }

    .calculator-hero h1 {
        font-size: 2rem;
    }

    .calculator-box {
        padding: 1.5rem;
    }

    .content-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .page-content,
    .single-content {
        padding: 1.5rem;
    }
}
