/* 시계 읽기 앱 - 새로운 디자인 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 헤더 네비게이션 스타일 (루트 페이지와 완전히 동일) */
.header {
    background: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid #E9ECEF;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FF6B35;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(255,107,53,0.2));
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #FF6B35;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #2C3E50;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-menu a:hover {
    background: rgba(255,107,53,0.1);
    color: #FF6B35;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,53,0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2C3E50;
    transition: 0.3s;
    border-radius: 2px;
}

/* 반응형 헤더 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .nav-menu.active ul {
        flex-direction: column;
        gap: 20px;
    }
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'Noto Sans', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 120px; /* 푸터 공간 */
}

/* 메인 컨텐츠 */
.main-content {
    margin-top: 0;
    min-height: calc(100vh - 120px);
}

/* 히어로 섹션 */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0 0 40px 40px;
    padding: 80px 20px 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.05) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    animation: clockSpin 4s linear infinite;
}

@keyframes clockSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color, #FF6B35);
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #495057;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* 메뉴 섹션 */
.menu-section {
    padding: 0 20px 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* 메뉴 카드 */
.menu-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,107,53,0.1), transparent);
    transition: left 0.6s ease;
}

.menu-card:hover::before {
    left: 100%;
}

.menu-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* 카드 헤더 */
.card-header {
    padding: 30px 30px 20px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.menu-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* 카드 콘텐츠 */
.card-content {
    padding: 25px 30px;
}

.card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    color: #555;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: relative;
    padding-left: 35px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.card-features li:last-child {
    border-bottom: none;
}

.card-features li i {
    color: #4CAF50;
    font-size: 1rem;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* 카드 푸터 */
.card-footer {
    padding: 0 30px 30px 30px;
}

.menu-btn {
    width: 100%;
    padding: 18px 20px;
    background: linear-gradient(135deg, #FF6B35, #FF8659);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.menu-btn:hover::before {
    left: 100%;
}

.menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,107,53,0.3);
}

.menu-btn i {
    font-size: 1.2rem;
}

/* 카드별 색상 테마 */
.learn-card {
    border-top: 4px solid #4CAF50;
}

.learn-card .card-icon {
    color: #4CAF50;
}

.practice-card {
    border-top: 4px solid #FF9800;
}

.practice-card .card-icon {
    color: #FF9800;
}

.make-card {
    border-top: 4px solid #2196F3;
}

.make-card .card-icon {
    color: #2196F3;
}

.game-card {
    border-top: 4px solid #9C27B0;
}

.game-card .card-icon {
    color: #9C27B0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 15px 40px 15px;
        border-radius: 0 0 30px 30px;
    }
    
    .hero-icon {
        font-size: 4rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .menu-section {
        padding: 0 15px 30px 15px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card-header {
        padding: 25px 25px 15px 25px;
    }
    
    .card-content {
        padding: 20px 25px;
    }
    
    .card-footer {
        padding: 0 25px 25px 25px;
    }
    
    .card-title {
        font-size: 1.6rem;
    }
    
    .menu-btn {
        padding: 16px 18px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 50px 10px 30px 10px;
        border-radius: 0 0 25px 25px;
    }
    
    .hero-icon {
        font-size: 3.5rem;
    }
    
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .menu-section {
        padding: 0 10px 25px 10px;
    }
    
    .menu-grid {
        gap: 20px;
    }
    
    .card-header {
        padding: 20px 20px 12px 20px;
    }
    
    .card-content {
        padding: 15px 20px;
    }
    
    .card-footer {
        padding: 0 20px 20px 20px;
    }
    
    .card-icon {
        font-size: 2.5rem;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .card-description {
        font-size: 0.9rem;
    }
    
    .card-features li {
        font-size: 0.85rem;
        padding: 10px 0;
        padding-left: 30px;
    }
    
    .menu-btn {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

/* 애니메이션 효과 */
.menu-card {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.2s; }
.menu-card:nth-child(3) { animation-delay: 0.3s; }
.menu-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 호버 효과 개선 */
.menu-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.05), rgba(255,107,53,0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.menu-card:hover::after {
    opacity: 1;
}