/* 90s GEOCITIES STYLE - DIARRHEA DETECTOR 3000 */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animated background */
@keyframes bgAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes neonPulse {
    0%, 100% { text-shadow: 0 0 5px #ff0080, 0 0 10px #ff0080, 0 0 15px #ff0080; }
    50% { text-shadow: 0 0 2px #ff0080, 0 0 5px #ff0080, 0 0 8px #ff0080; }
}

@keyframes rainbow {
    0% { color: #ff0080; }
    16% { color: #ff8000; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    66% { color: #0080ff; }
    83% { color: #8000ff; }
    100% { color: #ff0080; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Body styles */
body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive;
    background: linear-gradient(45deg, #ff0080, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff);
    background-size: 400% 400%;
    animation: bgAnimation 8s ease infinite;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
.site-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #ff0080;
    border-radius: 15px;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y=".9em" font-size="90">💫</text></svg>') repeat;
    opacity: 0.1;
    animation: spin 20s linear infinite;
    pointer-events: none;
}

.neon-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: bold;
    /* text-transform: uppercase; */
    animation: neonPulse 2s ease-in-out infinite;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    /* animation: blink .5s linear infinite; */
    margin-bottom: 10px;
    color: #ffff00;
}

.tagline {
    font-size: clamp(0.8rem, 2vw, 1rem);
    color: #00ff00;
    margin-bottom: 15px;
    font-style: italic;
    text-shadow: 0 0 3px #00ff00;
}

.visitor-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000000;
    padding: 5px 15px;
    border: 2px solid #00ff00;
    border-radius: 25px;
    font-weight: bold;
    color: #00ff00;
}

.counter-number {
    color: #ff0080;
    animation: rainbow 3s linear infinite;
}

/* Main content styles */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.neon-box {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid;
    border-image: linear-gradient(45deg, #ff0080, #00ff00, #0080ff, #ff8000) 1;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.5);
}

.search-section {
    margin-bottom: 20px;
}

.rainbow-text {
    background: linear-gradient(45deg, #ff0080, #ff8000, #ffff00, #00ff00, #0080ff, #8000ff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bgAnimation 3s ease infinite;
    font-size: clamp(1.2rem, 4vw, 2rem);
    text-align: center;
    margin-bottom: 15px;
}

.warning-text {
    color: #ff0000;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: bold;
    color: #ffff00;
    font-size: 1.1rem;
}

.neon-input {
    padding: 12px;
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.neon-input:focus {
    outline: none;
    border-color: #ff0080;
    box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

.neon-button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff0080, #ff8000);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.neon-button:hover {
    background: linear-gradient(45deg, #ff8000, #ff0080);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.7);
}

.pulse {
    animation: bounce 2s infinite;
}

/* Loading section */
.loading-section {
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    border: 3px solid #ffff00;
}

.loading-gif {
    font-size: 4rem;
    animation: spin 2s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffff00;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #000000;
    border: 2px solid #00ff00;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff0080);
    width: 0%;
    animation: bgAnimation 2s ease infinite;
    transition: width 0.3s ease;
}

/* Results section */
.results-section {
    margin-top: 30px;
}

.results-title {
    text-align: center;
    margin-bottom: 25px;
}

.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.restaurant-card {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.restaurant-card:hover {
    transform: scale(1.02);
}

.restaurant-card.safe { border-color: #00ff00; }
.restaurant-card.low { border-color: #80ff00; }
.restaurant-card.moderate { border-color: #ffff00; }
.restaurant-card.high { border-color: #ff8000; }
.restaurant-card.danger { border-color: #ff0000; }
.restaurant-card.extreme { border-color: #8000ff; }

.restaurant-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.diarrhea-score {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.reeree-score {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 1.1rem;
}

.reeree-score.safe {
    background: #004400;
    color: #00ff00;
}

.reeree-score.low {
    background: #224400;
    color: #80ff00;
}

.reeree-score.moderate {
    background: #444400;
    color: #ffff00;
}

.reeree-score.high {
    background: #442200;
    color: #ff8000;
}

.reeree-score.danger {
    background: #440000;
    color: #ff0000;
}

.reeree-score.extreme {
    background: #220044;
    color: #8000ff;
    animation: blink 1s linear infinite;
}

.reeree-keywords {
    margin-top: 8px;
    padding: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.keyword-item {
    margin: 4px 0;
}

.keyword-clickable {
    cursor: pointer;
    text-decoration: underline;
    color: #ffff00;
    transition: color 0.2s;
    display: inline-block;
}

.keyword-clickable:hover {
    color: #ff8000;
}

.keyword-review {
    margin: 8px 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid #ff0080;
    border-radius: 3px;
    font-size: 0.8rem;
}

.review-header {
    font-weight: bold;
    color: #ff8000;
    margin-bottom: 4px;
}

.review-text {
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 4px;
}

.review-time {
    color: #cccccc;
    font-size: 0.7rem;
}

/* About section */
.about-section {
    margin-top: 30px;
}

.danger-keywords {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.danger-keywords li {
    background: rgba(255, 0, 128, 0.2);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ff0080;
    font-weight: bold;
}

.score-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.score-item {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.score-item.safe { background: #004400; color: #00ff00; }
.score-item.low { background: #444400; color: #ffff00; }
.score-item.moderate { background: #442200; color: #ff8000; }
.score-item.high { background: #440000; color: #ff0000; }
.score-item.danger { background: #220044; color: #8000ff; }

/* Footer styles */
.site-footer {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ff0080;
    border-radius: 15px;
}

.footer-content p {
    margin-bottom: 10px;
    font-weight: bold;
}

.footer-links {
    margin-top: 15px;
}

.neon-link {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.neon-link:hover {
    color: #ff0080;
    text-shadow: 0 0 5px #ff0080;
}

.gif-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.animated-text {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.animated-text:nth-child(even) {
    animation-delay: 0.5s;
}

/* Utility classes */
.hidden {
    display: none !important;
}

.blink {
    animation: blink 2s linear infinite;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .neon-title {
        font-size: 1.5rem;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .results-container {
        grid-template-columns: 1fr;
    }
    
    .score-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .gif-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .neon-title {
        font-size: 1.2rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .neon-box {
        padding: 15px;
    }
    
    .danger-keywords {
        grid-template-columns: 1fr;
    }
}