/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 0;
}

/* Header Styles */
.header {
    background: #111111;
    border-bottom: 2px solid #313ee0;
    padding: 15px 0;
    margin-bottom: 40px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    box-shadow: 0 4px 20px rgba(49, 62, 224, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-left: 40px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Status Tooltip */
.status-tooltip {
    position: absolute;
    background: #1a1a1a;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 2px solid #313ee0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

.status-tooltip.show {
    opacity: 1;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 40, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #1a1a1a;
    border: 2px solid #313ee0;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #2a2a2a;
    background: #111111;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #313ee0;
    color: #ffffff;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.changelog-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2a2a2a;
}

.changelog-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-version {
    font-size: 1.1rem;
    font-weight: 700;
    color: #313ee0;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.changelog-date {
    font-size: 0.85rem;
    color: #808080;
    margin-bottom: 12px;
}

.changelog-changes {
    list-style: none;
    padding: 0;
}

.changelog-changes li {
    color: #c0c0c0;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.changelog-changes li::before {
    content: '►';
    color: #313ee0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Empty changelog state */
.changelog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #888888;
}

/* Products Section */
.products-section {
    margin-bottom: 50px;
}

.products-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(49, 62, 224, 0.5);
}

.products-section h2::after {
    content: '';
    display: block;
    width: 200px;
    height: 2px;
    background: #2a2a2a;
    margin: 10px auto 0;
}

.products-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.product-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: #313ee0;
}

.product-card.undetected::before {
    background: linear-gradient(90deg, #00ff88, #00cc6a);
}

.product-card.detected::before {
    background: linear-gradient(90deg, #ff4757, #ff3742);
}

.product-card.updating::before {
    background: linear-gradient(90deg, #ffa502, #ff9500);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.product-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 10px currentColor;
}

.product-status.undetected {
    background: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

.product-status.detected {
    background: #ff4757;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.6);
}

.product-status.updating {
    background: #ffa502;
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.6);
    animation: pulse 2s infinite;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-description {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-top: 4px;
    font-weight: 400;
}

.product-status-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-status-text.detected {
    color: #ff4757;
}

.product-status-text.updating {
    color: #ffa502;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid #2a2a2a;
    color: #666666;
    font-size: 0.9rem;
    background: #111111;
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #0077e4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-spinner p {
    color: #a0a0a0;
    font-weight: 500;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .product-card {
        padding: 20px;
    }
}

/* Smooth transitions for all interactive elements */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for better UX */
.product-card:hover::before {
    height: 6px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(49, 62, 224, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 119, 228, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(49, 62, 224, 0.6);
} 