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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff6b35;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(255, 107, 53, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo h1 {
    font-family: 'Creepster', cursive;
    color: #ff6b35;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff6b35;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Creepster', cursive;
    font-size: 4rem;
    color: #ff6b35;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 107, 53, 0.5); }
    to { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 107, 53, 0.8); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
    background: linear-gradient(45deg, #f7931e, #ff6b35);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chicken-silhouette {
    font-size: 15rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
}

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

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

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

/* Info Grid */
.game-info {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-card p {
    color: #c0c0c0;
    line-height: 1.6;
}

/* Story Section */
.story-section {
    padding: 4rem 0;
}

.story-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 2rem;
    font-family: 'Creepster', cursive;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #d0d0d0;
}

.mystery-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mystery-point {
    display: flex;
    align-items: center;
    background: rgba(255, 107, 53, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #ff6b35;
}

.mystery-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    margin: 2rem 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 2rem;
    font-family: 'Creepster', cursive;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature h4 {
    color: #ff6b35;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.feature p {
    color: #c0c0c0;
}

/* Game Interface */
.game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.game-interface {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    min-height: 80vh;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.6);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    grid-column: 1 / -1;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-value {
    color: #ff6b35;
    font-size: 1.2rem;
}

.game-main {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.coop-area h2 {
    color: #ff6b35;
    margin-bottom: 1rem;
    font-family: 'Creepster', cursive;
}

.chickens-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.chicken {
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chicken:hover {
    transform: scale(1.05);
    border-color: #ff6b35;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.chicken-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.chicken-name {
    font-weight: bold;
    color: #ff6b35;
}

.chicken-production {
    font-size: 0.9rem;
    color: #c0c0c0;
}

.eggs-display {
    min-height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    border: 2px dashed rgba(255, 107, 53, 0.3);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.egg {
    font-size: 2rem;
    animation: eggDrop 0.5s ease-out;
    cursor: pointer;
}

@keyframes eggDrop {
    from {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.conspiracy-panel {
    background: linear-gradient(45deg, #8B0000, #FF4500);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 2px solid #ff6b35;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 107, 53, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.8); }
}

.conspiracy-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.conspiracy-btn:hover {
    background: #f7931e;
    transform: translateY(-2px);
}

.conspiracy-game {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 2rem;
    border: 2px solid #ff6b35;
}

.cipher-puzzle {
    text-align: center;
}

.cipher-input {
    background: rgba(255, 107, 53, 0.2);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-family: monospace;
    font-size: 1.2rem;
    color: #ff6b35;
    border: 1px solid #ff6b35;
}

#cipherAnswer {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ff6b35;
    color: #e0e0e0;
    padding: 0.8rem;
    border-radius: 5px;
    margin: 1rem;
    width: 200px;
}

/* Sidebar */
.game-sidebar {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    height: fit-content;
}

.shop-section,
.upgrades-section,
.mystery-log {
    margin-bottom: 2rem;
}

.shop-section h3,
.upgrades-section h3,
.mystery-log h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.shop-item,
.upgrade-item {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.item-name,
.upgrade-name {
    font-weight: bold;
    color: #ff6b35;
    display: block;
    margin-bottom: 0.3rem;
}

.item-description {
    font-size: 0.9rem;
    color: #c0c0c0;
    display: block;
    margin-bottom: 0.8rem;
}

.buy-btn,
.upgrade-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.buy-btn:hover,
.upgrade-btn:hover {
    background: #f7931e;
    transform: translateY(-1px);
}

.buy-btn:disabled,
.upgrade-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.upgrade-level {
    font-size: 0.9rem;
    color: #c0c0c0;
    display: block;
    margin-bottom: 0.5rem;
}

.mystery-log {
    max-height: 300px;
    overflow-y: auto;
}

.log-entries {
    max-height: 200px;
    overflow-y: auto;
}

.log-entry {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    border-left: 3px solid #ff6b35;
}

.log-time {
    color: #ff6b35;
    font-size: 0.8rem;
    font-weight: bold;
}

.log-text {
    color: #c0c0c0;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Tutorial Page */
.page-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    margin-bottom: 3rem;
}

.page-header h1 {
    font-family: 'Creepster', cursive;
    font-size: 3rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #c0c0c0;
}

.tutorial-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.tutorial-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.2);
}

.tutorial-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.tutorial-card h2 {
    color: #ff6b35;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.tutorial-content h3 {
    color: #ff6b35;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.tutorial-content h4 {
    color: #f7931e;
    margin: 1rem 0 0.5rem 0;
}

.tutorial-content h5 {
    color: #ff6b35;
    margin: 0.8rem 0 0.3rem 0;
}

.tutorial-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.tutorial-content li {
    margin-bottom: 0.5rem;
    color: #d0d0d0;
}

.tip-box,
.warning-box,
.strategy-box {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.tip-box {
    background: rgba(0, 255, 0, 0.1);
    border-left-color: #00ff00;
}

.warning-box {
    background: rgba(255, 255, 0, 0.1);
    border-left-color: #ffff00;
}

.strategy-box {
    background: rgba(0, 150, 255, 0.1);
    border-left-color: #0096ff;
}

.upgrade-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.upgrade-category {
    background: rgba(255, 107, 53, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.progress-indicators {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
}

.indicator-icon {
    font-size: 2rem;
}

.quick-start {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.quick-start h2 {
    text-align: center;
    color: #ff6b35;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
}

.step-number {
    background: #ff6b35;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.start-game-cta {
    text-align: center;
}

/* Legal Documents */
.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 3rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.last-updated {
    color: #c0c0c0;
    font-style: italic;
    margin-bottom: 2rem;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    color: #ff6b35;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    color: #f7931e;
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    color: #d0d0d0;
}

.contact-info {
    background: rgba(255, 107, 53, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
    margin: 1rem 0;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 2px solid #ff6b35;
    margin-top: 4rem;
    padding: 2rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ff6b35;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #c0c0c0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-interface {
        grid-template-columns: 1fr;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-start-steps {
        grid-template-columns: 1fr;
    }
    
    .legal-document {
        padding: 2rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .chicken-silhouette {
        font-size: 8rem;
    }
    
    .nav-logo h1 {
        font-size: 1.4rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}