/* guide-style.css - 가이드 페이지 전용 스타일 */

/* 기본 스타일 */
:root {
    --primary-color: #0056b3;
    --accent-color: #00a0e9;
    --text-color: #333;
    --bg-color: #fff;
    --section-padding: 80px 0;
    --border-radius: 8px;
    --card-bg: #f8f9fa;
    --card-border: #eaeaea;
    --hover-color: #e9f7fe;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* 다크 모드 스타일 */
body.dark-mode {
    --text-color: #f0f0f0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --card-border: #333;
    --hover-color: #1a2c38;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode {
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.dark-mode .page-banner,
body.dark-mode .section-title,
body.dark-mode .section-subtitle,
body.dark-mode .faq-question h3,
body.dark-mode .tip-card {
    color: var(--text-color);
}

body.dark-mode .video-item,
body.dark-mode .tip-card,
body.dark-mode .faq-item,
body.dark-mode .product-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

/* 테마 토글 버튼 */
.theme-toggle {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1000;
    background-color: var(--card-bg);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.theme-toggle .fa-moon {
    display: block;
}

.theme-toggle .fa-sun {
    display: none;
}

body.dark-mode .theme-toggle .fa-moon {
    display: none;
}

body.dark-mode .theme-toggle .fa-sun {
    display: block;
    color: #ffcc00;
}

/* 향상된 배너 */
.guide-banner {
    background-image: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.guide-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/banner-pattern.png');
    opacity: 0.1;
    z-index: 1;
}

.guide-banner .container {
    position: relative;
    z-index: 2;
}

.guide-banner h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.guide-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* 검색 바 */
.search-bar {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-bar button {
    background-color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: var(--transition);
}

.search-bar button:hover {
    background-color: #f8f8f8;
}

/* 비디오 섹션 스타일 */
.video-guide {
    padding: var(--section-padding);
    background-color: var(--bg-color);
}

.video-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.main-video {
    width: 100%;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.main-video iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.youtube-controls {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 15px;
}

.video-item {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.video-item.active {
    border: 2px solid var(--primary-color);
}

.video-thumbnail {
    position: relative;
    width: 180px;
    height: 100px;
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 10px;
    flex-grow: 1;
}

.video-info h4 {
    margin-bottom: 5px;
    font-size: 1rem;
    color: var(--text-color);
}

.video-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* 팁 섹션 스타일 */
.tips-section {
    background-color: #f9f9f9;
    padding: 80px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.tips-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05), rgba(0, 160, 233, 0.05));
    z-index: 0;
}

.tips-section .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.tips-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.tips-section .section-title {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.tips-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.tip-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.tip-card::before {
    content: none;
}

.tip-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.tip-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    transition: var(--transition);
}

.tip-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.tip-card:hover .tip-icon::after {
    transform: scale(1.4);
}

.tip-icon i {
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.tip-card:hover .tip-icon i {
    transform: scale(1.1);
}

.tip-content {
    flex-grow: 1;
}

.tip-content h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 600;
}

.tip-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tip-details {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tip-tag {
    background-color: var(--hover-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.tip-card:hover .tip-tag {
    background-color: var(--primary-color);
    color: white;
}

/* 다크 모드 스타일 */
body.dark-mode .tips-section {
    background-color: #1a1a1a;
    border-color: #333;
}

body.dark-mode .tips-section::before {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(0, 160, 233, 0.1));
}

body.dark-mode .tip-card {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.dark-mode .tip-content p {
    color: #ccc;
}

body.dark-mode .tip-tag {
    background-color: rgba(0, 86, 179, 0.1);
    color: var(--accent-color);
}

body.dark-mode .tip-card:hover .tip-tag {
    background-color: var(--accent-color);
    color: white;
}

/* FAQ 섹션 스타일 */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.03), rgba(0, 160, 233, 0.03));
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/banner-pattern.png');
    opacity: 0.05;
    z-index: 0;
}

.faq-section .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.faq-section .section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.4rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.faq-section .section-title::after {
    display: none;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background-color: var(--card-bg);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.faq-question::before {
    content: none;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.faq-question:hover h3 {
    color: var(--primary-color);
}

.toggle-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.toggle-icon i {
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(0, 86, 179, 0.02);
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 30px 30px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05rem;
}

/* 다크 모드 스타일 */
body.dark-mode .faq-section {
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.05), rgba(0, 160, 233, 0.05));
}

body.dark-mode .faq-item {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

body.dark-mode .faq-answer {
    background-color: rgba(0, 160, 233, 0.05);
}

body.dark-mode .faq-answer p {
    color: #ccc;
}

/* 반응형 스타일 */
@media (max-width: 992px) {
    .video-layout {
        grid-template-columns: 1fr;
    }
    
    .main-video iframe {
        height: 400px;
    }
    
    .video-grid {
        max-height: none;
    }
    
    .video-item {
        flex-direction: column;
    }
    
    .video-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tip-icon {
        width: 70px;
        height: 70px;
    }
    
    .tip-icon i {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .main-video iframe {
        height: 350px;
    }
    
    .tips-section .section-title,
    .faq-section .section-title {
        font-size: 1.8rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-container {
        padding: 0 15px;
    }
    
    .tip-card {
        padding: 25px;
    }
    
    .mobile-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
    }
    
    .mobile-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: var(--transition);
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-color);
        padding: 20px;
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
    }
    
    nav ul li a:hover,
    nav ul li a.active {
        background-color: var(--hover-color);
        color: var(--primary-color);
    }
    
    header.menu-open {
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1001;
        background-color: var(--bg-color);
        box-shadow: var(--shadow-light);
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .tips-section .section-title,
    .faq-section .section-title {
        font-size: 1.6rem;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-container {
        padding: 0 10px;
    }
    
    .tip-icon {
        width: 60px;
        height: 60px;
    }
    
    .tip-icon i {
        font-size: 1.6rem;
    }
    
    .tip-content h3 {
        font-size: 1.2rem;
    }
}

/* 비디오 섹션 스타일 */
.video-guide .section-title {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

/* 푸터 스타일 */
footer {
    background-color: var(--card-bg);
    padding: 60px 0 20px;
    border-top: 1px solid var(--card-border);
}

footer .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.footer-logo p {
    color: #FFFFFF
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-contact {
    max-width: 300px;
}

.footer-contact h3 {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-contact p {
    color: #FFFFFF;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

.footer-bottom p {
    color: #FFFFFF;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    footer .container {
        padding: 0 20px;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .footer-logo, .footer-contact {
        max-width: 100%;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

/* 섹션 제목 밑의 장식 라인 제거 확인 */
.faq-section .section-title::after,
.tips-section .section-title::after,
.video-guide .section-title::after,
.section-title::after {
    display: none;
} 