/* ============================================
   플로린북스 공개 페이지 전용 CSS
   ============================================ */

/* ---------- CI 컬러 ---------- */
:root {
    --brand-primary: #5A9E8F;
    --brand-primary-dark: #478C7D;
    --brand-primary-light: #E6F3EF;
    --brand-dark: #1C3D38;
    --brand-dark-secondary: #2A524C;
}

/* ---------- 기본 ---------- */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
}

/* ---------- 네비게이션 ---------- */
.public-navbar {
    padding: .6rem 0;
    z-index: 1030;
}
.public-navbar .navbar-brand img {
    transition: transform .2s;
}
.public-navbar .navbar-brand img:hover {
    transform: scale(1.05);
}
.public-navbar .nav-link {
    font-weight: 500;
    color: #333;
    padding: .5rem 1rem;
    transition: color .2s;
}
.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--brand-primary);
}
.public-navbar .btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.public-navbar .btn-brand:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

/* ---------- 메인 콘텐츠 ---------- */
.public-main {
    padding-top: 80px; /* navbar 높이만큼 */
}

/* ---------- 히어로 배너 ---------- */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f5 100%);
    color: #222;
    padding: 80px 0;
    text-align: center;
}
.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
    color: var(--brand-dark);
}
.hero-section p {
    font-size: 1.15rem;
    color: #555;
}
.hero-section .btn-hero {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    padding: .6rem 2rem;
    border-radius: 50px;
}
.hero-section .btn-hero:hover {
    background-color: var(--brand-primary-dark);
}

/* Swiper 히어로 */
.hero-swiper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f5 100%);
}
.hero-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    color: #222;
    text-align: center;
    padding: 60px 20px;
}
.hero-swiper .swiper-slide h1 {
    color: var(--brand-dark);
    font-weight: 800;
    letter-spacing: -.02em;
}
.hero-swiper .swiper-slide p {
    color: #555;
}
.hero-swiper .swiper-pagination-bullet-active {
    background: var(--brand-primary);
}

/* ---------- 섹션 공통 ---------- */
.section-padding {
    padding: 60px 0;
}
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.section-subtitle {
    color: #777;
    margin-bottom: 2.5rem;
}

/* ---------- 작품 카드 (그리드 뷰) ---------- */
.work-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    cursor: pointer;
    color: #333;
    height: 100%;
}
.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    color: #333;
}
.work-card .card-img-wrap {
    overflow: hidden;
    height: 260px;
    background: #f0f0f0;
}
.work-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.work-card:hover .card-img-top {
    transform: scale(1.05);
}
.work-card .card-body {
    padding: 1rem;
}
.work-card .card-title {
    font-size: .93rem;
    font-weight: 600;
    margin-bottom: .3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    color: var(--brand-dark);
}
.work-card .card-text-preview {
    font-size: .8rem;
    color: #888;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.work-card .card-meta {
    display: flex;
    gap: .6rem;
    font-size: .75rem;
    color: #aaa;
}
.work-card .card-meta i {
    margin-right: 2px;
}

