/* css/info-hub.css */

#info-hub-app .container {
    max-width: 900px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 24px 40px;
    margin: 20px auto;
}

#info-hub-app h1 {
    text-align: center;
    color: #1877f2;
    border-bottom: 2px solid #e9ebee;
    padding-bottom: 10px;
}

#info-hub-app .info-section h2 {
    color: #050505;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ccc;
}

#info-hub-app .info-section p {
    line-height: 1.7;
    color: #606770;
}

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

.stardust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stardust-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stardust-card img {
    width: 96px;
    height: 96px;
    margin-bottom: 10px;
    object-fit: contain;
}

.stardust-card .pokemon-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.stardust-card .stardust-amount {
    font-size: 1.2em;
    color: #e63946;
    font-weight: bold;
    margin-top: 8px;
}

.stardust-card .stardust-amount::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 20px;
    background-image: url('https://raw.githubusercontent.com/PokeMiners/pogo_assets/refs/heads/master/Images/Items/stardust_painted.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* 在螢幕寬度小於 768px 時 (手機板) 的特別樣式 */
@media (max-width: 768px) {
    /* 稍微減少容器的左右內邊距，給卡片更多空間 */
    #info-hub-app .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 將 info-grid 的佈局改為固定的兩欄 */
    .info-grid {
        /* 設定為兩欄，每欄平均分配可用寬度 */
        grid-template-columns: repeat(3, 1fr);
        /* 適當縮小卡片之間的間距 */
        gap: 8px;
    }

    /* 也可以微調卡片內的元素，讓視覺更協調 */
    .stardust-card {
        padding: 12px 8px; /* 上下 12px，左右 8px */
    }

    .stardust-card img {
        width: 80px;
        height: 80px;
    }

    .stardust-card .pokemon-name {
        font-size: 1em; /* 調整字體大小 */
    }

    .stardust-card .stardust-amount {
        font-size: 1.1em; /* 調整字體大小 */
    }

    .stardust-card .stardust-amount::before {
        width: 8px;  /* 調整沙子圖示大小 */
        height: 16px;
    }
}