@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #060c18;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-placeholder {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f8fafc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease;
}

.logo-placeholder:hover {
    transform: scale(1.02);
}

.my-fish-btn {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
    color: #060c18;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 8px 22px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.my-fish-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    color: #060c18;
}

.main-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    margin: 0;
    color: #38bdf8;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover:not([disabled]) {
    background: rgba(255, 255, 255, 0.2);
}

.nav-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

select {
    background: var(--glass-bg);
    color: #f8fafc;
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

select option {
    background: #0f172a;
    color: #f8fafc;
}

.tf-widget {
    background: #111827;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.tf-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.tf-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tf-select {
    background: #1f2937;
    color: #f8fafc;
    border: 1px solid #374151;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
}

.tf-scroll-area {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.4) rgba(255, 255, 255, 0.02);
}

.tf-scroll-area::-webkit-scrollbar {
    height: 8px;
}

.tf-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.tf-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.4);
    border-radius: 10px;
    border: 2px solid #111827;
}

.tf-scroll-area::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.8);
}

.tf-day-card {
    flex: 1;
    min-width: 130px;
    background: #1f2937;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tf-day-header {
    text-align: center;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.tf-wday {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
}

.tf-date {
    color: #f3f4f6;
    font-size: 1.15rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-top: 2px;
}

.tf-struct-row {
    border-left: 2px solid;
    padding: 4px 0 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tf-struct-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tf-icon {
    font-size: 1.1rem;
    cursor: help;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.tf-prob {
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.tf-rating-pill {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.day-card {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 30px;
}

.day-card.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.day-header h2 {
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    margin: 0;
    font-size: 1.8rem;
}

.safety-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
}

.safety-good {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.safety-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.safety-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.observation-panel {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
}

.obs-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.obs-row:last-child {
    margin-bottom: 0;
}

.obs-row strong {
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    min-width: 120px;
}

.obs-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 0.9rem;
    cursor: pointer;
}

.obs-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #06b6d4;
}

.location-group {
    margin-bottom: 40px;
    width: 100%;
    overflow: hidden;
}

.location-header {
    font-family: 'Outfit', sans-serif;
    color: #f8fafc;
    margin: 0 0 20px 0;
    font-size: 1.4rem;
}

.tabs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    width: 100%;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.4) rgba(255, 255, 255, 0.02);
    -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
    height: 8px;
}

.tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.tabs::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.4);
    border-radius: 10px;
    border: 2px solid #060c18;
}

.tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(6, 182, 212, 0.8);
}

.tab-btn {
    flex-shrink: 0;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-width: 4px;
    border-bottom-color: transparent;
    color: #cbd5e1;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(51, 65, 85, 0.8);
}

.tab-btn.active {
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
}

.tab-rating {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 15px;
    color: #0f172a;
    background: #94a3b8;
    font-weight: 800;
}

.tab-content {
    display: none;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    padding: 25px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.info-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
}

.species-info-card {
    display: none;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.species-info-card.open {
    display: flex;
    gap: 20px;
    animation: fadeIn 0.2s ease;
}

.species-img {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.species-rules ul {
    list-style: none;
    margin: 0;
    padding: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.8;
}

.species-rules li strong {
    color: #38bdf8;
}

canvas {
    width: 100%;
    height: 120px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 25px;
}

.time-strategy {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.time-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    flex: 1 1 200px;
}

.time-card h5 {
    margin: 0 0 12px 0;
    color: #06b6d4;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
}

.bait-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bait-row.zero-prob {
    opacity: 0.4;
    text-decoration: line-through;
}

.bait-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 15px;
        margin: 10px auto;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header > div:first-child {
        width: 100%;
        justify-content: space-between;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .location-header {
        font-size: 1.1rem;
    }

    .day-header h2 {
        font-size: 1rem !important;
    }

    .nav-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .safety-banner {
        font-size: 0.9rem;
        padding: 10px 15px;
        gap: 8px;
    }

    .location-selector {
        width: 100%;
    }

    .location-selector select {
        flex-grow: 1;
        font-size: 0.75rem;
        padding: 10px;
    }

    .day-card {
        padding: 15px;
    }

    .obs-row strong {
        font-size: 0.8rem;
    }

    .obs-row label {
        font-size: 0.7rem;
    }

    .tab-btn {
        font-size: 0.7rem;
        padding: 8px 12px;
    }

    .info-btn {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}