/*
Theme Name: BackFlow Pro
Theme URI: https://backofficeflows.com
Description: 백오피스 업무 효율화를 위한 전문 비즈니스 테마
Version: 1.0.0
Author: BackFlow Solutions
Text Domain: bof-theme
*/

/* ===== CSS Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bof-primary: #0066CC;
    --bof-secondary: #00B894;
    --bof-dark: #1a1a2e;
    --bof-light: #f8f9fa;
    --bof-gray: #6c757d;
    --bof-white: #ffffff;
    --bof-gradient: linear-gradient(135deg, #0066CC 0%, #00B894 100%);
    --bof-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    --bof-transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--bof-dark);
    background: var(--bof-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--bof-transition);
}

/* ===== Header ===== */
.bof-header {
    background: var(--bof-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--bof-transition);
}

.bof-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bof-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bof-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bof-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.bof-nav a {
    font-weight: 500;
    position: relative;
}

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

.bof-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bof-gradient);
    transition: var(--bof-transition);
}

.bof-nav a:hover::after {
    width: 100%;
}

.bof-mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bof-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--bof-dark);
    border-radius: 3px;
    transition: var(--bof-transition);
}

/* ===== Hero Section ===== */
.bof-hero {
    background: linear-gradient(135deg, #0066CC 0%, #00B894 100%);
    color: var(--bof-white);
    padding: 8rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bof-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.bof-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bof-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.bof-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.bof-hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.bof-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.bof-btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--bof-transition);
    cursor: pointer;
    border: 2px solid transparent;
    display: inline-block;
}

.bof-btn-primary {
    background: var(--bof-white);
    color: var(--bof-primary);
}

.bof-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.bof-btn-outline {
    background: transparent;
    border-color: var(--bof-white);
    color: var(--bof-white);
}

.bof-btn-outline:hover {
    background: var(--bof-white);
    color: var(--bof-primary);
}

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

/* ===== Section ===== */
.bof-section {
    padding: 5rem 0;
}

.bof-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.bof-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bof-dark);
}

.bof-section-subtitle {
    font-size: 1.2rem;
    color: var(--bof-gray);
}

/* ===== About Section ===== */
.bof-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bof-about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--bof-shadow);
}

.bof-about-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--bof-dark);
}

.bof-about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--bof-gray);
    margin-bottom: 1rem;
}

/* ===== Features Grid ===== */
.bof-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.bof-feature-card {
    background: var(--bof-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--bof-transition);
    text-align: center;
}

.bof-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--bof-shadow);
}

.bof-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bof-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.bof-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--bof-dark);
}

.bof-feature-card p {
    color: var(--bof-gray);
    line-height: 1.6;
}

/* ===== Image Gallery ===== */
.bof-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.bof-image-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--bof-transition);
}

.bof-image-item:hover {
    transform: scale(1.05);
    box-shadow: var(--bof-shadow);
}

.bof-image-caption {
    padding: 1.5rem;
    background: var(--bof-light);
    text-align: center;
    font-weight: 600;
    color: var(--bof-dark);
}

/* ===== Posts Grid ===== */
.bof-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.bof-post-card {
    background: var(--bof-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--bof-transition);
}

.bof-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bof-shadow);
}

.bof-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.bof-post-content {
    padding: 1.5rem;
}

.bof-post-category {
    display: inline-block;
    background: var(--bof-gradient);
    color: var(--bof-white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.bof-post-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--bof-dark);
    font-weight: 700;
}

.bof-post-title a:hover {
    color: var(--bof-primary);
}

.bof-post-excerpt {
    color: var(--bof-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bof-post-meta {
    color: var(--bof-gray);
    font-size: 0.85rem;
}

/* ===== Contact Section ===== */
.bof-contact-section {
    background: var(--bof-light);
    padding: 4rem 0;
}

.bof-contact-box {
    background: var(--bof-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--bof-shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.bof-contact-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--bof-dark);
}

.bof-contact-box p {
    font-size: 1.1rem;
    color: var(--bof-gray);
    line-height: 1.8;
}

/* ===== Footer ===== */
.bof-footer {
    background: var(--bof-dark);
    color: var(--bof-white);
    padding: 3rem 0 1.5rem;
}

.bof-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bof-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.bof-footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bof-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bof-footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.bof-footer-links h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.bof-footer-links ul {
    list-style: none;
}

.bof-footer-links li {
    margin-bottom: 0.8rem;
}

.bof-footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.bof-footer-links a:hover {
    color: var(--bof-secondary);
}

.bof-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Pagination ===== */
.bof-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.bof-pagination a,
.bof-pagination span {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    background: var(--bof-white);
    border: 2px solid var(--bof-light);
    transition: var(--bof-transition);
}

.bof-pagination a:hover,
.bof-pagination .current {
    background: var(--bof-gradient);
    color: var(--bof-white);
    border-color: transparent;
}

/* ===== Single Post ===== */
.bof-single-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.bof-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bof-dark);
}

.bof-single-meta {
    color: var(--bof-gray);
    font-size: 1rem;
}

.bof-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.bof-single-featured {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--bof-shadow);
}

.bof-single-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.bof-single-content h2,
.bof-single-content h3 {
    margin: 2rem 0 1rem;
    color: var(--bof-dark);
}

.bof-single-content img {
    margin: 2rem 0;
    border-radius: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .bof-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--bof-white);
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--bof-transition);
        align-items: flex-start;
    }

    .bof-nav.active {
        right: 0;
    }

    .bof-mobile-toggle {
        display: flex;
    }

    .bof-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .bof-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .bof-mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .bof-hero h1 {
        font-size: 2rem;
    }

    .bof-hero p {
        font-size: 1rem;
    }

    .bof-about-grid {
        grid-template-columns: 1fr;
    }

    .bof-features-grid {
        grid-template-columns: 1fr;
    }

    .bof-image-grid {
        grid-template-columns: 1fr;
    }

    .bof-posts-grid {
        grid-template-columns: 1fr;
    }

    .bof-footer-grid {
        grid-template-columns: 1fr;
    }

    .bof-hero-buttons {
        flex-direction: column;
    }

    .bof-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .bof-header-container {
        padding: 1rem;
    }

    .bof-hero {
        padding: 5rem 1rem 3rem;
    }

    .bof-section {
        padding: 3rem 0;
    }

    .bof-section-title {
        font-size: 1.8rem;
    }
}
