/* ============================================
   DOWNDETECTOR CLONE - ESTILOS PRINCIPAIS
   Design: Minimalismo Corporativo Moderno
   ============================================ */

/* Reset e Variáveis Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #ffffff;
    --color-gray-900: #1a1a1a;
    --color-gray-600: #666666;
    --color-gray-500: #999999;
    --color-gray-200: #e8e8e8;
    --color-gray-100: #f5f5f5;
    --color-gray-50: #fafafa;
    --color-red: #e74c3c;
    --color-green: #27ae60;
    --color-yellow: #f39c12;
    --color-blue: #3498db;
    --color-dark-blue: #003da5;
    --color-light-green: #25d366;
    
    --font-poppins: 'Poppins', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-inter);
    background-color: var(--color-white);
    color: var(--color-gray-900);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-poppins);
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 1.25rem 2rem;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-circle {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s ease;
}

.logo-circle:hover {
    box-shadow: var(--shadow-lg);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gray-900);
    margin: 0;
}

.text-red {
    color: var(--color-red);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    font-weight: 500;
    margin: 0;
}

.system-status {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

@media (min-width: 768px) {
    .system-status {
        display: flex;
    }
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--color-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    padding: 3rem 0;
    min-height: calc(100vh - 80px);
}

/* Title Section */
.title-section {
    margin-bottom: 3rem;
}

.title-section h2 {
    font-size: 2rem;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .title-section h2 {
        font-size: 2.25rem;
    }
}

.title-section p {
    color: var(--color-gray-600);
    font-size: 1rem;
}

/* Statistics Section */
.stats-section {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--color-gray-100);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-green) 0%, var(--color-green) 100%);
    border-radius: 9999px;
    transition: width 0.5s ease;
    width: 83%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .stats-grid {
        gap: 1.5rem;
    }
}

.stat-card {
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid;
    transition: box-shadow 0.3s ease;
}

@media (min-width: 640px) {
    .stat-card {
        padding: 1.5rem;
    }
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-online {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.stat-degraded {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

.stat-offline {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
}

.stat-icon {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.stat-online .stat-number {
    color: var(--color-green);
}

.stat-degraded .stat-number {
    color: var(--color-yellow);
}

.stat-offline .stat-number {
    color: var(--color-red);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

.stat-online .stat-label {
    color: #166534;
}

.stat-degraded .stat-label {
    color: #92400e;
}

.stat-offline .stat-label {
    color: #991b1b;
}

/* Services Section */
.services-section {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Service Card */
.service-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease-out;
    overflow: hidden;
    position: relative;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-0.5rem);
    border-color: var(--color-gray-300);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.25rem;
    background: linear-gradient(90deg, transparent, var(--color-gray-200), transparent);
    opacity: 1;
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.3;
}

.service-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-900);
    text-align: center;
    margin-bottom: 1rem;
}

.wave-container {
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-50);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.wave-svg {
    width: 100%;
    height: 100%;
}

.status-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.status-dot-small {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot-small.online {
    background-color: var(--color-green);
}

.status-dot-small.degraded {
    background-color: var(--color-yellow);
}

.status-dot-small.offline {
    background-color: var(--color-red);
}

.status-text {
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-text.online {
    background-color: #dcfce7;
    color: #166534;
}

.status-text.degraded {
    background-color: #fef3c7;
    color: #92400e;
}

.status-text.offline {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    border-top: 1px solid var(--color-gray-200);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer p {
    color: var(--color-gray-600);
    font-size: 0.875rem;
    margin: 0;
}

.footer-copyright {
    color: var(--color-gray-500);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */

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

.service-card {
    animation: slideIn 0.3s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }
.service-card:nth-child(7) { animation-delay: 0.35s; }
.service-card:nth-child(8) { animation-delay: 0.4s; }
.service-card:nth-child(9) { animation-delay: 0.45s; }
.service-card:nth-child(10) { animation-delay: 0.5s; }
.service-card:nth-child(11) { animation-delay: 0.55s; }
.service-card:nth-child(12) { animation-delay: 0.6s; }