@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
    /* Color Palette - Soft & Modern */
    --bg-color: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    
    --card-radius: 20px;
    --container-width: 800px; /* 가독성을 위해 살짝 좁힘 */
    
    --font-main: "Pretendard Variable", sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Ambient Light Background --- */
.ambient-light {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.logo-symbol { color: var(--primary-color); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0; padding: 0;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-color); }

/* --- Hero Section --- */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
}

.animate-up {
    opacity: 0;
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #EFF6FF;
    color: #3B82F6;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 24px;
    color: #1E293B;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(135deg, #2563EB 0%, #9333EA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    word-break: keep-all;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2); }

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid #E2E8F0;
}
.btn-secondary:hover { background: #F8FAFC; border-color: #CBD5E1; }

/* --- Section Styling --- */
.section-padding { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.sub-header { 
    display: block; font-size: 0.85rem; font-weight: 700; 
    color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; 
}
.section-header h2 { font-size: 2rem; margin: 0 0 12px; font-weight: 700; color: #1E293B; }
.section-header p { color: var(--text-secondary); margin: 0; font-size: 1.05rem; }

.section-header.left-align { 
    text-align: left; display: flex; justify-content: space-between; align-items: flex-end; 
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
}

.bento-item {
    background: white;
    border-radius: var(--card-radius);
    padding: 28px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #F1F5F9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.06);
    border-color: #E2E8F0;
}

/* Specific Items */
.item-large { grid-column: span 2; grid-row: span 2; background: linear-gradient(145deg, #ffffff 0%, #F8FAFC 100%); }
.item-game, .item-quiz, .item-luck, .item-memo { grid-column: span 1; }
.item-survey { grid-column: span 2; background: #FFFBEB; }

.bento-badge {
    position: absolute; top: 20px; right: 20px;
    background: #FF6B6B; color: white;
    padding: 4px 10px; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
}

.icon-box {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; margin-bottom: 16px;
}
.bg-blue { background: #EFF6FF; color: #3B82F6; }
.bg-green { background: #F0FDF4; color: #22C55E; }
.bg-yellow { background: #FEF9C3; color: #EAB308; }
.bg-purple { background: #F3E8FF; color: #A855F7; }
.bg-red { background: #FEE2E2; color: #EF4444; }
.bg-gray { background: #F1F5F9; color: #64748B; }

.bento-content h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; }
.bento-content p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

.item-large .bento-content { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.item-large h3 { font-size: 1.6rem; margin-bottom: 12px; }
.item-large p { font-size: 1.05rem; }
.action-arrow { 
    margin-top: 24px; color: var(--primary-color); font-size: 1.2rem;
}

/* --- Widget & Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid white;
    border-radius: var(--card-radius);
    padding: 32px;
    box-shadow: var(--glass-shadow);
}

/* Fortune Card Specifics */
.widget-section { margin-bottom: 60px; }
.fortune-card { max-width: 500px; margin: 0 auto; position: relative; }
.fortune-header { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 24px; }
.fortune-icon { font-size: 2.5rem; line-height: 1; }
.fortune-header h3 { font-size: 1.1rem; margin: 0 0 4px; }
.fortune-header p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }

.quote-box {
    background: rgba(255,255,255,0.6);
    padding: 24px; border-radius: 16px;
    text-align: center; margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.03);
}
.quote-text { font-size: 1.2rem; font-weight: 700; color: #334155; margin: 0; transition: all 0.3s; }

.lucky-info {
    display: flex; justify-content: space-around;
    padding-bottom: 24px; border-bottom: 1px solid #E2E8F0; margin-bottom: 20px;
}
.lucky-item { text-align: center; }
.lucky-item .label { display: block; font-size: 0.8rem; color: #94A3B8; margin-bottom: 8px; }
.value-box { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 600; font-size: 0.95rem; }
.color-dot { width: 12px; height: 12px; border-radius: 50%; background: #ccc; }
.value-text { font-size: 1.2rem; font-weight: 700; color: #1E293B; }

.btn-refresh {
    width: 100%; padding: 12px; border: none;
    background: #F1F5F9; border-radius: 12px;
    font-weight: 600; color: #475569; cursor: pointer;
    transition: background 0.2s;
}
.btn-refresh:hover { background: #E2E8F0; }

/* --- Game Zone --- */
.play-card { text-align: center; }
.play-text { margin-bottom: 24px; }
.play-text h3 { font-size: 1.3rem; margin-bottom: 8px; }
.game-frame-wrapper {
    position: relative; width: 100%; padding-bottom: 56.25%; /* 16:9 */
    background: #F8FAFC; border-radius: 16px; overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03);
}
.game-frame-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

/* --- Articles & List --- */
.link-view-all { 
    color: var(--primary-color); font-weight: 600; text-decoration: none; 
    font-size: 0.95rem; transition: gap 0.2s; display: flex; align-items: center; gap: 6px;
}
.link-view-all:hover { gap: 10px; }

.article-grid { display: grid; gap: 16px; }
.article-item {
    padding: 24px; background: white; border-radius: 16px;
    border: 1px solid #F1F5F9; transition: background 0.2s;
}
.article-item:hover { background: #F8FAFC; }
.article-item h3 { font-size: 1.1rem; margin: 0 0 6px; }
.article-item p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* --- Share & Comments --- */
.community-section { margin-top: 40px; }
.share-area { text-align: center; margin-bottom: 40px; }
.share-buttons-row { display: flex; justify-content: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.btn-share {
    padding: 10px 20px; border-radius: 100px; border: none;
    font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: transform 0.2s;
}
.btn-share:hover { transform: translateY(-2px); }
.btn-share.kakao { background: #FEE500; color: #191919; }
.btn-share.twitter { background: #000; color: white; }
.btn-share.link { background: white; border: 1px solid #E2E8F0; color: #333; }

/* --- Footer --- */
.main-footer {
    background: white; border-top: 1px solid #E2E8F0;
    padding: 60px 0 40px; margin-top: 100px;
}
.footer-brand .logo-text { font-weight: 800; font-size: 1.2rem; }
.footer-brand p { font-size: 0.9rem; color: #94A3B8; margin-top: 8px; }
.footer-links { margin: 24px 0; display: flex; gap: 24px; font-size: 0.9rem; }
.footer-links a { text-decoration: none; color: #64748B; }
.footer-bottom { 
    display: flex; justify-content: space-between; align-items: center; 
    border-top: 1px solid #F1F5F9; padding-top: 24px; margin-top: 24px;
    font-size: 0.85rem; color: #94A3B8;
}

/* --- Skeleton Loading --- */
.skeleton-line { height: 14px; background: #E2E8F0; border-radius: 4px; margin-bottom: 12px; animation: pulse 1.5s infinite; }
.w-100 { width: 100%; } .w-75 { width: 75%; } .w-50 { width: 50%; }
@keyframes pulse { 0% {opacity: 0.5;} 50% {opacity: 1;} 100% {opacity: 0.5;} }

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.4rem; }
    .hero-desc { font-size: 1rem; padding: 0 10px; }
    .bento-grid { grid-template-columns: 1fr; }
    .item-large, .item-survey { grid-column: span 1; grid-row: auto; }
    .nav-links { display: none; } /* 모바일 메뉴 간소화 */
    .footer-bottom { flex-direction: column; gap: 16px; }
}

a{
     text-decoration-line: none;
}

a:visited { color: blue !important; text-decoration: none; }