/* Update Tracker specific styles */

/* Header active state */
nav a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* Tracker hero section */
.tracker-hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.8rem;
    color: var(--color-text-secondary);
}

/* Tracker controls section */
.tracker-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--color-card-bg);
    border-radius: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.filter-controls {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-group label {
    font-size: 1.4rem;
    font-weight: 500;
}

.filter-group select {
    padding: 1rem 3rem 1rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.8rem;
    font-size: 1.5rem;
    background-color: var(--color-background);
    color: var(--color-text);
    min-width: 180px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23515154' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.6rem;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-controls {
    display: flex;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.search-controls input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.8rem;
    font-size: 1.5rem;
    background-color: var(--color-background);
    color: var(--color-text);
}

.search-controls input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-controls button {
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.search-controls button:hover {
    background-color: var(--color-primary-hover);
}

/* Last updated section */
.last-updated {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.update-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.4rem;
    color: var(--color-text-secondary);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-secondary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 0.6rem;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.refresh-btn:hover {
    background-color: var(--color-secondary-hover);
}

.refresh-btn svg {
    transition: transform 0.5s ease;
}

.refresh-btn:hover svg {
    transform: rotate(180deg);
}

/* Tracker table section */
.tracker-table-section {
    margin-bottom: 5rem;
}

.table-container {
    overflow-x: auto;
    background-color: var(--color-card-bg);
    border-radius: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tracker-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.tracker-table th,
.tracker-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.tracker-table th {
    background-color: var(--color-table-header);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tracker-table tr:hover {
    background-color: var(--color-secondary);
}

.tracker-table td:first-child,
.tracker-table th:first-child {
    padding-left: 2rem;
}

.tracker-table td:last-child,
.tracker-table th:last-child {
    padding-right: 2rem;
}

/* Version badge styles */
.version-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    min-width: 80px;
}

.version-badge.stable {
    background-color: var(--color-stable);
}

.version-badge.beta {
    background-color: var(--color-beta);
}

.version-badge.rc {
    background-color: var(--color-rc);
}

/* Action buttons */
.actions {
    display: flex;
    gap: 1rem;
}

.view-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--color-primary);
    color: white;
    border-radius: 0.6rem;
    font-size: 1.3rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color var(--transition-speed);
}

.view-btn:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

/* No results message */
.no-results {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--color-card-bg);
    border-radius: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.no-results p {
    font-size: 1.6rem;
    color: var(--color-text-secondary);
}

.hidden {
    display: none;
}

/* Tracker info section */
.tracker-info {
    margin: 5rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.info-card {
    background-color: var(--color-card-bg);
    border-radius: 1.2rem;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.os-links, .build-info {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.os-links li {
    margin-bottom: 1rem;
}

.build-info li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.build-info li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .tracker-controls {
        flex-direction: column;
        gap: 2rem;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-controls {
        width: 100%;
    }
    
    .last-updated {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .update-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}