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

:root {
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #06b6d4;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --bg-color: #f0f9ff;
    --card-bg: #ffffff;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 0 30px;
}

.header-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.subtitle {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: 400;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
    position: relative;
}

.search-box {
    position: relative;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    padding: 18px 55px 18px 55px;
    border: 2px solid transparent;
    font-size: 1.1rem;
    font-family: 'Noto Sans KR', sans-serif;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.clear-btn:hover {
    background: var(--text-medium);
}

.clear-btn i {
    color: white;
    font-size: 0.9rem;
}

/* Suggestion List */
.suggestion-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.suggestion-list.show {
    display: block;
}

.suggestion-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-color);
}

.suggestion-item-name {
    font-weight: 500;
    color: var(--text-dark);
}

.suggestion-item-region {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-left: 8px;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.text-btn {
    background: none;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.text-btn:hover {
    color: var(--primary-color);
}

/* Favorites Section */
.favorites-section {
    margin-bottom: 30px;
}

.favorites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.favorite-item {
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid transparent;
}

.favorite-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.favorite-name {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.favorite-remove {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
    padding: 4px;
}

.favorite-remove:hover {
    color: #ef4444;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Result Section */
.result-section {
    margin-bottom: 40px;
}

.result-container {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 30px;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.welcome-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-light);
    opacity: 0.5;
}

.welcome-message p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Result Card */
.result-card {
    animation: fadeIn 0.3s ease-in-out;
}

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

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.result-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.result-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-seoul {
    background: #dbeafe;
    color: #1e40af;
}

.badge-gyeonggi {
    background: #dcfce7;
    color: #166534;
}

.badge-remote {
    background: #fef3c7;
    color: #92400e;
}

.favorite-btn {
    background: none;
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.favorite-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.favorite-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.favorite-btn.active i {
    color: white;
}

/* Calendar */
.calendar {
    margin-top: 20px;
}

.calendar-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.day {
    text-align: center;
    padding: 20px 10px;
    border-radius: 12px;
    background: var(--bg-color);
    transition: all 0.3s;
}

.day.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.day-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.day.active .day-name {
    color: white;
}

.day-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

.day.active .day-label {
    color: rgba(255, 255, 255, 0.9);
}

/* Details */
.details {
    margin-top: 25px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.detail-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item i {
    color: var(--primary-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
}

.detail-value {
    color: var(--text-medium);
    line-height: 1.6;
}

.daily-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Remote Area Notice */
.remote-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
}

.remote-notice-icon {
    font-size: 3rem;
    color: #d97706;
    margin-bottom: 15px;
}

.remote-notice-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 15px;
}

.remote-notice-content {
    font-size: 1rem;
    color: #78350f;
    line-height: 1.8;
    margin-bottom: 15px;
}

.remote-notice-highlight {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    color: #b45309;
    border-left: 4px solid #f59e0b;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.footer-notice {
    margin-top: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: left;
}

.footer-notice-title {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.footer-note:first-of-type {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 30px 0 20px;
    }

    .header-content {
        padding: 25px 20px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo i {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .search-input {
        padding: 16px 50px 16px 50px;
        font-size: 1rem;
    }

    .favorites-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .result-container {
        padding: 20px;
    }

    .result-title h3 {
        font-size: 1.5rem;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .week-days {
        gap: 8px;
    }

    .day {
        padding: 16px 8px;
    }

    .day-name {
        font-size: 0.85rem;
    }

    .day-label {
        font-size: 0.75rem;
    }

    .details {
        padding: 16px;
    }

    .detail-item {
        flex-direction: column;
        gap: 4px;
    }

    .detail-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .favorites-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .week-days {
        gap: 6px;
    }

    .day {
        padding: 12px 6px;
    }

    .welcome-message i {
        font-size: 3rem;
    }

    .welcome-message p {
        font-size: 1rem;
    }
}

/* Scrollbar Styling */
.suggestion-list::-webkit-scrollbar {
    width: 6px;
}

.suggestion-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

.suggestion-list::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 10px;
}

.suggestion-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-medium);
}