/* 카테고리 뱃지 */
.wk-badge {
    font-size: .7rem;
    font-weight: 500;
    padding: .2rem .55rem;
    border-radius: 20px;
    display: inline-block;
}
.badge-works    { background: #e8f5e9; color: #2e7d32; }
.badge-illust   { background: #e3f2fd; color: #1565c0; }
.badge-event    { background: #fce4ec; color: #c62828; }
.badge-publish  { background: #fff8e1; color: #f57f17; }
.badge-news     { background: #f3e5f5; color: #7b1fa2; }
.badge-notice   { background: #eceff1; color: #455a64; }

/* placeholder 이미지 */
.work-card .card-img-placeholder {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
}

/* 탭 필터 */
.works-tab .nav-link {
    color: #666;
    font-weight: 500;
    border: none;
    padding: .5rem 1.2rem;
    border-radius: 50px;
    font-size: .9rem;
    transition: all .2s;
}
.works-tab .nav-link:hover {
    background-color: #f5f5f5;
}
.works-tab .nav-link.active {
    background-color: var(--brand-primary);
    color: #fff;
}

/* 뷰 전환 버튼 */
.view-toggle .btn {
    border: 1px solid #ddd;
    background: #fff;
    color: #888;
    padding: .35rem .65rem;
    font-size: .95rem;
}
.view-toggle .btn.active {
    background: var(--brand-dark);
    color: var(--brand-primary);
    border-color: var(--brand-dark);
}
.view-toggle .btn:hover:not(.active) {
    background: #f5f5f5;
}

/* 더보기 버튼 */
.btn-load-more {
    padding: .6rem 3rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all .2s;
}
.btn-load-more:hover {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

/* ---------- 리스트 뷰 ---------- */
.wk-list-item {
    display: block;
    border-bottom: 1px solid #f0f0f0;
    padding: 1rem 0;
    transition: background .15s;
    color: #333;
}
.wk-list-item:first-child {
    border-top: 2px solid var(--brand-dark);
}
.wk-list-item:hover {
    background: #fafafa;
    color: #333;
}
.wk-list-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.wk-list-thumb {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}
.wk-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wk-list-thumb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}
.wk-list-body {
    flex: 1;
    min-width: 0;
}
.wk-list-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .3rem;
}
.wk-list-date {
    font-size: .75rem;
    color: #aaa;
}
.wk-list-title {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .25rem;
    color: var(--brand-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wk-list-desc {
    font-size: .82rem;
    color: #888;
    margin-bottom: .3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}
.wk-list-meta {
    display: flex;
    gap: .8rem;
    font-size: .75rem;
    color: #bbb;
}
.wk-list-meta i {
    margin-right: 2px;
}

/* ---------- 타임라인 (투고절차) ---------- */
.timeline-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.timeline-step {
    text-align: center;
    position: relative;
    flex: 1;
    min-width: 160px;
    max-width: 220px;
    padding: 0 10px;
}
.timeline-step .step-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: .75rem;
    position: relative;
    z-index: 1;
}
.timeline-step .step-num {
    position: absolute;
    top: -8px;
    right: calc(50% - 40px);
    background: var(--brand-dark);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: .8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.timeline-step h6 {
    font-weight: 600;
    margin-bottom: .3rem;
}
.timeline-step p {
    font-size: .85rem;
    color: #777;
}
.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -10px;
    width: calc(100% - 64px);
    height: 2px;
    background: #ddd;
    z-index: 0;
}

/* ---------- 투고 장르 이미지 카드 ---------- */
.submission-genre-card {
    border-radius: 12px;
    transition: transform .25s, box-shadow .25s;
}
.submission-genre-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.submission-genre-img {
    position: relative;
    overflow: hidden;
}
.submission-genre-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.submission-genre-card:hover .submission-genre-img img {
    transform: scale(1.05);
}
.submission-genre-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,.5));
    text-align: center;
}

/* ---------- 장르 카드 ---------- */
.genre-card {
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color .2s, transform .2s;
}
.genre-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
}
.genre-card i {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: .5rem;
}

/* ---------- FAQ 아코디언 ---------- */
.faq-accordion .accordion-button {
    font-weight: 600;
    color: #333;
    background: #fafafa;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--brand-primary-light);
    color: var(--brand-dark);
    box-shadow: none;
}
.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--brand-primary);
}

/* ---------- 투고 이메일 카드 ---------- */
.email-card {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: #f8f9fa;
    transition: transform .2s;
}
.email-card:hover {
    transform: translateY(-3px);
}
.email-card .email-label {
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .3rem;
}
.email-card .email-addr {
    color: #0d6efd;
    font-size: .85rem;
    word-break: break-all;
}

