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

:root {
    --primary-color: #33ff33;
    --primary-dark: #1a8a1a;
    --bg-color: #0a0a0a;
    --terminal-bg: #000;
    --terminal-text: #33ff33;
    --error-color: #ff3333;
    --warning-color: #ffff33;
    --info-color: #3399ff;
    --success-color: #33ff33;
    --panel-bg: rgba(0, 0, 0, 0.7);
    --border-color: #33ff33;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--terminal-text);
    line-height: 1.6;
    padding: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%230a0a0a"/><path d="M0 50 L100 50 M50 0 L50 100" stroke="%23222222" stroke-width="1"/></svg>');
    background-size: 50px 50px;
}

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

/* Header Stiller */
header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(51, 255, 51, 0.7);
    margin-bottom: 5px;
}

.level-badge {
    background-color: var(--primary-dark);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 5px rgba(51, 255, 51, 0.7);
}

.stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat {
    font-size: 1.1rem;
    background-color: var(--panel-bg);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.stat i {
    margin-right: 5px;
}

/* Ana İçerik */
main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* Terminal Stiller */
.terminal-container {
    background-color: var(--terminal-bg);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    height: 550px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background-color: var(--primary-dark);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#clear-terminal {
    background: none;
    border: none;
    color: var(--terminal-text);
    cursor: pointer;
    font-size: 1rem;
}

#clear-terminal:hover {
    color: white;
}

#terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    white-space: pre-wrap;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--primary-dark);
}

.prompt {
    color: var(--terminal-text);
    margin-right: 10px;
    font-weight: bold;
}

#terminal-input {
    flex-grow: 1;
    background-color: transparent;
    border: none;
    color: var(--terminal-text);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    outline: none;
}

/* Oyun Bilgi Paneli */
.game-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story-progress, .inventory, .badges, .help {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
}

.story-progress {
    border-left: 5px solid var(--info-color);
}

.progress-bar {
    width: 100%;
    height: 15px;
    background-color: #333;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
}

#story-progress-bar {
    height: 100%;
    background-color: var(--info-color);
    transition: width 0.5s ease;
}

#current-objective {
    font-style: italic;
    color: #ccc;
    font-size: 0.9rem;
}

h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

h2 i {
    margin-right: 8px;
}

h3 {
    margin: 10px 0;
    font-size: 1.3rem;
}

h4 {
    margin: 8px 0;
    font-size: 1.1rem;
}

ul {
    list-style-type: none;
}

li {
    margin-bottom: 5px;
}

code {
    background-color: rgba(51, 255, 51, 0.2);
    padding: 2px 5px;
    border-radius: 3px;
}

/* Rozetler */
#badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    width: 60px;
    height: 60px;
    background-color: #222;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--border-color);
    font-size: 1.5rem;
    transition: all 0.3s;
}

.badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(51, 255, 51, 0.7);
}

/* Terminal Çıktı Stilleri */
.success {
    color: var(--success-color);
}

.error {
    color: var(--error-color);
}

.warning {
    color: var(--warning-color);
}

.info {
    color: var(--info-color);
}

.story {
    color: #ff9966;
    font-weight: bold;
}

.command {
    color: #cccccc;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #111;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.hidden {
    display: none;
}

/* Butonlar */
button {
    background-color: #222;
    color: var(--terminal-text);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--primary-dark);
    color: #fff;
    padding: 10px 20px;
    font-weight: bold;
}

/* Yeni Oyun Başlatma Modalı Stilleri */
.setup-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

/* Zorluk Seçimi */
.difficulty-selection {
    margin-bottom: 10px;
}

