/**
 * استایل اصلی افزونه
 */

@font-face {
    font-family: 'IRANSans';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* { box-sizing: border-box; }

.colormix-container {
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    max-width: 1200px; margin: 40px auto; padding: 0;
    background: transparent; border-radius: 15px; direction: rtl;
}

.colormix-parallax { position: relative; padding: 30px; background: transparent; }

.colormix-mode-selector {
    display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.colormix-mode-selector label {
    display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgba(255,255,255,0.95);
    border: 3px solid #ddd; border-radius: 25px; cursor: pointer; transition: all 0.3s; font-size: 15px; font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.colormix-mode-selector input[type="radio"] { width: 18px; height: 18px; accent-color: #3498db; }
.colormix-mode-selector label:has(input:checked) { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-color: #667eea; }

.colormix-result-box {
    background: rgba(255,255,255,0.98);
    border-radius: 20px; padding: 24px; margin-bottom: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); border: 2px solid rgba(52,152,219,0.2);
}
.colormix-color-display {
    width: 100%; height: 220px; border-radius: 15px; margin-bottom: 18px;
    background: #ffffff; border: 4px solid #e0e0e0;
}
.colormix-color-codes {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px;
}
.color-code-item {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    padding: 12px 16px; border-radius: 10px; text-align: center; cursor: pointer; transition: all 0.2s; border: 2px solid transparent;
}
.color-code-item:hover { border-color: #3498db; }
.color-code-item.copied { border-color: #2ecc71; }
.code-label { font-size: 12px; font-weight: 800; color: #2c3e50; margin-bottom: 6px; }
.code-value { font-family: monospace; font-weight: 700; letter-spacing: 0.5px; }

.colormix-color-name { margin-top: 8px; text-align: center; font-size: 16px; font-weight: 800; color: #2c3e50; }

.colormix-proportions {
    display: flex; width: 100%; height: 26px; border-radius: 8px; overflow: hidden; border: 2px solid #e0e0e0;
}
.proportion-segment {
    height: 100%; color: rgba(0,0,0,0.7); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    text-shadow: 0 1px 1px rgba(255,255,255,0.7);
}

.colormix-colors-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 18px; margin-top: 16px;
}
.color-circle-container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.color-increment-btn, .color-decrement-btn {
    width: 40px; height: 32px; border: none; border-radius: 8px; background: #3498db; color: #fff; cursor: pointer; font-size: 18px; font-weight: 800;
    transition: transform 0.15s; box-shadow: 0 2px 8px rgba(52,152,219,0.25);
}
.color-decrement-btn { background: #e74c3c; }

.color-circle {
    width: 90px; height: 90px; border-radius: 50%; border: 4px solid rgba(0,0,0,0.08); position: relative;
    display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4), 0 6px 18px rgba(0,0,0,0.08);
    cursor: pointer;
}
.color-circle .color-amount {
    background: rgba(255,255,255,0.9); padding: 2px 8px; border-radius: 12px; font-weight: 800; font-size: 14px; border: 1px solid rgba(0,0,0,0.08);
}

.colormix-actions { display: flex; justify-content: center; margin-top: 12px; }
.colormix-reset-btn { background: #e74c3c; color: #fff; padding: 10px 22px; border: none; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 10px rgba(231,76,60,0.4); }
