/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
}

body {
    font-family: 'VT323', monospace;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
    background-image: url('images/garage-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    image-rendering: pixelated;
    text-rendering: pixelated;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 4px solid #ff6b6b;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

h1 {
    font-size: 3.5rem;
    text-shadow: 4px 4px 0 #ff6b6b;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #333;
}

.subtitle {
    font-size: 1.5rem;
    color: #ff6b6b;
}

/* Main Game Area */
.game-area {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.workspace {
    flex: 2;
    min-width: 300px;
}

.feed {
    flex: 1;
    min-width: 250px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 4px solid #6b9bff;
    border-radius: 8px;
    padding: 15px;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

/* Idea Display */
.idea-display {
    margin-bottom: 20px;
}

.paper {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 20px;
    border-radius: 8px;
    border: 4px solid #ffde59;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    min-height: 200px;
    position: relative;
}

.paper h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #ff6b6b;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
    font-size: 1.8rem;
}

#current-idea {
    font-size: 1.5rem;
    margin-bottom: 20px;
    min-height: 50px;
    padding: 10px;
    border: 2px dashed #6b9bff;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
}

#logo-container {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 2px solid #ffde59;
}

#logo-display {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    image-rendering: pixelated;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
    object-fit: contain;
}

/* Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.pixel-button {
    background-color: #ffde59;
    color: #333;
    border: 4px solid #ff6b6b;
    padding: 10px 15px;
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.1s;
    flex: 1;
    min-width: 120px;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    border-radius: 0;
    text-transform: uppercase;
    font-weight: bold;
    image-rendering: pixelated;
}

.pixel-button:hover {
    background-color: #ffe066;
    transform: translateY(-4px);
    box-shadow: 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.pixel-button:active {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    background-color: #ffd21a;
}

.pixel-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    background-color: #ccc;
    border-color: #999;
}

/* Community Feed */
.feed h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #6b9bff;
    border-bottom: 4px dashed #6b9bff;
    padding-bottom: 5px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.feed-item {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 3px solid #ffde59;
    position: relative;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@keyframes newIdeaHighlight {
    0% { background-color: rgba(255, 107, 107, 0.5); }
    50% { background-color: rgba(255, 222, 89, 0.5); }
    100% { background-color: rgba(255, 255, 255, 0.9); }
}

.new-idea {
    animation: newIdeaHighlight 3s ease;
    border-color: #ff6b6b;
}

.feed-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #ff6b6b;
}

.feed-item-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    image-rendering: pixelated;
    border: 2px solid #ffde59;
    background-color: white;
    border-radius: 4px;
    padding: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.feed-logo-image {
    max-width: 100%;
    max-height: 100%;
    image-rendering: pixelated;
    object-fit: contain;
}

.feed-item-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    gap: 10px;
}

.like-button, .invest-button {
    background-color: #f0f0f0;
    border: 2px solid #6b9bff;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

.like-button:hover, .invest-button:hover {
    background-color: #6b9bff;
    color: white;
}

.invest-button {
    border-color: #ff6b6b;
    background-color: #ffde59;
    font-weight: bold;
}

.invest-button:hover {
    background-color: #ff6b6b;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    border: 4px solid #ff6b6b;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    animation: modalFadeIn 0.3s;
    image-rendering: pixelated;
}

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

.close-button {
    color: #ff6b6b;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #ff4040;
}

#modal-title {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

#modal-message {
    font-size: 1.5rem;
    text-align: center;
    color: #333;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border: 2px dashed #ffde59;
}

/* Investment Modal Styles */
.investment-slider-container {
    width: 100%;
    margin: 20px 0;
    padding: 0 10px;
}

.investment-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border: 3px solid #6b9bff;
    border-radius: 10px;
    outline: none;
    margin-bottom: 15px;
}

.investment-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: #ffde59;
    border: 3px solid #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.investment-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: #ffde59;
    border: 3px solid #ff6b6b;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.investment-value-display {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 15px;
    font-family: 'VT323', monospace;
}

.confirm-investment-btn {
    display: block;
    margin: 0 auto 20px;
    background-color: #ffde59;
    border: 3px solid #ff6b6b;
    color: #333;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.1s;
}

.confirm-investment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 3px 6px 0 rgba(0, 0, 0, 0.2);
    background-color: #ffe066;
}

.confirm-investment-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
}

.investment-note {
    font-size: 1rem;
    color: #6b9bff;
    margin-top: 10px;
    font-style: italic;
    line-height: 1.4;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 4px solid #ff6b6b;
    font-size: 1rem;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.1);
}

/* Twitter Icon */
.twitter-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    text-decoration: none;
}

.twitter-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff6b6b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background-color: white;
}

.twitter-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.twitter-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor {
    display: inline-block;
    width: 12px;
    height: 24px;
    background-color: #ff6b6b;
    margin-left: 5px;
    animation: blink 1s infinite;
}

.hidden {
    display: none;
}

/* Currency Display */
.currency-display {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffde59;
    border: 4px solid #ff6b6b;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.5rem;
    color: #333;
    font-weight: bold;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

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

/* Stats Display */
.stats-display {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 3px solid #6b9bff;
    border-radius: 8px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b9bff;
    margin-bottom: 5px;
}

#pitch-count, #success-rate {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ff6b6b;
}

/* Responsive Design */
/* Мобильные устройства */
@media (max-width: 768px) {
    .game-area {
        flex-direction: column;
    }
    
    .feed {
        max-height: 300px;
    }
    
    .currency-display {
        position: static;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .twitter-link {
        top: 10px;
        left: 10px;
    }
    
    .twitter-icon {
        width: 40px;
        height: 40px;
    }
}

/* Планшеты и небольшие ноутбуки */
@media (min-width: 769px) and (max-width: 1366px) {
    .container {
        max-width: 90%;
    }
    
    .game-area {
        gap: 15px;
    }
}

/* Большие экраны и широкоформатные мониторы */
@media (min-width: 1367px) and (max-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.8rem;
    }
    
    .paper {
        min-height: 250px;
    }
    
    #current-idea {
        font-size: 1.8rem;
    }
    
    #logo-display {
        width: 120px;
        height: 120px;
    }
    
    .pixel-button {
        font-size: 1.4rem;
        padding: 12px 18px;
    }
}

/* 4K и сверхширокие мониторы */
@media (min-width: 1921px) {
    .container {
        max-width: 1800px;
    }
    
    h1 {
        font-size: 5rem;
    }
    
    .subtitle {
        font-size: 2.2rem;
    }
    
    .paper {
        min-height: 300px;
        padding: 30px;
    }
    
    #current-idea {
        font-size: 2.2rem;
    }
    
    #logo-display {
        width: 150px;
        height: 150px;
    }
    
    .pixel-button {
        font-size: 1.6rem;
        padding: 15px 20px;
        min-width: 150px;
    }
    
    .feed {
        max-height: 800px;
    }
    
    .feed-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .feed-item h3 {
        font-size: 1.5rem;
    }
    
    .feed-item-logo {
        width: 50px;
        height: 50px;
    }
    
    .twitter-icon {
        width: 60px;
        height: 60px;
    }
}