/* ---------- 회사소개 ---------- */
.about-hero-img {
    background: url('/static/assets/images/about_hero.png') center/cover no-repeat;
    position: relative;
    min-height: 420px;
}
.about-hero-overlay {
    background: rgba(28,61,56,.55);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}
.about-hero-overlay .about-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}
.about-hero-overlay h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.about-hero-overlay p {
    font-size: 1.1rem;
    color: rgba(255,255,255,.85);
    text-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.about-intro-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
}

/* 핵심가치 카드 v2 */
.value-card-v2 {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: transform .25s, box-shadow .25s;
    background: #fff;
    height: 100%;
}
.value-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,.14);
}
.value-card-v2 .value-card-img {
    overflow: hidden;
    height: 220px;
}
.value-card-v2 .value-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.value-card-v2:hover .value-card-img img {
    transform: scale(1.05);
}
.value-card-v2 .value-card-body {
    padding: 1.5rem;
    text-align: center;
}
.value-card-v2 .value-card-body h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: .75rem;
    color: var(--brand-dark);
}
.value-card-v2 .value-card-body h5 i {
    color: var(--brand-primary);
    margin-right: .3rem;
}
.value-card-v2 .value-card-body p {
    color: #666;
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* 파트너 로고 */
.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: .4rem;
    font-weight: 600;
    color: #888;
    font-size: .9rem;
    transition: border-color .2s;
}
.partner-logo:hover {
    border-color: var(--brand-primary);
    color: #333;
}

/* ---------- 대표 작품 캐러셀 ---------- */
.featured-works-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand-dark-secondary));
    overflow: hidden;
}
.featured-works-section .section-title { color: #fff; }
.featured-works-section .section-subtitle { color: rgba(255,255,255,.6); }

.featuredSwiper { padding: 20px 0 50px; }
.featuredSwiper .swiper-slide {
    width: 200px;
    transition: transform .4s;
}
.featuredSwiper .swiper-slide-active {
    transform: scale(1.15);
}
.featured-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.featured-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}
.featured-title {
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: .5rem;
    font-size: .8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.featured-pagination .swiper-pagination-bullet { background: rgba(255,255,255,.5); }
.featured-pagination .swiper-pagination-bullet-active { background: var(--brand-primary); }

/* ---------- 푸터 ---------- */
.public-footer a {
    text-decoration: none;
    transition: color .2s;
}
.public-footer a:hover {
    color: var(--brand-primary-dark) !important;
}

/* ---------- 브랜드 버튼 (공통) ---------- */
.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}
.btn-brand:hover {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
}

/* ---------- 로그인 페이지 네비 (admin CSS 충돌 방지) ---------- */
.public-navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    display: flex !important;
    visibility: visible !important;
    background-color: #fff !important;
    width: 100% !important;
}

/* ---------- 반응형 ---------- */
@media (max-width: 991.98px) {
    .hero-section { padding: 50px 0; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-swiper .swiper-slide { min-height: 260px; padding: 40px 20px; }
    .timeline-steps { flex-direction: column; align-items: center; }
    .timeline-step { max-width: 100%; margin-bottom: 1.5rem; }
    .timeline-step:not(:last-child)::after { display: none; }
    .about-hero-img, .about-hero-overlay { min-height: 320px; }
    .about-hero-overlay h1 { font-size: 1.7rem; }
    .value-card-v2 .value-card-img { height: 180px; }
}

@media (max-width: 575.98px) {
    .hero-section h1 { font-size: 1.5rem; }
    .hero-section p { font-size: 1rem; }
    .section-title { font-size: 1.4rem; }
    .work-card .card-img-wrap,
    .work-card .card-img-placeholder { height: 180px; }
    .public-navbar .navbar-brand img { height: 32px; }
    .wk-list-thumb { width: 80px; height: 60px; }
    .wk-list-title { font-size: .88rem; }
    .wk-list-desc { -webkit-line-clamp: 1; }
    .featuredSwiper .swiper-slide { width: 150px; }
}
