﻿/* Investors Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Roboto:wght@300;400;500;700&display=swap');


:root {
    --primary-color: #000000;
    --secondary-color: #666666;
    --accent-color: #e6e6e6;
    --bg-light: #ffffff;
    --border-color: #eeeeee;
    --text-main: #000000;
    --text-muted: #666666;
    --font-family: 'Roboto', 'Noto Sans KR', sans-serif;
}

.investors-page {
    padding-top: 0;
}

/* Hero Section */
.investors-hero {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../public/images/Rectangle 154.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.investors-hero h1 {
    font-size: 60px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.investors-hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
    word-break: keep-all;
}

/* Sub Nav */
.sub-nav {
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 80px; /* Assuming header height */
    z-index: 100;
}

.sub-nav ul {
    display: flex;
    justify-content: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
    list-style: none;
}

.sub-nav li a {
    display: block;
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.sub-nav li.active a, .sub-nav li a:hover {
    color: var(--text-main);
    border-bottom-color: var(--text-main);
}

/* Content Section */
.content-section {
    padding: 120px 0;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #000;
}

/* Tabs */
.financial-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 12px 30px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

/* DART: 고정 폭 iframe — js/dart_embed_fit.js 가 화면 너비에 맞게 축소·중앙 정렬(가로 스크롤 없음) */
.dart-embed-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 30px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
}

.dart-scale-inner {
    width: 880px;
    height: 950px;
    transform-origin: top left;
}

.dart-iframe {
    display: block;
    width: 880px;
    height: 950px;
    border: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Financial Table Styles */
.financial-table { width: 100%; border-collapse: collapse; border-top: 2px solid #000; min-width: 800px; }
.financial-table th, .financial-table td { padding: 15px; border-bottom: 1px solid #eee; text-align: right; font-size: 15px; }
.financial-table th { background: #f9f9f9; font-weight: 700; color: #333; text-align: center; }
.financial-table th:first-child, .financial-table td:first-child { text-align: left; }
.total-row { background: #fbfbfb; font-weight: 700; }
.table-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 15px; }
.table-header h3 { font-size: 24px; font-weight: 700; }

/* Board Styles (Notice, News, Results, Q&A) */
.ir-preparing { text-align: center; margin-top: 30px; padding: 40px 15px; }
.ir-preparing img { max-width: 100%; height: auto; vertical-align: middle; }

.board-table { width: 100%; border-collapse: collapse; border-top: 2px solid #000; margin-top: 30px; }
.board-table th, .board-table td { padding: 18px 15px; border-bottom: 1px solid #eee; text-align: center; font-size: 16px; }
.board-table th { background: #f9f9f9; font-weight: 600; }
.board-table td { color: #666; }
.board-table .title { text-align: left; font-weight: 500; }
.board-table .title a { color: #333; text-decoration: none; }
.board-table .title a:hover { text-decoration: underline; }
.board-table tr:hover { background: #fcfcfc; }
.board-table .download-link { color: #000; font-weight: 700; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 5px; }
.board-table .views { color: #999; font-size: 14px; }

/* Board View Styles */
.view-container { max-width: 1000px; margin: 0 auto; padding: 0 20px 100px; }
.view-header { border-top: 2px solid #000; border-bottom: 1px solid #ddd; padding: 40px 20px; background: #fafafa; }
.view-title { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: #000; line-height: 1.4; }
.view-info { display: flex; gap: 30px; color: #777; font-size: 15px; }
.view-info span b { color: #333; margin-right: 5px; font-weight: 600; }
.view-content { padding: 60px 20px; line-height: 1.8; font-size: 17px; min-height: 400px; color: #333; }
.view-content img { max-width: 100%; height: auto; }
.view-file { background: #f9f9f9; border: 1px solid #eee; padding: 20px 30px; display: flex; align-items: center; gap: 15px; margin-bottom: 50px; border-radius: 8px; }
.view-file-label { font-weight: 700; color: #000; }
.view-file-link { color: #007bff; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.view-file-link:hover { text-decoration: underline; }
.view-footer { border-top: 1px solid #eee; padding-top: 40px; display: flex; justify-content: center; }
.btn-list { padding: 15px 50px; background: #000; color: #fff; text-decoration: none; border-radius: 4px; font-weight: 500; transition: 0.3s; }
.btn-list:hover { background: #333; }

/* Search */
.search-box {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
    gap: 10px;
}

.search-box input {
    padding: 10px 20px;
    border: 1px solid #ddd;
    width: 300px;
    border-radius: 4px;
}

.search-box button {
    padding: 10px 25px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: 0.3s;
}

.pagination button.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pagination button:hover:not(.active) {
    background: #f5f5f5;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Contact IR Premium Styles */
.contact-section-v2 { padding: 100px 0; }
.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 120px; align-items: center; }
.contact-info-left h3 { font-size: 32px; font-weight: 700; margin-bottom: 20px; }
.contact-info-left p { color: #666; font-size: 18px; margin-bottom: 40px; line-height: 1.6; }
.info-list { list-style: none; }
.info-list li { display: flex; align-items: center; padding: 25px 0; border-bottom: 1px solid #eee; }
.info-list .label { width: 120px; font-weight: 700; color: #000; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.info-list .value { font-size: 18px; color: #333; }

.contact-method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.contact-method-card { background: #fff; border: 1px solid #eee; padding: 50px 40px; border-radius: 12px; transition: var(--transition); text-align: center; }
.contact-method-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); border-color: #000; }
.contact-method-card .icon-box { width: 80px; height: 80px; background: #fafafa; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 30px; }
.contact-method-card h4 { font-size: 24px; font-weight: 700; margin-bottom: 15px; }
.contact-method-card p { color: #777; margin-bottom: 30px; font-size: 15px; line-height: 1.5; }
.contact-method-card .btn-outline { display: inline-flex; padding: 12px 40px; border: 1px solid #000; color: #000; text-decoration: none; border-radius: 30px; font-weight: 600; transition: 0.3s; }
.contact-method-card .btn-outline:hover { background: #000; color: #fff; }

@media (max-width: 991px) {
    .contact-info-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .contact-info-left p { margin: 0 auto 40px; }
    .info-list li { justify-content: center; }
    .info-list .label { width: 80px; text-align: left; }
    .contact-method-grid { grid-template-columns: 1fr; }
}

/* 작은 스마트폰 ~ 갤럭시 Z Fold 펼침 ~ iPad Pro 13" 세로(~1024px) — 모바일 fluid scaling */
@media (max-width: 1024px) and (orientation: portrait) {
    .investors-hero { height: clamp(280px, 50vw, 480px); min-height: 280px; }
    .investors-hero h1 { font-size: clamp(26px, 6vw, 52px); }
    .investors-hero p { font-size: clamp(13px, 3.2vw, 22px); padding: 0 clamp(16px, 3.6vw, 32px); }

    .sub-nav { top: clamp(50px, 8.5vw, 80px); }
    /* 가로 스크롤 없이 전체 탭 노출: 줄바꿈 + 중앙 정렬 */
    .sub-nav ul {
        overflow-x: visible;
        justify-content: center;
        flex-wrap: wrap;
        padding: 0 clamp(6px, 1.6vw, 14px);
        row-gap: 0;
    }
    .sub-nav li a {
        white-space: nowrap;
        padding: clamp(10px, 2.2vw, 18px) clamp(6px, 2vw, 18px);
        font-size: clamp(12px, 2.8vw, 18px);
    }

    .content-section { padding: clamp(50px, 10vw, 100px) 0; }
    .section-title { font-size: clamp(22px, 5vw, 40px); margin-bottom: clamp(28px, 6vw, 56px); }

    /* IR 준비중 이미지: 모바일에서 크게·위로 */
    .content-section .container:has(> .ir-preparing) > .section-title { margin-bottom: 14px; }
    .ir-preparing { margin-top: 0; padding: 4px clamp(10px, 2.4vw, 18px) clamp(20px, 4.4vw, 40px); }
    .ir-preparing img {
        display: block;
        width: min(100%, 94vw, 560px);
        max-width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .financial-tabs { flex-wrap: wrap; gap: clamp(6px, 1.6vw, 14px); }
    .tab-btn { padding: clamp(8px, 2vw, 14px) clamp(14px, 3.4vw, 28px); font-size: clamp(12px, 2.8vw, 18px); flex: 1 1 calc(50% - 10px); min-width: clamp(120px, 28vw, 200px); }

    .table-header { flex-direction: column; align-items: flex-start; gap: clamp(8px, 1.8vw, 16px); }
    .table-header h3 { font-size: clamp(17px, 4vw, 28px); }
}

/* Table Responsive Helper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #999;
}
