/* --- VARIABLES --- */
:root {
    --bg-color: #FFFBF0;
    --text-main: #2D3436;
    --color-accent: #FF6B6B;
    --color-yellow: #FFD93D;
    --color-blue: #4D96FF;
    --font-main: 'Outfit', 'Zen Maru Gothic', sans-serif;
}

/* --- RESET & BASE --- */
* { box-sizing: border-box; }
body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    margin: 0;
    color: var(--text-main);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- HEADER --- */
header {
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 1000;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo { display: flex; align-items: center; position: relative; }
.logo img { height: 40px; width: auto; }

.nav-links { display: flex; gap: 40px; }
.nav-links a { font-weight: 600; font-size: 16px; transition: 0.3s; position: relative; }
.nav-links a:hover { color: var(--color-accent); }

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.mobile-menu-icon { display: none; font-size: 24px; cursor: pointer; }

/* --- CREATOR SECTION --- */
.creator-section {
    padding: 120px 20px 60px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.creator-container {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
}

/* --- PREVIEW COLUMN --- */
.preview-column {
    background: #ffffff;
    padding: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.mockup-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.blob-bg {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(77, 150, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.base-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.drawing-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    z-index: 3;
    overflow: hidden;
    transition: width 0.3s, height 0.3s, top 0.3s;
}

.drawing-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.1s ease;
}

.placeholder-text {
    border: 2px dashed #ddd;
    border-radius: 10px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
    background: rgba(255,255,255,0.5);
}

/* --- CONTROLS COLUMN --- */
.controls-column {
    padding: 50px;
    background: #fff;
    border-left: 1px solid #f9f9f9;
}

.studio-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.3;
}

.step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.step-label span {
    background: var(--color-blue);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.control-group { margin-bottom: 30px; }

/* --- PRODUCT GRID & OPTIONS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.product-option {
    border: 2px solid #eee;
    padding: 15px 10px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center; /* توسيط العناصر */
    justify-content: center;
    gap: 8px; /* مسافة بين الصورة والنص */
    background: #fff;
}

/* تنسيق الصورة المصغرة داخل الزر */
.product-thumb {
    width: 60px;   /* عرض ثابت للصورة */
    height: 60px;  /* ارتفاع ثابت */
    object-fit: contain; /* الحفاظ على أبعاد الصورة دون مط */
    transition: 0.3s;
}

.product-option:hover { 
    border-color: var(--color-blue); 
}

/* تأثير عند تمرير الماوس على الصورة */
.product-option:hover .product-thumb {
    transform: scale(1.1); /* تكبير بسيط للصورة */
}

.product-option.active {
    border-color: var(--color-accent);
    background: #FFF5F5;
    color: var(--color-accent);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.15); /* ظل خفيف للزر المختار */
    transform: translateY(-2px);
}

.upload-zone {
    border: 2px dashed #ddd;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: 0.3s;
}

.upload-zone:hover, .upload-zone.drag-over {
    border-color: var(--color-blue);
    background: #F0F7FF;
}

.upload-icon { font-size: 32px; display: block; margin-bottom: 10px; }

.input-field {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 15px;
    font-family: inherit;
    font-size: 16px;
}
.input-field:focus { outline: none; border-color: var(--color-blue); }

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.price-tag { font-size: 28px; font-weight: 800; color: var(--text-main); }
.btn-block { width: auto; min-width: 180px; }

/* --- SLIDER STYLING --- */
.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fafafa;
    padding: 15px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 5px;
    outline: none;
    transition: 0.2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--color-accent);
}

.small-icon { font-size: 12px; color: #aaa; }

/* --- FOOTER --- */
#colorful-footer {
    background-color: var(--color-yellow);
    padding: 30px 20px 15px;
    margin-top: 80px;
    border-radius: 20px 20px 0 0;
    color: var(--text-main);
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.footer-nav { display: flex; gap: 25px; }
.footer-nav a { font-weight: bold; font-size: 16px; }
.footer-nav a:hover { color: #fff; }

.highlight-link {
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer-compact-form { display: flex; gap: 10px; }
.footer-compact-form input {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    outline: none;
    width: 220px;
}
.footer-compact-form button {
    background-color: var(--text-main);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.footer-compact-form button:hover { background-color: var(--color-accent); }

.footer-copyright { text-align: center; font-weight: bold; opacity: 0.7; }

/* Responsive */
@media (max-width: 900px) {
    .creator-container { grid-template-columns: 1fr; }
    .controls-column { border-left: none; border-top: 1px solid #f9f9f9; }
    header { padding: 15px 20px; }
    .nav-links { display: none; }
    .mobile-menu-icon { display: block; }
    .footer-top-row { flex-direction: column; text-align: center; }
    .footer-compact-form { width: 100%; justify-content: center; }
}
