/* Havuç Toplama - Google Coding for Carrots Doodle tarzı */

.main-havuc {
    max-width: 900px;
}

.havuç-header .logo-icon {
    font-size: 2.5rem;
}

.level-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.level-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #f59e0b;
    background: white;
    color: #f59e0b;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.level-dot:hover {
    background: #fef3c7;
    transform: scale(1.1);
}

.level-dot.active {
    background: #f59e0b;
    color: white;
}

.level-dot.completed {
    background: #10b981;
    border-color: #059669;
    color: white;
}

.havuc-layout {
    display: grid;
    grid-template-columns: 180px 1fr 320px;
    gap: 1rem;
    padding: 1rem;
    align-items: start;
}

@media (max-width: 800px) {
    .havuc-layout {
        grid-template-columns: 1fr;
    }
}

/* Blok Paneli - Doodle tarzı yuvarlak bloklar */
.blocks-panel {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 3px solid #fbbf24;
}

.blocks-panel h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.blocks-hint {
    font-size: 0.8rem;
    color: #78716c;
    margin-bottom: 0.75rem;
}

.block-tray {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.block-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    cursor: grab;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.block-item:hover {
    background: #fde68a;
    transform: scale(1.02);
}

.block-item:active {
    cursor: grabbing;
}

.block-item[data-cmd="ileri"] { border-color: #10b981; background: #d1fae5; }
.block-item[data-cmd="sola"] { border-color: #6366f1; background: #e0e7ff; }
.block-item[data-cmd="saga"] { border-color: #8b5cf6; background: #ede9fe; }
.block-item[data-cmd="tekrarla"] { border-color: #ec4899; background: #fce7f3; }

.block-icon {
    font-size: 1.2rem;
}

.repeat-num {
    width: 36px;
    padding: 0.2rem;
    border: 2px solid #ec4899;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

/* Program Tray */
.program-tray {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 3px solid #10b981;
}

.program-tray h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #065f46;
}

.program-slots {
    min-height: 100px;
    padding: 1rem;
    background: #ecfdf5;
    border: 3px dashed #10b981;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.program-slots.drag-over {
    background: #d1fae5;
}

.slot-placeholder {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
}

.slot-placeholder.hidden {
    display: none;
}

.program-block {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    margin: 0.2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: grab;
}

.program-block .block-remove {
    margin-left: 0.2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 0.2rem;
    opacity: 0.7;
}
.program-block .block-remove:hover {
    opacity: 1;
}

.program-block[data-cmd="ileri"] { background: #a7f3d0; border: 2px solid #10b981; }
.program-block[data-cmd="sola"] { background: #c7d2fe; border: 2px solid #6366f1; }
.program-block[data-cmd="saga"] { background: #ddd6fe; border: 2px solid #8b5cf6; }
.program-block[data-cmd="tekrarla"] { background: #fbcfe8; border: 2px solid #ec4899; }

.tray-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-play {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-play:hover {
    background: #059669;
    transform: scale(1.05);
}

.btn-reset {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
}

/* Oyun Sahnesi */
.game-scene {
    background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 3px solid #f59e0b;
}

.game-scene h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #92400e;
}

.scene-goal {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #78716c;
}

.game-board-3d {
    width: 100%;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #87ceeb 0%, #e0f4ff 100%);
    position: relative;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 320px;
    cursor: grab;
}

#game-canvas:active {
    cursor: grabbing;
}

.game-message {
    min-height: 40px;
    margin-top: 0.75rem;
    padding: 0.6rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
}

.game-message.success {
    background: #d1fae5;
    color: #065f46;
}

.game-message.error {
    background: #fee2e2;
    color: #991b1b;
}

.game-message:empty {
    display: none;
}
