* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

#simulate-release {
  display: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.status-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.status {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 15px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checking {
    color: #f39c12;
    animation: pulse 2s infinite;
}

.not-released {
    color: #e74c3c;
}

.released {
    color: #27ae60;
    animation: celebrate 1s ease-in-out;
}

.last-check {
    font-size: 0.9em;
    color: #7f8c8d;
}

.feed-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.feed-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.latest-entry {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.feed-entry {
    margin: 10px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #bdc3c7;
}

.feed-entry.latest {
    background: #e8f5e8;
    border-left: 3px solid #27ae60;
}

.feed-entry.simulation {
    background: #fff3cd;
    border-left: 3px solid #f39c12;
    border: 2px dashed #f39c12;
}

.feed-entry a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9em;
}

.feed-entry a:hover {
    text-decoration: underline;
}

#entry-content {
    margin-top: 10px;
    font-style: italic;
    color: #555;
}

.keywords {
    text-align: center;
    margin: 20px 0;
}

.keywords h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.keyword {
    display: inline-block;
    background: #95a5a6;
    color: white;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.keyword.active {
    background: #3498db;
}

.keyword:hover {
    transform: scale(1.05);
}

.keyword.found {
    background: #27ae60;
    animation: highlight 0.5s ease-in-out;
}

.controls {
    text-align: center;
    margin: 20px 0;
}

.simulate-button, .debug-toggle, .download-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
}

.simulate-button:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.download-button {
    background: #27ae60;
    animation: pulse-download 2s infinite;
}

.download-button:hover {
    background: #219a52;
    transform: scale(1.05);
}

.debug-toggle {
    background: #34495e;
}

.debug-toggle:hover {
    background: #2c3e50;
}

@keyframes pulse-download {
    0%, 100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(39, 174, 96, 0); }
}

.debug-panel {
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.debug-panel h3 {
    color: #ecf0f1;
    margin-bottom: 15px;
}

.debug-output {
    background: #34495e;
    border-radius: 5px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 10px;
    font-size: 0.9em;
    line-height: 1.4;
}

.debug-line {
    margin: 2px 0;
    padding: 2px 0;
}

.debug-line.info { color: #3498db; }
.debug-line.success { color: #27ae60; }
.debug-line.warning { color: #f39c12; }
.debug-line.error { color: #e74c3c; }

.debug-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
}

.debug-button:hover {
    background: #2980b9;
}

/* Fireworks */
#fireworks-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

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

@keyframes celebrate {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .status {
        font-size: 2em;
    }
    
    .keyword {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}
