/* Modern CSS Reset & Baseline */
:root {
    /* Color Palette (OKLCH) */
    --primary-green: oklch(0.6 0.22 145);
    --secondary-green: oklch(0.85 0.1 145);
    --bg-light: oklch(0.99 0.005 145);
    --text-dark: oklch(0.2 0.02 145);
    --text-muted: oklch(0.45 0.02 145);
    --accent-red: oklch(0.6 0.18 25);
    --accent-yellow: oklch(0.85 0.15 85);
    
    /* Functional Colors */
    --status-easy: oklch(0.65 0.2 145);
    --status-moderate: oklch(0.8 0.15 85);
    --status-hard: oklch(0.6 0.18 25);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 oklch(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -4px oklch(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px oklch(0.6 0.22 145 / 0.3);

    /* Layout */
    --max-width: 1000px;
    --container-padding: 1.5rem;
}

/* Base Styles */
body {
    font-family: 'Apple SD Gothic Neo', 'Pretendard', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Subtle Texture Background */
.background-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3Base%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: -1;
}

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

/* Typography Enhancements */
h1, h2, h3 {
    letter-spacing: -0.02em;
    font-weight: 800;
}

/* Header / Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green), oklch(0.5 0.15 160));
    color: white;
    padding: 5rem 0;
    text-align: center;
    border-radius: 0 0 40px 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px oklch(0 0 0 / 0.2);
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Base */
.card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid oklch(0.9 0.02 145);
    margin-bottom: 2rem;
}

/* Search Section */
.search-section {
    text-align: center;
    margin-top: -5rem; /* Overlap with hero */
    z-index: 10;
    position: relative;
}

.search-section h3 {
    margin-top: 0;
    color: var(--primary-green);
}

.search-bar {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

input {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    border: 2px solid oklch(0.9 0.02 145);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-glow);
}

button {
    padding: 1rem 2rem;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

button:hover {
    background-color: oklch(0.55 0.2 145);
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

button:active {
    transform: scale(0.98);
}

/* Feedback Messages */
.feedback-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    animation: fadeIn 0.3s ease;
}

.feedback-message.success { background: oklch(0.95 0.05 145); color: var(--primary-green); }
.feedback-message.error { background: oklch(0.95 0.05 25); color: var(--accent-red); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Sections */
.content-section {
    padding: 2rem 0;
}

.content-section > h2 {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    border-left: 6px solid var(--primary-green);
    padding-left: 1rem;
}

.difficulty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Web Component Styles (Inherited via CSS Variables) */
difficulty-card[status="easy"] { --status-color: var(--status-easy); }
difficulty-card[status="moderate"] { --status-color: var(--status-moderate); }
difficulty-card[status="hard"] { --status-color: var(--status-hard); }

/* Detailed Guide Section */
.detailed-guide h2 {
    color: var(--primary-green);
    border-bottom: 3px solid var(--secondary-green);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin: 2.5rem 0;
}

.guide-block h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    border-left: 5px solid var(--secondary-green);
    padding-left: 1rem;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.bullet-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
}

.bullet-list li::before {
    content: "•";
    color: var(--primary-green);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    top: -0.2rem;
}

/* Table Styling */
.table-wrapper {
    overflow-x: auto;
    margin-top: 1.5rem;
    border-radius: 12px;
    border: 1px solid oklch(0.9 0.02 145);
}

.layering-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.layering-table th {
    background-color: oklch(0.95 0.05 145);
    color: var(--primary-green);
    text-align: left;
    padding: 1rem;
    font-weight: 700;
}

.layering-table td {
    padding: 1rem;
    border-top: 1px solid oklch(0.9 0.02 145);
    font-size: 0.95rem;
    line-height: 1.6;
}

.layering-table tr:nth-child(even) {
    background-color: oklch(0.98 0.01 145);
}

/* Pro Tip Box */
.pro-tip-box {
    background-color: oklch(0.95 0.1 85); /* Warm yellow/amber glow */
    padding: 2rem;
    border-radius: 16px;
    border-left: 8px solid var(--status-moderate);
    margin-top: 2rem;
}

.pro-tip-box h4 {
    margin-top: 0;
    color: oklch(0.4 0.15 85);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.pro-tip-box p {
    margin: 0;
    font-style: italic;
    font-weight: 500;
    color: oklch(0.2 0.05 85);
}

/* Checklist Section */
.checklist-card {
    background: oklch(0.98 0.01 145);
}

.checklist {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: white;
    padding: 1.25rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.checklist li:hover {
    transform: translateX(5px);
}

.checklist li::before {
    content: "✅";
    font-size: 1.2rem;
}

.checklist span {
    font-weight: 500;
}

/* Search Result Container */
.search-result-container {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid oklch(0.9 0.02 145);
    text-align: left;
    animation: slideUp 0.4s ease-out;
}

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

.search-result-container h2 {
    color: var(--primary-green);
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.search-result-container p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.mountain-info-box {
    background: oklch(0.97 0.02 145);
    padding: 1.5rem;
    border-radius: 14px;
    margin: 1.5rem 0 0;
    border-left: 5px solid var(--secondary-green);
}

.mountain-info-box strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.mountain-info-box p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .search-bar {
        flex-direction: column;
    }
    
    .hero {
        padding: 4rem 0;
    }
}
