/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    min-height: 100vh;
    color: #e2e8f0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Subtle background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    position: relative;
}

.logo i {
    font-size: 2.5rem;
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { text-shadow: 0 0 20px rgba(59, 130, 246, 0.5); }
    50% { text-shadow: 0 0 30px rgba(59, 130, 246, 0.8); }
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #f8fafc;
    text-shadow: 0 0 20px rgba(248, 250, 252, 0.3);
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    position: relative;
        text-transform: uppercase;
}

.logo h1::after {
    content: '_';
    animation: blink 1.5s infinite;
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Main content */
.main-content {
    flex: 1;
}

/* Search section */
.search-section {
    margin-bottom: 30px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #334155;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 4px 20px rgba(0, 0, 0, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

.search-box input::placeholder {
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

/* Mirrors grid */
.mirrors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.mirror-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mirror-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    transition: left 0.5s ease;
}

.mirror-card:hover::before {
    left: 100%;
}

.mirror-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.9);
}

.mirror-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mirror-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    border: 1px solid;
}

.status-badge[data-status="online"] {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: #10b981;
}

.status-badge[data-status="offline"] {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: #ef4444;
}

.status-badge[data-status="checking"] {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: #f59e0b;
}

.mirror-info {
    margin-bottom: 20px;
}

.mirror-url {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: rgba(15, 23, 42, 0.5);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #3b82f6;
    margin-bottom: 10px;
    word-break: break-all;
    border: 1px solid #334155;
    border-left: 3px solid #3b82f6;
}

.mirror-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.mirror-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    min-width: 120px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
    border-color: #64748b;
}

.btn-secondary:hover {
    background: rgba(100, 116, 139, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 116, 139, 0.3);
}

/* No mirrors state */
.no-mirrors {
    text-align: center;
    grid-column: 1 / -1;
    padding: 60px 20px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #334155;
}

.no-mirrors i {
    font-size: 3rem;
    color: #64748b;
    margin-bottom: 20px;
}

.no-mirrors h3 {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 10px;
}

.no-mirrors p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
    color: #64748b;
    border-top: 1px solid #334155;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .mirrors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mirror-card {
        padding: 20px;
    }
    
    .mirror-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .mirror-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Loading animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Fade in animation */
.mirror-card {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glitch effect for logo */
.logo h1:hover {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
} 