/* Manager11 - Main Stylesheet */

/* CSS Variables */
:root {
    --green-field: #2d5016;
    --bright-green: #4ade80;
    --retro-blue: #0066cc;
    --retro-yellow: #ffcc00;
    --retro-red: #cc0000;
    --gray-bg: #e0e0e0;
    --dark-gray: #333333;
    --white: #ffffff;
    --black: #000000;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--gray-bg);
    color: var(--dark-gray);
    line-height: 1.6;
    image-rendering: pixelated;
}

/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--retro-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

/* Header Styles */
.header {
    background: linear-gradient(to bottom, var(--retro-blue) 0%, #004499 100%);
    padding: 20px 0 0 0;
    border-bottom: 4px solid var(--black);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
}

.header-banner {
    width: 100%;
    height: auto;
    max-height: 155px;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    margin-top: 20px;
    object-fit: cover;
    object-position: center;
}

.logo-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.5rem;
    color: var(--white);
    text-shadow: 3px 3px 0px rgba(0,0,0,0.5);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tagline {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--retro-yellow);
    text-align: center;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

/* Hero Section */
.hero {
    background-image: url('../images/manager11-asset.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.8);
}

.spacer {
    height: 120px;
}

/* Live Feature Badge */
.live-badge {
    display: inline-block;
    background: var(--retro-red);
    color: var(--white);
    padding: 10px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    border: 3px solid var(--white);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    animation: pulse 2s infinite;
    margin-bottom: 30px;
}

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

/* Features Grid */
.features {
    padding: 60px 0;
    background: var(--white);
}

.features-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-card {
    background: var(--gray-bg);
    border: 2px solid var(--dark-gray);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
    aria-hidden: true;
}

.feature-title {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--retro-blue);
}

.feature-description {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Stats Section */
.stats-preview {
    background: var(--dark-gray);
    color: var(--white);
    padding: 40px 0;
}

.stats-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
    color: var(--retro-yellow);
}

.stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stats-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.stats-table th,
.stats-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #555;
}

.stats-table th {
    background: var(--retro-blue);
    color: var(--white);
    font-weight: normal;
    text-transform: uppercase;
}

.stats-table tr:hover {
    background: #444;
}

.highlight-row {
    background: var(--retro-yellow);
    color: var(--dark-gray);
    font-weight: bold;
}

/* Manager Styles */
.manager-container {
    text-align: center;
    background: #444;
    padding: 20px;
    border: 3px solid var(--retro-yellow);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
}

.manager-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 2px solid var(--retro-yellow);
    margin-bottom: 20px;
}

.manager-info {
    margin-top: 10px;
}

.achievement-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: var(--retro-blue);
    color: var(--white);
    padding: 5px 10px;
    font-family: 'VT323', monospace;
    font-size: 0.9rem;
    border: 2px solid var(--white);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

/* Signup Section */
.signup {
    background: linear-gradient(135deg, var(--retro-blue) 0%, #003366 100%);
    padding: 60px 0;
    text-align: center;
}

.signup-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.signup-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 30px;
    opacity: 0.9;
}

.form-container {
    background: var(--white);
    padding: 20px;
    border-radius: 0;
    border: 4px solid var(--black);
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.3);
}

.form-title {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--retro-blue);
}

.form-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.beta-features {
    background: var(--gray-bg);
    padding: 30px;
    border: 2px solid var(--dark-gray);
    margin-bottom: 30px;
}

.beta-features h4 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--retro-blue);
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5), -1px -1px 0px rgba(0, 0, 0, 0.2);
}

.beta-features ul {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.beta-features li {
    margin-bottom: 10px;
}

/* Form Styles */
.signup-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
}

.form-input {
    width: 100%;
    padding: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    border: 2px solid var(--dark-gray);
    background: white;
}

.form-input:focus {
    outline: 3px solid var(--retro-blue);
    outline-offset: 2px;
}

.form-button-container {
    text-align: center;
}

.success-message {
    display: none;
    margin-top: 30px;
    padding: 20px;
    background: var(--bright-green);
    color: white;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
}

.form-note {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 10px;
}

/* Retro Button */
.retro-button {
    display: inline-block;
    background: var(--retro-yellow);
    color: var(--dark-gray);
    padding: 15px 40px;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    text-decoration: none;
    border: 4px solid var(--dark-gray);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
    text-transform: uppercase;
    cursor: pointer;
}

.retro-button:hover,
.retro-button:focus {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.5);
    background: #ffdd33;
    outline: none;
}

.retro-button.green {
    background: var(--bright-green);
}

.retro-button.green:hover,
.retro-button.green:focus {
    background: #5ee88a;
}

/* Hidden iframe for form submission */
.hidden-iframe {
    display: none;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Show focus outline only for keyboard navigation */
body.keyboard-nav *:focus {
    outline: 3px solid var(--retro-blue);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-title {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        margin: 0 20px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .manager-image {
        max-width: 250px;
    }
    
    .hero .retro-button {
        display: block;
        margin: 10px auto !important;
        max-width: 250px;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --retro-blue: #0000ff;
        --retro-yellow: #ffff00;
        --bright-green: #00ff00;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .signup {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
}