:root {
    --primary: #00d2ff;
    --secondary: #3a7bd5;
    --accent: #4ade80;
    --bg-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    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;
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    animation: move 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        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-main);
    text-decoration: none;
    background: var(--glass-bg);
    padding: 12px 24px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    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, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

/* Fishing Specific Styles */

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

.fishing-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;
}

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

.fishing-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    margin-top: 40px !important;
}

.fishing-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-dim);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fishing-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.fishing-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

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

.search-input {
    width: 100%;
    padding: 1rem 1.2rem;
    padding-right: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    color: white;
    font-size: 1rem;
    font-family: 'Noto Sans KR', sans-serif;
    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(0, 210, 255, 0.2);
}

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

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

.fishing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

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

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.location-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

.time-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-weight: 500;
}

.fish-target {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fish-target i {
    color: var(--primary);
}

.score-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 18px;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
}

.score-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.score-bad {
    color: #ef4444;
}

.score-normal {
    color: #fbbf24;
}

.score-good {
    color: #4ade80;
}

.score-verygood {
    color: #00d2ff;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: auto;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.detail-item i {
    width: 20px;
    text-align: center;
    color: var(--secondary);
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 22px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
    margin: 40px auto;
    display: block;
}

.load-more-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.3);
}

.date-badge {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-left: auto;
}

.fish-list {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fish-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 12px;
}

.fish-name {
    flex: 1;
    margin-left: 10px;
    font-weight: 500;
}

.fish-score {
    font-weight: 700;
}

.time-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
}

.time-badge.am {
    background: #fbbf24;
    color: #0f172a;
}

.time-badge.pm {
    background: #3b82f6;
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.status-message i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    color: var(--secondary);
}

.status-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    word-break: keep-all;
}

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

footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .fishing-header {
        padding: 20px;
        border-radius: 25px;
    }

    .fishing-header h1 {
        font-size: 2rem;
    }

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

/* Time Filter Buttons */
.time-filter-group {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    margin-left: 10px;
}

.time-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-filter-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.time-filter-btn.active {
    background: var(--primary);
    color: #0f172a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* Styles for aggregated fish badges */
.fish-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.fish-time-badge {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2px 6px;
    gap: 6px;
}

.fish-time-badge .time-label {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 4px;
    color: #fff;
}

.fish-time-badge .time-label.am {
    background-color: #fbbf24;
    color: #0f172a;
}

.fish-time-badge .time-label.pm {
    background-color: #3b82f6;
}

.fish-time-badge .fish-score {
    font-size: 0.9rem;
}

/* Prediction Styles */
.prediction-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 2rem;
}

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

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

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

.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-today {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-ai {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.prediction-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dim);
    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;
    }
}

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

    .prediction-card {
        background: rgba(15, 23, 42, 0.85);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    }

    .prediction-header {
        border-bottom-color: rgba(255, 255, 255, 0.14);
    }

    .prediction-content {
        color: #e2e8f0;
    }
}

/* AI Disclaimer */
.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;
}
