@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Montserrat:wght@700&display=swap');

/* Genel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Topbar stilleri */
.topbar {
    background-color: #2196F3;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 48px;
    height: 48px;
}

.app-name {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Ana container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.back-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1565C0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.back-button:hover {
    background-color: #0D47A1;
}

h1 {
    text-align: center;
    color: #2196F3;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.5px;
}

/* Oyun kontrolleri */
.game-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.decimal-type, .order-type {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.decimal-type label, .order-type label {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    background: #f5f5f5;
    transition: background-color 0.2s;
}

.decimal-type label:hover, .order-type label:hover {
    background: #e0e0e0;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #2196F3;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

button:hover {
    background: #283593;
}

/* Oyun alanı */
.game-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.decimals-container, .drop-area, .correct-answer {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.decimal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 120px;
    padding: 15px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    position: relative;
}

.decimal-item {
    padding: 15px 20px;
    border-radius: 8px;
    cursor: move;
    user-select: none;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.decimal {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Renk sınıfları */
.decimal-color-1 { background: #e3f2fd !important; border: 2px solid #1565c0 !important; color: #1565c0 !important; }
.decimal-color-2 { background: #f3e5f5 !important; border: 2px solid #7b1fa2 !important; color: #7b1fa2 !important; }
.decimal-color-3 { background: #e8f5e9 !important; border: 2px solid #2e7d32 !important; color: #2e7d32 !important; }
.decimal-color-4 { background: #fff3e0 !important; border: 2px solid #ef6c00 !important; color: #ef6c00 !important; }

.decimal-item.dragging {
    opacity: 0.5;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.comparison-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #666;
    padding: 0 10px;
}

.drop-area h3, .correct-answer h3 {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
}

.result-message {
    text-align: center;
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    display: none;
    font-weight: bold;
}

.result-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.result-message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}

.message {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
}

.help-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.help-section h3 {
    color: #1a237e;
    margin-bottom: 15px;
}

.help-section ol {
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 10px;
    color: #666;
}

.correct-answer {
    display: none;
}
