/* index2.html 전용 스타일 (오투어 글로벌 여행 가이드) */

/* CSS Variables & Reset */
:root {
    --bg-gradient: linear-gradient(160deg, #0f172a 0%, #1e1b4b 45%, #0b2e3b 78%, #1a1440 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-bg: rgba(255, 255, 255, 0.07);
    --glass-hover-border: rgba(255, 255, 255, 0.18);
    --primary-color: #6366f1;
    --secondary-color: #ec4899;
    --accent-color: #22d3ee;
    --accent-warm: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition-speed: 0.4s;
}


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

body {
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.18) 0%, rgba(0, 0, 0, 0) 45%),
        radial-gradient(circle at 85% 15%, rgba(236, 72, 153, 0.14) 0%, rgba(0, 0, 0, 0) 45%),
        radial-gradient(circle at 50% 90%, rgba(34, 211, 238, 0.12) 0%, rgba(0, 0, 0, 0) 50%);
    pointer-events: none;
    z-index: -1;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(30, 27, 75, 0.75), rgba(11, 46, 59, 0.75));
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 30px 0 30px;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -220px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.16) 0%, rgba(0, 0, 0, 0) 70%);
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
    color: var(--text-main);
}

.hero h1 span {
    background: linear-gradient(to right, #a5b4fc, #fbcfe8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    z-index: 1;
    position: relative;
}

/* Search & Filter Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    z-index: 1;
    position: relative;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 16px;
    outline: none;
    backdrop-filter: blur(5px);
    transition: all var(--transition-speed) ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-main);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Travel Destination Cards Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--primary-color);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid .card:nth-child(3n+2) {
    border-top-color: var(--secondary-color);
}

.grid .card:nth-child(3n+3) {
    border-top-color: var(--accent-color);
}

.card:hover {
    transform: translateY(-8px);
    border-left-color: var(--glass-hover-border);
    border-right-color: var(--glass-hover-border);
    border-bottom-color: var(--glass-hover-border);
    background: var(--glass-hover-bg);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.2);
}

.card-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.85), rgba(236, 72, 153, 0.85));
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title span.flag {
    font-size: 24px;
}

.card-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--accent-color);
}

/* Modal Style */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: linear-gradient(160deg, rgba(30, 27, 75, 0.75), rgba(11, 46, 59, 0.75));
    border: 1px solid var(--glass-hover-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 700px;
    border-radius: 28px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition-speed);
}

.modal-close-btn:hover {
    background: var(--secondary-color);
}

.modal-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-body {
    padding: 35px;
}

.modal-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-wiki-text {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.7;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 16px;
}

.modal-grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.modal-grid-item i {
    color: var(--secondary-color);
    width: 20px;
}

.modal-grid-item strong {
    color: var(--text-main);
}

.modal-grid-item span {
    color: var(--text-muted);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(11, 46, 59, 0.4) 100%);
}

footer p {
    margin-bottom: 10px;
}

/* Skeleton Loading State */
.skeleton-card {
    height: 380px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Live RSS News Section */
.news-section {
    padding: 30px 0 60px;
    background: linear-gradient(180deg, rgba(34, 211, 238, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-title i {
    color: var(--accent-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 28px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-bottom: 3px solid var(--accent-color);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform var(--transition-speed) ease,
        border-color var(--transition-speed) ease,
        background var(--transition-speed) ease;
}

.news-grid .news-card:nth-child(3n+2) {
    border-bottom-color: var(--accent-warm);
}

.news-grid .news-card:nth-child(3n+3) {
    border-bottom-color: var(--secondary-color);
}

.news-card:hover {
    transform: translateY(-6px);
    border-top-color: var(--glass-hover-border);
    border-left-color: var(--glass-hover-border);
    border-right-color: var(--glass-hover-border);
    background: var(--glass-hover-bg);
}

.news-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.news-card-body {
    padding: 16px 18px;
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
}

.news-download-card {
    border-bottom: 3px solid var(--accent-warm);
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.1));
}

.news-download-card .news-card-img {
    height: 100%;
}

/* Responsive Queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal spots & region badge (모달 상세 정보) */
.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-region-badge {
    background: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.modal-spots-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 14px;
}

.modal-spots-header em {
    font-style: normal;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.modal-spots-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spot-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px 18px;
    transition: background 0.3s ease;
}

.spot-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.spot-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spot-name i {
    color: var(--secondary-color);
    font-size: 13px;
}

.spot-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spots-loading,
.spots-error {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.spots-loading i,
.spots-error i {
    display: block;
    font-size: 28px;
    margin-bottom: 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spots-loading i {
    animation: spin 1s linear infinite;
    color: var(--primary-color);
}
