/* beach.css */
:root {
    --primary: #10b981;
    /* Emerald Green for pollen/nature */
    --primary-light: #34d399;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: hidden;
    position: relative;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blob-bounce 10s infinite ease-in-out;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #10b981;
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #84cc16;
    /* Lime Green */
    animation-delay: -5s;
}

@keyframes blob-bounce {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.back-btn {
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
    border-color: var(--primary);
}

.brand-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #10b981, #84cc16);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

.pollen-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.pollen-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pollen-header .page-description {
    margin-bottom: 50px !important;
    margin-top: -10px !important;
    display: block !important;
}

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

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.2rem;
    padding-right: 3rem;
    border-radius: 18px;
    color: white;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.search-btn {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    transition: color 0.3s;
}

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

/* Prediction Cards */
.prediction-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .prediction-container {
        grid-template-columns: 1fr;
    }
}

.prediction-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.prediction-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.prediction-header i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.prediction-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex: 1;
}

.badger {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.badge-ai {
    background: rgba(16, 185, 129, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.prediction-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-line;
    flex: 1;
}

/* Skeleton Loading */
.skeleton-text {
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 8px;
    animation: skeleton-pulse 1.5s infinite;
}

.skeleton-text.short {
    width: 60%;
}

@keyframes skeleton-pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.5;
    }
}

.ai-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin-bottom: 2rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 500;
}

.ai-disclaimer i {
    font-size: 1rem;
    opacity: 0.8;
}

.pollen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.pollen-grid .status-message {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
}

.kakao-ad-results-wrapper {
    grid-column: 1 / -1;
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin: 20px 0;
}

.pollen-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.pollen-card:hover {
    transform: translateY(-5px) !important;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.location-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.score-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.score-badge.score-good {
    color: #34d399;
    background: rgba(16, 185, 129, 0.2);
}

.score-badge.score-verygood {
    color: #0ea5e9;
    background: rgba(14, 165, 233, 0.2);
}

.score-badge.score-bad {
    color: #f87171;
    background: rgba(239, 68, 68, 0.2);
}

.score-badge.score-normal {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.2);
}

.date-badge {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sub-data-row {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 0.5rem;
}

.time-row {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    gap: 12px;
}

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

.row-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.row-details span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.row-details i {
    color: var(--primary-light);
    width: 14px;
}

.time-tag {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-primary);
}

.loading-spinner {
    display: none;
    justify-content: center;
    padding: 2rem;
}

.status-message {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.status-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

footer {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
}

.source-info {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.source-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.source-text {
    font-size: 0.8rem;
    color: var(--text-primary);
}