/* Ç

arpan Hesaplayıcı Stilleri */
.factor-calculator-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.factor-header {
    background: linear-gradient(135deg, #f0f7ff, #e3f2fd);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.factor-header h1 {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.factor-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}

.input-group input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1.1rem;
}

.input-group button {
    padding: 1rem 2rem;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.input-group button:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.result-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #4a90e2;
}

.result-card h3 {
    color: #334155;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.factor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.factor-chip {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.factor-chip.prime {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    color: #92400e;
}

.rules-section {
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.rule-card {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid #10b981;
}

.rule-card h4 {
    color: #059669;
    margin-bottom: 0.5rem;
}

.rule-card p {
    color: #64748b;
    font-size: 0.9rem;
}

.rainbow-canvas {
    width: 100%;
    max-width: 800px;
    margin: 1rem auto;
    display: block;
}

.tree-container {
    max-height: 500px;
    overflow: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.error-message {
    color: #dc2626;
    background: #fee2e2;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    display: none;
}

.error-message.show {
    display: block;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .factor-header h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
}
