/* Hub Page Shared Styles - Restoring Legacy Hub Aesthetic */

.jr-hero, .tm-hero, .ks-hero {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    animation: fadeInDown 0.8s ease;
}

.jr-hero img, .tm-hero img, .ks-hero img {
    height: 120px;
    width: 120px;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.jr-hero h1, .tm-hero h1, .ks-hero h1 {
    font-size: 3rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: -1px;
}

.jr-hero p, .tm-hero p, .ks-hero p {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.7;
    margin-top: 5px;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding-bottom: 80px;
}

.line-badge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 15px;
    border-radius: 20px;
}

.line-badge-container:hover {
    transform: translateY(-10px);
    background: transparent;
}

.jr-badge {
    width: 85px;
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    border-width: 7px;
    border-style: solid;
    margin-bottom: 12px;
    box-sizing: border-box;
    box-shadow: none;
}

.jr-badge span {
    font-size: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -2px;
    line-height: 1;
}

.metro-badge {
    width: 85px;
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--line-color);
    border-radius: 50%;
    margin-bottom: 12px;
    box-sizing: border-box;
    box-shadow: none;
    position: relative;
}

.metro-badge::after {
    content: '';
    width: 65%;
    height: 65%;
    background: white;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.metro-badge span {
    font-size: 2.2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    color: #000;
    line-height: 1;
    z-index: 2;
    letter-spacing: -1px;
}

.toei-badge {
    width: 85px;
    height: 85px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 20px;
    border-width: 15px;
    border-style: solid;
    border-color: var(--badge-color);
    margin-bottom: 12px;
    box-sizing: border-box;
    box-shadow: none;
}

.toei-badge span {
    font-size: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: #000;
    line-height: 1;
}

.line-name {
    font-size: 0.95rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.3;
}

.line-category {
    margin-top: 80px;
    margin-bottom: 30px;
    border-left: 8px solid var(--text-primary);
    padding-left: 25px;
}

.line-category h3 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.5px;
}

.line-hero {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    min-height: 380px;
    overflow: hidden;
    position: relative;
    animation: fadeInDown 0.8s ease;
}

.line-hero-badge {
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 24px;
    border: 8px solid var(--hero-line-color);
    font-size: 2.5rem;
    font-weight: 900;
    box-shadow: none;
    color: #1e293b;
    margin-bottom: 20px;
}

.line-hero-badge.badge-subway {
    border-radius: 50%;
    background: var(--hero-line-color);
    position: relative;
    border: none;
    color: black;
}

.line-hero-badge.badge-subway::after {
    content: '';
    width: 65%;
    height: 65%;
    background: white;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.line-hero-badge.badge-subway span {
    z-index: 2;
    position: relative;
}

.line-hero-badge.badge-toei {
    background: white;
    border-radius: 24px;
    border-width: 15px;
    border-style: solid;
    border-color: var(--badge-color, var(--hero-line-color));
    color: black;
}

.line-hero-badge.badge-toei span {
    position: relative;
}

@media (max-width: 768px) {
    .line-hero {
        padding: 30px 16px;
        min-height: 240px;
        align-items: flex-start;
        text-align: left;
        border-radius: 16px;
    }
    .line-hero h1 {
        font-size: 2rem !important;
    }
    .line-hero p {
        font-size: 1rem !important;
    }
    .line-hero-badge {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
        border-width: 5px;
        margin-bottom: 14px;
    }
    .jr-hero, .tm-hero, .ks-hero {
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        gap: 16px;
        border-radius: 16px;
    }
    .jr-hero img, .tm-hero img, .ks-hero img {
        height: 80px;
        width: 80px;
    }
    .jr-hero h1, .tm-hero h1, .ks-hero h1 {
        font-size: 1.8rem;
    }
    .jr-hero p, .tm-hero p, .ks-hero p {
        font-size: 1rem;
    }
    .stations-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
        margin-top: 25px;
    }
    .line-badge-container {
        padding: 10px 6px;
    }
    .jr-badge, .metro-badge, .toei-badge {
        width: 65px;
        height: 65px;
        border-width: 5px;
    }
    .jr-badge span, .metro-badge span, .toei-badge span {
        font-size: 1.4rem;
    }
    .line-name {
        font-size: 0.78rem;
    }
    .line-category {
        margin-top: 50px;
        margin-bottom: 20px;
        border-left-width: 5px;
        padding-left: 15px;
    }
    .line-category h3 {
        font-size: 1.5rem;
    }
    .line-category p {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .stations-grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
        gap: 8px;
    }
    .jr-badge, .metro-badge, .toei-badge {
        width: 56px;
        height: 56px;
    }
    .jr-badge span, .metro-badge span, .toei-badge span {
        font-size: 1.1rem;
    }
    .line-name { font-size: 0.72rem; }
    .line-hero h1 { font-size: 1.6rem !important; }
}
