/* ============================================
   SahinOS — Mini RTS Styles
   ============================================ */

.rts-app {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    background: #1a1a2e;
    color: #e0e0f0;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    overflow: hidden;
    position: relative;
}

.rts-topbar {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    gap: 16px;
    background: #0d0d1a;
    border-bottom: 2px solid #2a2a4a;
    font-size: 12px;
    flex-shrink: 0;
}
.rts-resource {
    font-weight: 700;
    color: #fbbf24;
}
.rts-resource span { color: #fff; }
.rts-status {
    margin-left: auto;
    color: #4ade80;
    font-size: 11px;
}

.rts-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

#rts-canvas {
    background: #1a2e1a;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
    cursor: crosshair;
    max-width: 100%;
    max-height: 100%;
    flex: 1;
}

.rts-sidebar {
    width: 180px;
    padding: 8px;
    background: #0d0d1a;
    border-left: 2px solid #2a2a4a;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.rts-panel-title {
    font-size: 10px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    padding: 4px 0;
    border-bottom: 1px solid #2a2a4a;
}

.rts-build-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.rts-btn {
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    color: #e0e0f0;
    padding: 6px 4px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.15s;
}
.rts-btn:hover:not(:disabled) {
    background: #3a3a6a;
    border-color: #4ade80;
    transform: translateY(-1px);
}
.rts-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.rts-btn span { font-size: 10px; }
.rts-btn small {
    color: #fbbf24;
    font-size: 9px;
}

.rts-info {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    padding: 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.4;
    min-height: 60px;
}
.rts-info b { color: #4ade80; }

.rts-help {
    font-size: 10px;
    color: #888;
    line-height: 1.4;
    padding: 6px;
    background: #1a1a2e;
    border-radius: 4px;
}
.rts-help b { color: #aab; }

.rts-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.rts-overlay-content {
    text-align: center;
    padding: 30px 40px;
    background: #1a1a2e;
    border: 2px solid #4ade80;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(74,222,128,0.3);
}
.rts-overlay-content h2 {
    font-size: 24px;
    margin: 0 0 8px;
    color: #4ade80;
}
.rts-overlay-content p {
    margin: 0 0 16px;
    color: #aab;
}
.rts-btn-big {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #0d1a0d;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}
.rts-btn-big:hover { transform: scale(1.05); }
