/* Gree.do Main Stylesheet - Emerald/Teal Theme with Brown Accents */

:root {
    /* Primary Colors - Emerald/Teal Green */
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-light: #34d399;
    --primary-green-ultra-light: #d1fae5;
    
    /* Secondary Colors - Teal */
    --secondary-teal: #14b8a6;
    --secondary-teal-dark: #0f766e;
    --secondary-teal-light: #5eead4;
    
    /* Accent Colors - Brown from Banner */
    --accent-brown: #8b5a2b;
    --accent-brown-dark: #744c28;
    --accent-brown-light: #a67c52;
    
    /* Neutral Colors */
    --background: #0f172a;
    --background-card: #1e293b;
    --background-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Status Colors */
    --success: var(--primary-green);
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Border and Shadow */
    --border-color: #475569;
    --shadow-primary: 0 4px 6px -1px rgba(16, 185, 129, 0.1);
    --shadow-hover: 0 10px 15px -3px rgba(16, 185, 129, 0.2);
}

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

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #1e293b 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.header {
    position: relative;
    background: linear-gradient(135deg, var(--accent-brown-dark) 0%, var(--accent-brown) 100%);
    border-bottom: 3px solid var(--primary-green);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/static/img/gree-do-banner.png') center/cover;
    opacity: 0.8;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    text-align: center;
    background: rgba(15, 23, 42, 0.7);
}

.banner-image {
    max-width: 1125px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Navigation Bar */
.navigation {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3;
}

.nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.9);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(5, 150, 105, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.content-area {
    background: var(--background-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--border-color);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin: 2rem 0;
}

.logo-image {
    max-width: 600px;
    height: auto;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3));
}

/* Logo Animation Classes */
.logo-bounce {
    animation: gentleBounce 3s ease-in-out infinite;
}

.logo-glow {
    animation: gentleGlow 4s ease-in-out infinite alternate;
}

.logo-float {
    animation: gentleFloat 6s ease-in-out infinite;
}

.logo-pulse {
    animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentleBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes gentleGlow {
    0% { filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.3)); }
    100% { filter: drop-shadow(0 8px 24px rgba(16, 185, 129, 0.6)); }
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(1deg); }
    66% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Data Display */
.timestamp-data {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.timestamp-section {
    margin-bottom: 1.5rem;
}

.timestamp-section h3 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.timestamp-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timestamp-item:last-child {
    border-bottom: none;
}

.timestamp-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.timestamp-value {
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* Sidebar */
.sidebar {
    background: var(--background-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-primary);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.sidebar h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.fact-section {
    background: rgba(20, 184, 166, 0.1);
    border-left: 4px solid var(--secondary-teal);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.quote-section {
    background: rgba(139, 90, 43, 0.1);
    border-left: 4px solid var(--accent-brown);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

/* Controls */
.controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-green);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--secondary-teal);
}

.btn-secondary:hover {
    background: var(--secondary-teal-dark);
}

.btn-accent {
    background: var(--accent-brown);
}

.btn-accent:hover {
    background: var(--accent-brown-dark);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-green);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-healthy {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-links {
        justify-content: center;
    }
    
    .navigation {
        position: static;
        text-align: center;
        margin-top: 1rem;
    }
    
    .header-content {
        padding: 1rem;
    }
    
    .logo-image {
        max-width: 400px;
    }
    
    .controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
    
    .logo-image {
        max-width: 300px;
    }
    
    .timestamp-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer a {
    color: var(--primary-green);
    text-decoration: none;
}

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

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

.slide-in {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}