/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #971B2F;
    --primary-dark: #7d1728;
    --primary-light: #c1394e;
    --secondary-color: #2c3e50;
    --text-dark: #101820;
    --text-medium: #4B4F5A;
    --text-light: #67767F;
    --bg-light: #F8F9FA;
    --bg-white: #ffffff;
    --bg-gray: #E3E7EA;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(151, 27, 47, 0.08);
    --shadow-md: 0 8px 16px rgba(151, 27, 47, 0.12);
    --shadow-lg: 0 12px 32px rgba(151, 27, 47, 0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 헤더 */
.header {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo .subtitle {
    font-size: 1.4rem;
    color: var(--text-medium);
    font-weight: 600;
    padding-left: 1.2rem;
    border-left: 2px solid var(--border-color);
    letter-spacing: -0.01em;
    line-height: normal;
}

.nav-btn {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 히어로 섹션 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero-overlay {
    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"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-style: italic;
    font-family: Georgia, serif;
    letter-spacing: 0.02em;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 400;
}

/* 메인 컨텐츠 */
.main-content {
    flex: 1;
    background: var(--bg-white);
}

.view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 서비스 섹션 */
.services-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* 카드 그리드 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 20px 20px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(151, 27, 47, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(151, 27, 47, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: scale(1.05);
}

.card-icon svg {
    width: 36px;
    height: 36px;
}

.card-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.card-description {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: auto;
    font-size: 1rem;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.card-link {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.card:hover .card-link {
    color: var(--primary-dark);
}

.card-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: var(--transition);
}

.card:hover .card-arrow {
    transform: translateX(5px);
    color: var(--primary-dark);
}

/* 상세 화면 */
.detail-view .container {
    max-width: 1000px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-btn svg {
    width: 20px;
    height: 20px;
}

.back-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(-5px);
}

.detail-header {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
}

.detail-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.detail-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 정보 카드 */
.info-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--bg-light);
}

/* 메트릭 그리드 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 태스크 리스트 */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.task-item:hover {
    background: #f0f4f8;
    transform: translateX(5px);
}

.task-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.task-status.in-progress {
    background: #e3f2fd;
    color: #1976d2;
}

.task-status.planned {
    background: #fff3e0;
    color: #f57c00;
}

.task-status.completed {
    background: #e8f5e9;
    color: #388e3c;
}

.task-info h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.task-info p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 파일 리스트 */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
}

.file-item:hover {
    background: #e8eef5;
}

.file-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.file-item span {
    color: var(--text-medium);
}

.placeholder-text {
    color: var(--text-light);
    font-style: italic;
    padding: 2rem;
    text-align: center;
    background: var(--bg-light);
    border-radius: 8px;
}

/* 공지사항 섹션 */
.notice-section {
    padding: 3rem 0 5rem;
    background: var(--bg-light);
}

.notice-box {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.notice-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.notice-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.notice-content {
    flex: 1;
}

.notice-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.notice-text {
    font-size: 1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

.notice-date {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

/* 푸터 */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2.5rem 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer-contact {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* 분기별 보고서 카드 스타일 */
.report-quarter-card {
    position: relative;
    overflow: visible;
}

.quarter-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.report-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.report-status.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.report-status.upcoming {
    background: #fff3e0;
    color: #e65100;
}

/* 반응형 디자인 */
@media (max-width: 1400px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo .subtitle {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .cards-grid {
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }

    .card-badge {
        top: 1rem;
        right: 1rem;
    }

    .notice-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .notice-date {
        margin-top: 1rem;
    }

    .detail-title {
        font-size: 1.8rem;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .header {
        padding: 0.9rem 0;
    }

    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .logo-image {
        height: 40px;
    }

    .logo .subtitle {
        font-size: 1.1rem;
        padding-left: 0;
        border-left: none;
        line-height: normal;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .logo .subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon svg {
        width: 30px;
        height: 30px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        padding: 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
    }
}

