/* ecommercemagazin.rs — Domain-specific Styles */

/* ── Colored section contrast fix (tinted backgrounds) ── */
#pocetnici .text-muted,
#dogadjaji .text-muted,
#alati .text-muted { color: #97a6ba; }

/* ── Reserve space for JS-populated section grids (prevents CLS) ── */
#ecommerceGrid,
#pocetniciGrid,
#marketingGrid,
#dogadjajiGrid,
#intervjuiGrid,
#alatiGrid { min-height: 320px; }

/* ── Scroll offset for fixed navbar (h-16 = 64px + 16px breathing room) ── */
#ecommerce, #pocetnici, #marketing, #dogadjaji, #intervjui, #alati { scroll-margin-top: 80px; }

/* ── Hero Gradient (teal + purple) ── */
.hero-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(45, 212, 191, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

/* ── Text Gradient (teal → indigo → purple) ── */
.text-gradient {
    background: linear-gradient(135deg, #2dd4bf 0%, #818cf8 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── E-Commerce Readiness Assessment ── */

/* Progress bar */
.assess-progress {
    position: fixed;
    top: 64px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2dd4bf, #818cf8, #a78bfa);
    z-index: 60;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0 2px 2px 0;
}

/* Step container */
.assess-step {
    display: none;
    animation: assessSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.assess-step.active {
    display: block;
}
@keyframes assessSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Selectable cards */
.assess-card {
    padding: 1rem 1.25rem;
    background: #1e293b;
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    text-align: left;
    width: 100%;
}
.assess-card:hover {
    border-color: rgba(45, 212, 191, 0.3);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.06);
    transform: translateY(-2px);
}
.assess-card.selected {
    border-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.08);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3), 0 4px 20px rgba(45, 212, 191, 0.1);
}
.assess-card.selected::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2dd4bf;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24' stroke='%230f172a' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.assess-card.faded {
    opacity: 0.5;
}

/* Multi-select card */
.assess-card.multi-selected {
    border-color: #2dd4bf;
    background: rgba(45, 212, 191, 0.08);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3), 0 4px 20px rgba(45, 212, 191, 0.1);
}
.assess-card.multi-selected::after {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2dd4bf;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24' stroke='%230f172a' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}

/* Insight bubble */
.assess-insight {
    padding: 1rem 1.25rem;
    background: rgba(30, 41, 59, 0.6);
    border-left: 3px solid #2dd4bf;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #94a3b8;
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.6;
    animation: fadeIn 0.4s ease-out;
}

/* Thinking dots */
.assess-dots {
    display: inline-flex;
    gap: 4px;
    padding: 0.75rem 1.25rem;
}
.assess-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2dd4bf;
    animation: assessDotBounce 1.2s ease-in-out infinite;
}
.assess-dots span:nth-child(2) { animation-delay: 0.15s; }
.assess-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes assessDotBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Score display */
.assess-score {
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}
.assess-score-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #2dd4bf 0%, #818cf8 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.assess-score-label {
    font-size: 1.5rem;
    color: #8494a7;
    font-weight: 600;
}
.assess-score-bar {
    width: 100%;
    max-width: 320px;
    height: 12px;
    background: rgba(71, 85, 105, 0.3);
    border-radius: 6px;
    margin: 1.5rem auto;
    overflow: hidden;
}
.assess-score-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #2dd4bf, #818cf8, #a78bfa);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Result card */
.assess-result {
    background: #1e293b;
    border: 1px solid rgba(71, 85, 105, 0.4);
    border-radius: 1rem;
    padding: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

/* Lead form (email gate) */
.lead-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 440px;
    margin: 0 auto;
}
.lead-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 0.75rem;
    color: #f8fafc;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.15s;
}
.lead-form input::placeholder { color: #8494a7; }
.lead-form input:focus { border-color: rgba(45, 212, 191, 0.5); }
.lead-form button {
    padding: 0.75rem 1.75rem;
    background: #2dd4bf;
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.lead-form button:hover { background: #14b8a6; }

/* Mobile */
@media (max-width: 640px) {
    .lead-form { flex-direction: column; }
    .lead-form input { min-width: 0; width: 100%; }
    .lead-form button { width: 100%; }
    .assess-score-number { font-size: 4rem; }
}
