/* 重置和基本樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Huninn', 'Noto Sans TC', sans-serif;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 標題區域 */
.header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.logo i {
    font-size: 2.5rem;
    color: #4a90e2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo h1 {
    font-family: 'Huninn', 'Noto Sans TC', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #4a90e2, #7b68ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.4rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 15px;
}

.language-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.lang-btn {
    font-family: 'Huninn', 'Noto Sans TC', sans-serif;
    padding: 8px 16px;
    border: 2px solid #4a90e2;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #4a90e2;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: #4a90e2;
    color: white;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}

.visit-counter {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    color: #666;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: auto;
    height: auto;
}

.visit-counter i {
    color: #4a90e2;
    font-size: 1.2rem;
}

#visit-count {
    font-weight: 600;
    color: #4a90e2;
    font-size: 1.1rem;
}

.time-display-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.real-time,
.game-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.time-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

#current-time,
#game-time {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4a90e2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.date-display {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

#current-date {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* 主要內容區域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 篩選區域 */
.filter-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    font-family: 'Huninn', 'Noto Sans TC', sans-serif;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1.1rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.filter-actions {
    display: flex;
    justify-content: center;
}

.btn {
    font-family: 'Huninn', 'Noto Sans TC', sans-serif;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* 移除舊的時間顯示樣式 */

/* 魚類卡片區域 */
.fish-cards-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.fish-cards-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fish-cards-section h2 i {
    color: #4a90e2;
}

.fish-list-header {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1.5fr 1.5fr;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.header-item {
    display: flex;
    align-items: center;
}

.header-item:first-child {
    grid-column: 2;
}

.fish-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fish-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1.5fr 1.5fr;
    gap: 20px;
    align-items: center;
    padding: 15px 20px;
}

.fish-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.fish-card.currently-available {
    border-left: 4px solid #28a745;
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1), white);
}

.fish-card.currently-available::before {
    content: '現在可釣';
    position: absolute;
    top: 10px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    z-index: 2;
}

.fish-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.fish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 移除 .fish-info 樣式，因為現在使用 grid 佈局 */

.fish-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.fish-period {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.fish-period i {
    font-size: 1rem;
}

.fish-period.day {
    color: #ff8c00;
}

.fish-period.night {
    color: #4a90e2;
}

.fish-period.both {
    color: #6c757d;
}

.fish-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.fish-time i {
    color: #4a90e2;
    font-size: 0.9rem;
}

.fish-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.9rem;
}

.fish-location i {
    color: #4a90e2;
    font-size: 0.9rem;
}

/* 稀有度樣式 */
.fish-card.rarity-common {
    border-left: 4px solid #6c757d;
}

.fish-card.rarity-uncommon {
    border-left: 4px solid #17a2b8;
}

.fish-card.rarity-rare {
    border-left: 4px solid #ffc107;
}


/* 移除模態框樣式 */

/* 頁腳 */
.footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 30px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .visit-counter {
        font-size: 0.9rem;
        padding: 6px 10px;
        min-width: auto;
        height: auto;
        gap: 6px;
    }
    
    .visit-counter i {
        font-size: 1rem;
    }
    
    #visit-count {
        font-size: 1rem;
    }
    
    .language-selector {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .time-display-section {
        gap: 20px;
    }
    
    #current-time,
    #game-time {
        font-size: 1.5rem;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .fish-list-header {
        display: none;
    }
    
    .fish-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 10px;
        position: relative;
    }
    
    .fish-image {
        width: 110px;
        height: 110px;
        position: absolute;
        top: 50%;
        right: 50px;
        transform: translateY(-50%);
        z-index: 1;
        align-self: unset;
    }
    
    .fish-name,
    .fish-period,
    .fish-time,
    .fish-location {
        width: calc(100% - 120px);
        padding-right: 10px;
    }
    
    
    /* 移除模態框響應式樣式 */
}

@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .time-display-section {
        flex-direction: column;
        gap: 15px;
    }
    
    #current-time,
    #game-time {
        font-size: 1.3rem;
    }
    
    .fish-list-header {
        display: none;
    }
    
    .fish-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 12px;
        position: relative;
    }
    
    .fish-image {
        position: absolute !important;
        top: 50% !important;
        right: 40px !important;
        transform: translateY(-50%) !important;
        width: 100px !important;
        height: 100px !important;
        z-index: 1 !important;
        align-self: unset !important;
    }
    
    .fish-name,
    .fish-period,
    .fish-time,
    .fish-location {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.85rem;
        width: calc(100% - 120px);
        padding-right: 10px;
    }
    
    
    .filter-controls {
        gap: 10px;
    }
    
    .fish-card {
        margin-bottom: 10px;
    }
    
    /* 移除模態框響應式樣式 */
}

/* 分頁控制樣式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.pagination-btn {
    font-family: 'Huninn', 'Noto Sans TC', sans-serif;
    padding: 8px 16px;
    border: 2px solid #4a90e2;
    border-radius: 8px;
    background: white;
    color: #4a90e2;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
    background: #4a90e2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
}

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

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-btn {
    font-family: 'Huninn', 'Noto Sans TC', sans-serif;
    width: 40px;
    height: 40px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover {
    border-color: #4a90e2;
    color: #4a90e2;
    transform: translateY(-2px);
}

.page-btn.active {
    background: #4a90e2;
    border-color: #4a90e2;
    color: white;
}

.ellipsis {
    padding: 0 10px;
    color: #999;
    font-weight: 500;
}

.page-info {
    font-family: 'Huninn', 'Noto Sans TC', sans-serif;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 20px;
}

/* 響應式分頁 */
@media (max-width: 768px) {
    .pagination {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .page-numbers {
        order: 0;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .pagination-btn {
        order: 0;
    }
    
    .page-info {
        margin-left: 0;
        text-align: center;
        order: 1;
        width: 100%;
        margin-top: 10px;
    }
}

/* 動畫效果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 平台链接样式 */
.platform-section {
    text-align: center;
    margin-bottom: 20px;
}

.platform-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 500;
}

.platform-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 80px;
}

.platform-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
}

.platform-link i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.platform-link span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* 各平台特定颜色 */
.platform-link.ios {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
}

.platform-link.ios:hover {
    background: linear-gradient(135deg, #e8e8ed 0%, #d1d1d6 100%);
}

.platform-link.ios i {
    color: #000;
}

.platform-link.android {
    background: linear-gradient(135deg, #a4c639 0%, #8bc34a 100%);
    color: white;
}

.platform-link.android:hover {
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    color: white;
}

.platform-link.android i {
    color: white;
}

.platform-link.steam {
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    color: white;
}

.platform-link.steam:hover {
    background: linear-gradient(135deg, #2a475e 0%, #1b2838 100%);
    color: white;
}

.platform-link.steam i {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .platform-links {
        gap: 15px;
    }
    
    .platform-link {
        padding: 12px 16px;
        min-width: 70px;
    }
    
    .platform-link i {
        font-size: 1.8rem;
    }
    
    .platform-link span {
        font-size: 0.8rem;
    }
}
