/* Main Styles for Nanobot Daily Showcase */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 3em;
    color: #2d3748;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2em;
    color: #4a5568;
    margin-bottom: 30px;
}

.date-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(102, 126, 234, 0.1);
    padding: 15px 25px;
    border-radius: 12px;
    margin-top: 20px;
}

#current-date {
    font-size: 1.3em;
    font-weight: bold;
    color: #2d3748;
}

.nav-controls button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.nav-controls button:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-2px);
}

.nav-controls button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Main Content Area */
main {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 500px;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.loading p {
    color: #4a5568;
    font-size: 1.1em;
}

/* Fallback Message */
.fallback-message {
    text-align: center;
    padding: 40px;
}

.alert {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border-left: 5px solid #fc8181;
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.alert h3 {
    color: #c53030;
    margin-bottom: 15px;
}

.alert ul {
    list-style: none;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
}

.alert li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
}

.alert li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
}

.alert a {
    color: #2b6cb0;
    text-decoration: none;
    font-weight: 600;
}

.alert a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.footer-note {
    color: #4a5568;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .date-display {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-controls {
        display: flex;
        gap: 10px;
    }
    
    main {
        padding: 20px;
    }
    
    header, main, footer {
        border-radius: 15px;
    }
}

/* Daily Content Styles (will be loaded dynamically) */
.daily-content {
    animation: fadeIn 0.5s ease;
}

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