/* ========== TUBE TRACKER STYLES ========== */

/* Toggle View Button */
.toggle-view-btn {
    background: transparent;
    color: var(--lavender-floral);
    border: 1px solid var(--lavender-floral);
    padding: 0.9rem 2.25rem;
    border-radius: 40px;
    font-size: 0.875rem;
    font-weight: 300;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-view-btn:hover {
    background: var(--lavender-floral);
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(180, 145, 222, 0.25);
}

/* Progress Summary */
.tube-progress-summary {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.progress-stat {
    margin-bottom: 1rem;
}

.progress-number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--lavender-floral);
    letter-spacing: -0.02em;
}

.progress-label {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 300;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--lavender-floral), var(--rose-pompadour));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* List View */
.tube-list-view {
    display: block;
}

.tube-line {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tube-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.tube-line-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 12px 12px 0 0;
}

.tube-line-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

.tube-line-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tube-line-info {
    flex: 1;
}

.tube-line-name {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.tube-line-progress {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Collapse button */
.collapse-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.collapse-btn:hover {
    color: var(--text-dark);
}

.collapse-icon {
    transition: transform 0.3s ease;
}

.tube-line.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

/* Stations list with collapse animation */
.tube-stations-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.5rem;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tube-line.collapsed .tube-stations-list {
    max-height: 0 !important;
}

.tube-station {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    background: transparent;
}

.tube-station:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(5px);
}

.tube-station.visited {
    opacity: 0.5;
}

.tube-station.visited:hover {
    opacity: 0.7;
}

.station-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tube-station:not(.visited) .station-indicator {
    border: 2px solid;
}

.tube-station.visited .station-indicator {
    background: #4CAF50;
    border: none;
    position: relative;
}

.tube-station.visited .station-indicator::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.station-name {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.tube-station.visited .station-name {
    text-decoration: line-through;
}

/* TfL Official Line Colors */
.line-bakerloo { background-color: #B36305; border-color: #B36305; }
.line-central { background-color: #E32017; border-color: #E32017; }
.line-circle { background-color: #FFD300; border-color: #FFD300; }
.line-district { background-color: #00782A; border-color: #00782A; }
.line-elizabeth { background-color: #7156A5; border-color: #7156A5; }
.line-hammersmith { background-color: #F3A9BB; border-color: #F3A9BB; }
.line-jubilee { background-color: #A0A5A9; border-color: #A0A5A9; }
.line-metropolitan { background-color: #9B0056; border-color: #9B0056; }
.line-northern { background-color: #000000; border-color: #000000; }
.line-piccadilly { background-color: #003688; border-color: #003688; }
.line-victoria { background-color: #0098D4; border-color: #0098D4; }
.line-waterloo { background-color: #95CDBA; border-color: #95CDBA; }
.line-mildmay { background-color: #00B5E2; border-color: #00B5E2; }
.line-lioness { background-color: #FFD200; border-color: #FFD200; }
.line-suffragette { background-color: #00A166; border-color: #00A166; }
.line-windrush { background-color: #FF0000; border-color: #FF0000; }
.line-weaver { background-color: #823A62; border-color: #823A62; }

/* Map View */
.tube-map-view {
    display: none;
}

.tube-map-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    min-height: 600px;
}

/* Responsive */
@media (max-width: 768px) {
    .tube-progress-summary {
        padding: 1.5rem;
    }

    .progress-number {
        font-size: 2.5rem;
    }

    .tube-line-name {
        font-size: 1.25rem;
    }

    .tube-stations-list {
        grid-template-columns: 1fr;
    }

    .tube-station {
        padding: 1rem 1.25rem;
    }
}