.difficulty-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.difficulty-btn {
    margin-top: 0;
    padding: 10px 20px;
    flex: 1;
    max-width: 120px;
    font-weight: bold;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.difficulty-btn.selected {
    background-color: var(--primary-dark);
    border: 2px solid #fff;
    transform: scale(1.05);
}

/* Karakter Seçimi */
.character-selection {
    margin-bottom: 10px;
}

.character-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.character {
    background-color: #222;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.character i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.character:hover {
    background-color: #333;
    transform: translateY(-5px);
}

.character.selected {
    background-color: var(--primary-dark);
    border: 2px solid #fff;
    transform: translateY(-5px);
}

.character p {
    font-size: 0.8rem;
    color: #ccc;
}

/* Hikaye Stilleri */
.story-intro {
    line-height: 1.8;
    margin: 20px 0;
    text-align: left;
    font-size: 1.1rem;
    color: #ddd;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--info-color);
}

#story-content {
    text-align: left;
    line-height: 1.8;
    margin: 20px 0;
}

#story-title {
    color: var(--info-color);
}

/* Level Up Modal */
.level-up-content {
    background-color: #111;
    border: 2px solid #ffcc00;
}

.level-number {
    font-size: 2rem;
    color: #ffcc00;
    margin: 20px 0;
    font-weight: bold;
}

#level-rewards {
    text-align: left;
    margin: 20px 0;
}

#rewards-list li {
    padding: 5px 0;
    border-bottom: 1px dotted #333;
}

/* Craft Menüsü */
.craft-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.craft-item {
    background-color: rgba(51, 255, 51, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.craft-item:hover {
    background-color: rgba(51, 255, 51, 0.2);
}

.craft-item-name {
    font-weight: bold;
}

.craft-item-req {
    font-size: 0.8rem;
    color: #aaa;
}

/* Animasyonlar */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.blinking {
    animation: blink 1s infinite;
}

@keyframes highlight {
    0% { background-color: rgba(51, 255, 51, 0); }
    50% { background-color: rgba(51, 255, 51, 0.3); }
    100% { background-color: rgba(51, 255, 51, 0); }
}

.highlight {
    animation: highlight 2s;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .character-options {
        flex-direction: column;
        align-items: center;
    }
    
    .terminal-container {
        height: 400px;
    }
}

/* Hava Durumu Stilleri */
.weather-value {
    font-weight: bold;
}

.weather-value.güneşli {
    color: #ffcc00;
}

.weather-value.yağmurlu {
    color: #3399ff;
}

.weather-value.fırtınalı {
    color: #ff3333;
}

.weather-value.sisli {
    color: #cccccc;
}

/* Görev Stilleri */
.quests {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    border-left: 5px solid #9966ff;
}

#active-quests {
    margin-top: 10px;
}

.quest-item {
    background-color: rgba(153, 102, 255, 0.1);
    border: 1px solid rgba(153, 102, 255, 0.5);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.quest-title {
    font-weight: bold;
    color: #9966ff;
    margin-bottom: 5px;
}

.quest-description {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.quest-progress {
    font-size: 0.9rem;
    color: #ccc;
}

.quest-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #333;
    border-radius: 5px;
    margin: 5px 0;
    overflow: hidden;
}

.quest-progress-fill {
    height: 100%;
    background-color: #9966ff;
    transition: width 0.5s ease;
}

.quest-rewards {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 5px;
}

/* Harita Paneli Stilleri */
.map-panel {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    border-left: 5px solid #33ccff;
    margin-bottom: 20px;
}

#current-location {
    margin-bottom: 10px;
}

#location-name {
    font-weight: bold;
    color: #33ccff;
}

.location-info {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
}

.danger-level {
    color: #ff6666;
}

.resources {
    color: #99cc99;
}

/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    .setup-container {
        flex-direction: column;
    }
    
    .difficulty-options {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .difficulty-btn {
        flex: 0 0 calc(33.33% - 10px);
    }
}

@media (max-width: 576px) {
    .modal-content {
        padding: 20px 15px;
        max-width: 95%;
    }
    
    .character-options {
        gap: 10px;
    }
    
    .character {
        width: 100%;
        max-width: 280px;
    }
    
    .difficulty-btn {
        flex: 0 0 calc(50% - 10px);
    }
}
