/* page2/css/styles.css */

/* 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    background: #f5f5f5;
}

/* 메인 컨테이너 */
.main-container {
    width: 95vw;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    padding-top: 120px;
}

/* 텍스트 영역 (첫 번째 섹션) */
.text-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0px;
    padding: 10px 130px;
    word-break: normal;
    word-wrap: break-word;
    height: 300px;
    background: #0a0a0a;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

/* 별 배경 */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.star.small {
    width: 2px;
    height: 2px;
    animation-duration: 2s;
}

.star.medium {
    width: 3px;
    height: 3px;
    animation-duration: 3s;
}

.star.large {
    width: 4px;
    height: 4px;
    animation-duration: 4s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 텍스트 콘텐츠 */
.text-content {
    position: relative;
    z-index: 1;
    color: white;
}

.subtitle {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 10px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.subtitle::after {
    content: ' ↗';
    font-size: 16px;
    opacity: 0.6;
}

.title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* FAQ 섹션 */
.faq-section {
    width: 95vw;
    max-width: 1800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

.section-title::after {
    content: '↗';
    margin-left: 8px;
    font-size: 28px;
    opacity: 0.6;
}

/* FAQ 그리드 */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.announce-section {
    width:95vw;
    max-width: 1800px;
    margin: 0 auto;
    padding: 60px 20px;
    overflow:hidden;
    /* margin-bottom:60px; */
}
.announce-section .faq-grid{
    display:flex;
    animation: slideIn 30s linear infinite;
}
@keyframes slideIn {
    from {
        /* opacity: 0; */
        transform: translateX(0);
    }
    to {
        /* opacity: 1; */
        transform: translateX(-100%);
    }
}
.announce-section .faq-grid .faq-card{
    flex-shrink:0;
}

/* FAQ 카드 */
.faq-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.faq-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.faq-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faq-card:hover .faq-image img {
    transform: scale(1.05);
}

.faq-content {
    padding: 24px;
}

.faq-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.faq-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.faq-meta {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* 반응형 */
@media (max-width: 1400px) {
    .faq-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 1024px) {
    .text-section {
        padding: 10px 80px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .text-section {
        padding: 10px 40px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .faq-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .faq-image {
        height: 150px;
    }
    
    .faq-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .text-section {
        padding: 10px 20px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* 상품 카테고리 섹션 */
.product-section {
    width: 95vw;
    max-width: 1800px;
    margin: 80px auto 40px;
    padding: 0 20px;
}

.product-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.category-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.category-row:last-child {
    margin-bottom: 0;
}

/* 카테고리 아이템 */
.category-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    min-height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
    line-height: 1.4;
}

.category-text small {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 400;
    margin-top: 2px;
}

/* 하이라이트 아이템 (파란색) */
.category-item.highlight {
    background: #1a73e8;
    border-color: #1a73e8;
    color: white;
}

.category-item.highlight:hover {
    background: #1557b0;
    border-color: #1557b0;
}

.category-item.highlight .category-text {
    color: white;
}

.category-item.highlight .category-text small {
    color: rgba(255, 255, 255, 0.9);
}

.arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 18px;
    color: white;
    font-weight: 300;
}

/* 반응형 - 상품 카테고리 */
@media (max-width: 1200px) {
    .category-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .product-container {
        padding: 24px 16px;
    }
    
    .category-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .category-item {
        padding: 16px 8px;
        min-height: 70px;
    }
    
    .category-text {
        font-size: 14px;
    }
    
    .category-text small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .category-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-item {
        padding: 14px 8px;
        min-height: 60px;
    }
    
    .category-text {
        font-size: 13px;
    }
}

/* 게시판 섹션 */
.board-section {
    width: 95vw;
    max-width: 1800px;
    margin: 80px auto;
    padding: 0 20px 60px;
}

.board-header {
    margin-bottom: 30px;
}

.board-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.board-count {
    color: #2a7cc0;
    font-weight: 600;
}

/* 게시판 테이블 */
.board-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-table {
    width: 100%;
    border-collapse: collapse;
}

.faq-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.faq-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.faq-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.faq-table tbody tr:hover {
    background-color: #f8f9fa;
}

.faq-table td {
    padding: 16px;
    font-size: 14px;
    color: #495057;
    text-align: left;;
}

/* 컬럼 너비 */
.col-category {
    width: 120px;
}

.col-title {
    width: auto;
}

.col-date {
    width: 150px;
    text-align: center;
}

.col-views {
    width: 100px;
    text-align: center;
}

/* 게시판 셀 스타일 */
.category {
    font-weight: 500;
    color: #666;
}

.title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.title a:hover {
    color: #2a7cc0;
}

.date {
    color: #999;
    text-align: center;
}

.views {
    color: #999;
    text-align: center;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 0;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.page-btn.active {
    background: #2a7cc0;
    color: white;
    border-color: #2a7cc0;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.prev,
.page-btn.next {
    font-weight: bold;
}

/* 반응형 - 게시판 */
@media (max-width: 768px) {
    .board-title {
        font-size: 24px;
    }
    
    .faq-table {
        font-size: 13px;
    }
    
    .faq-table th,
    .faq-table td {
        padding: 12px 8px;
    }
    
    .col-category {
        width: 80px;
    }
    
    .col-date {
        width: 100px;
    }
    
    .col-views {
        width: 60px;
    }
}

@media (max-width: 480px) {
    /* 모바일에서는 카테고리와 조회수 숨김 */
    .col-category,
    .category,
    .col-views,
    .views {
        display: none;
    }
    
    .faq-table th,
    .faq-table td {
        padding: 10px 12px;
    }
    
    .title a {
        font-size: 13px;
    }
    
    .date {
        font-size: 12px;
    }
}