/* PDF 뷰어 페이지 바디 오버라이드 */
body {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    justify-content: flex-start;
}

/* PDF 카드 전용 사이즈 조절 */
.pdf-card {
    max-width: 56rem !important; /* PDF 뷰어에 더 넓은 공간을 주기 위해 44rem을 오버라이딩 */
    margin-bottom: 2rem;
}

/* 안내 배너 */
.info-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.info-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.info-text {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.5;
}

.info-text code {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.15rem 0.4rem;
    border-radius: 0.3rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    word-break: break-all;
}

/* 기술 스펙 카드 */
.tech-spec {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.tech-spec h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.tech-spec p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tech-spec ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tech-spec li {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #4b5563;
    position: relative;
    padding-left: 1.25rem;
}

.tech-spec li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0.4rem;
    top: 0;
}

/* PDF 뷰어 컨테이너 */
.viewer-container {
    width: 100%;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    position: relative;
}

.viewer-container iframe {
    display: block;
    border: none;
}

/* 반응형 로직 */
.responsive-viewer {
    display: block;
}

.responsive-download {
    display: none;
}

/* 1280x720 미만일 때 (가로가 1280 미만 이거나 세로가 720 미만인 경우) */
@media (max-width: 1279px), (max-height: 719px) {
    .responsive-viewer {
        display: none;
    }
    .responsive-download {
        display: block;
    }
    .pdf-card {
        max-width: 32rem !important; /* 저해상도에서는 카드 너비를 줄임 */
    }
}

/* 다운로드 카드 스타일링 */
.download-card {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.download-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.download-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #ffffff;
    padding: 1.1rem 2.2rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-download:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    filter: brightness(1.1);
}

.btn-download .icon {
    font-size: 1.2rem;
}

/* 하단 액션 및 홈 링크 (공통화) */
.actions {
    margin-top: 1rem;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
}

.link-home {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
    opacity: 0.7;
}

.link-home:hover {
    color: var(--accent-blue);
    opacity: 1;
    text-decoration: underline;
}
