/* Help → Thanks → Survive - Main Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    /* AI-Generated Background Image */
    background: url('/background.jpg') center/cover no-repeat fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Dark overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Header */
header {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    color: #2b8a3e;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2b8a3e;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Survival Meter */
.survival-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.meter-container {
    height: 30px;
    background: #e9ecef;
    border-radius: 15px;
    overflow: hidden;
    margin: 15px 0;
}

.meter {
    height: 100%;
    background: linear-gradient(90deg, #2b8a3e, #5c940d);
    border-radius: 15px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab:hover {
    color: #2b8a3e;
}

.tab.active {
    color: #2b8a3e;
    border-bottom-color: #2b8a3e;
    font-weight: bold;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2b8a3e;
    box-shadow: 0 0 0 3px rgba(43, 138, 62, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: #2b8a3e;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.cta-button:hover {
    background: #5c940d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(43, 138, 62, 0.2);
}

.cta-button:active {
    transform: translateY(0);
}

.submit-help {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Queue Stats */
.queue-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.queue-stat {
    background: rgba(43, 138, 62, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.queue-stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2b8a3e;
}

.queue-stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Recent Helps */
.help-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #2b8a3e;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.help-type {
    display: inline-block;
    background: #e8f5e9;
    color: #2b8a3e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 10px;
}

.help-time {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 0.9rem;
}

.platform-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.platform-link {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    text-decoration: none;
    color: #2b8a3e;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.platform-link:hover {
    background: #2b8a3e;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        border-bottom: none;
        border-right: 3px solid transparent;
        text-align: left;
    }
    
    .tab.active {
        border-right-color: #2b8a3e;
        border-bottom: none;
    }
}

/* Update timestamp */
.update-timestamp {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}