/* mimuu.com Online Boya (boya.php) */
*, *::before, *::after { box-sizing: border-box; }

html, body.boya-body {
    margin: 0;
    padding: 0;
    background: #f4f5f7;
    color: #333;
    font-family: "Segoe UI", Arial, sans-serif;
}

.boya-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 12px;
}
.boya-logo {
    color: #e74c3c;
    font-size: 26px;
    text-decoration: none;
}
.boya-geri {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #424242;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    padding: 6px 12px 6px 6px;
    font-size: 16px;
}
.boya-geri:hover { background: #f0f0f0; }

.boya-baslik {
    max-width: 1200px;
    margin: 0 auto 8px;
    padding: 0 12px;
    font-size: 20px;
    font-weight: 500;
}

#boya-app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px 12px;
}

/* Araç çubuğu */
.boya-arac-cubugu {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.boya-grup {
    display: flex;
    align-items: center;
    gap: 6px;
}
.boya-btn {
    width: 52px;
    height: 52px;
    padding: 6px;
    border: 2px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: transform .08s ease, border-color .15s ease, background .15s ease;
}
.boya-btn svg { width: 100%; height: 100%; display: block; }
.boya-btn:hover:not(:disabled) { background: #f6f6f6; }
.boya-btn:active:not(:disabled) { transform: scale(.94); }
.boya-btn.aktif {
    border-color: #e74c3c;
    background: #fff1ef;
    box-shadow: 0 0 0 2px rgba(231,76,60,.25);
}
.boya-btn:disabled { opacity: .35; cursor: default; }
.boya-btn:focus-visible, .boya-renk:focus-visible, #boya-size:focus-visible {
    outline: 3px solid #1f5fd1;
    outline-offset: 2px;
}

/* Fırça boyutu */
.boya-boyut { gap: 8px; }
.boya-boyut-kucuk {
    width: 6px; height: 6px; border-radius: 50%; background: #666;
}
#boya-size { width: 130px; accent-color: #e74c3c; }
.boya-boyut-onizleme {
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e3e3e3; border-radius: 8px; background: #fff;
}
#boya-size-dot { display: block; border-radius: 50%; background: #e74c3c; }

/* Palet */
.boya-palet {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
}
.boya-renk {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #cfcfcf;
    cursor: pointer;
    padding: 0;
    transition: transform .08s ease;
}
.boya-renk:hover { transform: scale(1.08); }
.boya-renk.aktif {
    transform: scale(1.15);
    box-shadow: 0 0 0 3px #333;
}
.boya-ozel-renk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#e74c3c, #ffd400, #1e9e4a, #35c0e8, #1f5fd1, #7b3fbf, #ff6fb5, #e74c3c);
    overflow: hidden;
}
.boya-ozel-renk svg { width: 70%; height: 70%; pointer-events: none; }
.boya-ozel-renk input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
}

/* Sahne: boya katmanı altta, çizgiler multiply ile üstte */
.boya-sahne {
    --oran: 0.7071;
    position: relative;
    width: 100%;
    max-width: calc(78vh * var(--oran));
    aspect-ratio: 1 / 1.4142;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    isolation: isolate;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    cursor: crosshair;
}
.boya-sahne[data-arac="fill"] { cursor: pointer; }
.boya-katman {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.boya-cizgiler {
    mix-blend-mode: multiply;
    pointer-events: none;
}
.boya-yukleniyor {
    position: absolute;
    inset: 0;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%23e74c3c' stroke-width='5' stroke-dasharray='90 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='1s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 48px no-repeat;
}
#boya-app.hazir .boya-yukleniyor { display: none; }

.boya-mesaj {
    text-align: center;
    color: #a94442;
    background: #fdecea;
    border-radius: 6px;
    padding: 8px;
    margin: 0 0 8px;
}

.boya-alt-linkler {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 12px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.boya-alt-linkler a { color: #e74c3c; text-decoration: none; }
.boya-alt-linkler a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .boya-btn { width: 46px; height: 46px; }
    .boya-renk { width: 34px; height: 34px; }
    #boya-size { width: 100px; }
    .boya-baslik { font-size: 17px; }
    .boya-sahne { max-width: calc(70vh * var(--oran)); }
}
