/* AMSHOP Bot Status Dashboard - CSS Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    background: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
}

/* Animated Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0d1117, #161b22, #0d1117);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(35, 134, 54, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(218, 54, 51, 0.1) 0%, transparent 50%);
    animation: pulseGlow 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.container {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    padding: 30px;
    max-width: 900px;
    width: 100%;
    animation: terminalLoad 0.8s ease-out;
}

@keyframes terminalLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Particles Animation - Primary Effect */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #58a6ff;
    border-radius: 50%;
    animation: float 12s infinite linear;
    opacity: 0.8;
    box-shadow: 0 0 6px rgba(88, 166, 255, 0.6);
}

.particle:nth-child(odd) {
    background: #238636;
    animation-duration: 15s;
    box-shadow: 0 0 6px rgba(35, 134, 54, 0.6);
}

.particle:nth-child(3n) {
    background: #da3633;
    animation-duration: 18s;
    box-shadow: 0 0 6px rgba(218, 54, 51, 0.6);
}

.particle:nth-child(4n) {
    background: #7c3aed;
    animation-duration: 20s;
    box-shadow: 0 0 6px rgba(124, 58, 237, 0.6);
}

.particle:nth-child(5n) {
    background: #f59e0b;
    animation-duration: 14s;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px) scale(0.5);
        opacity: 0;
    }
    5% {
        opacity: 0.8;
        transform: translateY(95vh) translateX(10px) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) translateX(50px) scale(1.2);
    }
    95% {
        opacity: 0.8;
        transform: translateY(5vh) translateX(90px) scale(1);
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(0.5);
        opacity: 0;
    }
}

/* Particle Trail Effect */
.particle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: inherit;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
    animation: trail 2s infinite;
}

@keyframes trail {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #30363d;
    padding-bottom: 20px;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    color: #58a6ff;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.subtitle {
    color: #8b949e;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: normal;
}

.timestamp {
    color: #7c3aed;
    font-size: 0.85rem;
    background: #21262d;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid #30363d;
    font-family: monospace;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background: #21262d;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #58a6ff;
}

.status-card.online {
    border-color: #238636;
    background: #0d1117;
    box-shadow: 0 0 0 1px #238636;
}

.status-card.online::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #238636;
}

.status-card.offline {
    border-color: #da3633;
    background: #0d1117;
    box-shadow: 0 0 0 1px #da3633;
}

.status-card.offline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #da3633;
}

.status-card.webhook {
    border-color: #1f6feb;
    background: #0d1117;
    box-shadow: 0 0 0 1px #1f6feb;
}

.status-card.webhook::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #1f6feb;
}

.status-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    filter: grayscale(0.3);
}

.status-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #c9d1d9;
    font-family: monospace;
}

.status-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: monospace;
}

.online .status-text {
    color: #238636;
    text-shadow: 0 0 5px rgba(35, 134, 54, 0.3);
}

.offline .status-text {
    color: #da3633;
    text-shadow: 0 0 5px rgba(218, 54, 51, 0.3);
}

.webhook .status-text {
    color: #1f6feb;
    text-shadow: 0 0 5px rgba(31, 111, 235, 0.3);
}

.overall-status {
    text-align: center;
    margin-top: 25px;
    padding: 20px;
    border-radius: 6px;
    background: #21262d;
    border: 1px solid #30363d;
    font-family: monospace;
}

.overall-status.all-online {
    border-color: #238636;
    background: #0d1117;
    box-shadow: 0 0 0 1px #238636;
}

.overall-status.partial {
    border-color: #d29922;
    background: #0d1117;
    box-shadow: 0 0 0 1px #d29922;
}

.overall-status.all-offline {
    border-color: #da3633;
    background: #0d1117;
    box-shadow: 0 0 0 1px #da3633;
}

.overall-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #c9d1d9;
}

.overall-text {
    font-size: 1rem;
    font-weight: 600;
    color: #8b949e;
}

.refresh-btn {
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    font-family: monospace;
}

.refresh-btn:hover {
    background: #30363d;
    border-color: #58a6ff;
    color: #58a6ff;
    transform: translateY(-1px);
}

.footer {
    text-align: center;
    margin-top: 25px;
    color: #8b949e;
    font-size: 0.85rem;
    font-family: monospace;
    border-top: 1px solid #30363d;
    padding-top: 20px;
}

.pulse {
    animation: terminalPulse 2s infinite;
}

@keyframes terminalPulse {
    0% {
        box-shadow: 0 0 0 1px currentColor;
    }
    50% {
        box-shadow: 0 0 0 3px currentColor;
    }
    100% {
        box-shadow: 0 0 0 1px currentColor;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        min-height: 100vh;
    }
    
    .container {
        padding: 15px;
        margin: 0;
        max-width: 100%;
        width: 100%;
        border-radius: 4px;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .timestamp {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .status-card {
        padding: 15px;
        border-radius: 4px;
    }
    
    .status-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .status-title {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .status-text {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
    
    .overall-status {
        margin-top: 20px;
        padding: 15px;
    }
    
    .overall-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .overall-text {
        font-size: 0.9rem;
    }
    
    .refresh-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-top: 15px;
    }
    
    .footer {
        margin-top: 20px;
        font-size: 0.8rem;
        padding-top: 15px;
    }
    
    /* Enhanced particles for mobile */
    .particles {
        opacity: 0.9;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 12px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .timestamp {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .status-card {
        padding: 12px;
    }
    
    .status-icon {
        font-size: 1.8rem;
    }
    
    .status-title {
        font-size: 0.9rem;
    }
    
    .status-text {
        font-size: 0.75rem;
    }
    
    .overall-status {
        padding: 12px;
    }
    
    .overall-title {
        font-size: 1rem;
    }
    
    .overall-text {
        font-size: 0.8rem;
    }
    
    .refresh-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .footer {
        font-size: 0.75rem;
    }
    
    /* Enhanced particles for small mobile */
    .particles {
        opacity: 0.8;
    }
    
    .particle {
        width: 2.5px;
        height: 2.5px;
    }
}
