/* =====================================================
   VisualCraft Pro — Public Components CSS
   ===================================================== */

/* Container */
.vcp-container { width: 100%; max-width: var(--vcp-container, 1200px); margin: 0 auto; padding: 0 var(--vcp-container-pad, 15px); }
.vcp-container.vcp-full-width { max-width: 100%; padding: 0; }

/* Row & Columns */
.vcp-row { display: flex; flex-wrap: wrap; gap: var(--vcp-col-gap, 30px); align-items: stretch; }
.vcp-row.vcp-row-reverse { flex-direction: row-reverse; }
.vcp-row.vcp-va-middle { align-items: center; }
.vcp-row.vcp-va-bottom { align-items: flex-end; }
.vcp-column { flex: 1 1 calc(var(--vcp-col-width, 100%) - var(--vcp-col-gap, 30px)); min-width: 0; }

/* Section */
.vcp-section { position: relative; overflow: hidden; }
.vcp-section-has-overlay::before { content: ''; position: absolute; inset: 0; background: var(--vcp-section-overlay, rgba(0,0,0,0.4)); z-index: 0; pointer-events: none; }
.vcp-section-full-height { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.vcp-section.vcp-va-middle .vcp-section-inner { display: flex; align-items: center; min-height: inherit; }
.vcp-section.vcp-va-bottom  .vcp-section-inner { display: flex; align-items: flex-end; min-height: inherit; }
.vcp-section-video-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.vcp-section-video-bg video { width: 100%; height: 100%; object-fit: cover; }

/* Alignment helpers */
.vcp-align-left    { text-align: left; }
.vcp-align-center  { text-align: center; }
.vcp-align-right   { text-align: right; }
.vcp-align-justify { text-align: justify; }

/* Heading */
.vcp-heading { margin-top: 0; margin-bottom: 0.5em; }

/* Text */
.vcp-text { }
.vcp-text p { margin-bottom: 1em; }
.vcp-text p:last-child { margin-bottom: 0; }

/* Button */
.vcp-btn-wrap { display: block; }
.vcp-btn-wrap.vcp-align-center { text-align: center; }
.vcp-btn-wrap.vcp-align-right  { text-align: right; }
.vcp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; cursor: pointer; border: none; font-family: inherit;
  font-weight: 600; transition: all 0.3s ease; outline: none; letter-spacing: 0.01em;
  border-radius: var(--vcp-btn-radius, 8px); position: relative; overflow: hidden;
}
.vcp-btn-xs  { height: 30px; padding: 0 14px; font-size: 11.5px; }
.vcp-btn-sm  { height: 36px; padding: 0 18px; font-size: 13px; }
.vcp-btn-md  { height: 44px; padding: 0 24px; font-size: 14px; }
.vcp-btn-lg  { height: 52px; padding: 0 32px; font-size: 16px; }
.vcp-btn-xl  { height: 60px; padding: 0 40px; font-size: 18px; }
.vcp-btn-full{ width: 100%; }

.vcp-btn-solid {
  background: var(--vcp-btn-bg, var(--vcp-primary));
  color: var(--vcp-btn-color, #fff);
}
.vcp-btn-solid:hover { background: var(--vcp-btn-hover-bg, #4f46e5); color: var(--vcp-btn-color, #fff); text-decoration: none; }

.vcp-btn-outline {
  background: transparent;
  border: 2px solid var(--vcp-btn-bg, var(--vcp-primary));
  color: var(--vcp-btn-bg, var(--vcp-primary));
}
.vcp-btn-outline:hover { background: var(--vcp-btn-bg, var(--vcp-primary)); color: #fff; text-decoration: none; }

.vcp-btn-ghost { background: transparent; color: var(--vcp-btn-bg, var(--vcp-primary)); }
.vcp-btn-ghost:hover { background: rgba(99,102,241,0.1); text-decoration: none; }

.vcp-btn-gradient {
  background: linear-gradient(135deg, var(--vcp-btn-grad-from, #6366f1), var(--vcp-btn-grad-to, #ec4899));
  color: #fff;
}
.vcp-btn-gradient:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,0.4); text-decoration: none; }

.vcp-btn-neon {
  background: transparent;
  color: var(--vcp-btn-bg, #00ff88);
  border: 2px solid var(--vcp-btn-bg, #00ff88);
  box-shadow: 0 0 10px var(--vcp-btn-bg, #00ff88), inset 0 0 10px rgba(0,255,136,0.1);
  text-shadow: 0 0 8px var(--vcp-btn-bg, #00ff88);
}
.vcp-btn-neon:hover { box-shadow: 0 0 20px var(--vcp-btn-bg, #00ff88), 0 0 40px var(--vcp-btn-bg, #00ff88), inset 0 0 20px rgba(0,255,136,0.2); text-decoration: none; }

.vcp-btn-glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.vcp-btn-glass:hover { background: rgba(255,255,255,0.25); text-decoration: none; }

/* Image */
.vcp-image { margin: 0; }
.vcp-image img { display: block; max-width: 100%; height: auto; }
.vcp-image-caption { font-size: 13px; color: #64748b; text-align: center; margin-top: 8px; font-style: italic; }
.vcp-image-placeholder { width: 100%; height: 200px; background: #f1f5f9; border: 2px dashed #e2e8f0; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 14px; }

/* Image hover effects */
.vcp-img { transition: all 0.4s ease; }
.vcp-img-zoom:hover { transform: scale(1.08); }
.vcp-img-grayscale { filter: grayscale(100%); }
.vcp-img-grayscale:hover { filter: grayscale(0%); }
.vcp-img-blur:hover { filter: blur(3px); }
.vcp-img-brightness:hover { filter: brightness(1.2); }
.vcp-img-shadow { box-shadow: 0 20px 40px rgba(0,0,0,0.15); }

/* Image masks */
.vcp-mask-circle { clip-path: circle(50%); }
.vcp-mask-diamond { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.vcp-mask-hexagon { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }

/* Divider */
.vcp-divider-wrap { display: flex; align-items: center; }
.vcp-divider-wrap.vcp-align-center { justify-content: center; }
.vcp-divider-wrap.vcp-align-right  { justify-content: flex-end; }
.vcp-divider { display: block; }

/* Spacer responsive */
@media (max-width: 768px) { .vcp-spacer { height: var(--vcp-spacer-tablet, 30px) !important; } }
@media (max-width: 480px) { .vcp-spacer { height: var(--vcp-spacer-mobile, 20px) !important; } }

/* Video */
.vcp-video-wrapper { position: relative; padding-top: calc(100% / (var(--vcp-ratio, 16/9))); overflow: hidden; }
.vcp-video-wrapper iframe, .vcp-video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Gallery */
.vcp-gallery { }
.vcp-gallery-grid { display: grid; grid-template-columns: repeat(var(--vcp-gallery-cols, 3), 1fr); gap: var(--vcp-gallery-gap, 10px); }
.vcp-gallery-masonry { columns: var(--vcp-gallery-cols, 3); gap: var(--vcp-gallery-gap, 10px); }
.vcp-gallery-masonry .vcp-gallery-item { break-inside: avoid; margin-bottom: var(--vcp-gallery-gap, 10px); }
.vcp-gallery-item { overflow: hidden; border-radius: var(--vcp-gallery-radius, 8px); }
.vcp-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.vcp-gallery-hover-zoom .vcp-gallery-item:hover img { transform: scale(1.08); }
.vcp-gallery-hover-overlay .vcp-gallery-item { position: relative; }
.vcp-gallery-hover-overlay .vcp-gallery-item::after { content: '🔍'; position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; font-size: 28px; }
.vcp-gallery-hover-overlay .vcp-gallery-item:hover::after { opacity: 1; }

/* Icon */
.vcp-icon { display: block; }
.vcp-icon.vcp-align-center { text-align: center; }
.vcp-icon.vcp-align-right  { text-align: right; }
.vcp-icon-shape-circle { display: inline-flex; align-items: center; justify-content: center; width: 1.8em; height: 1.8em; border-radius: 50%; }
.vcp-icon-shape-square { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; }
.vcp-icon-shape-rounded { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; border-radius: 0.3em; }

@keyframes vcpIconSpin { to { transform: rotate(360deg); } }
@keyframes vcpIconPulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.15)} }
@keyframes vcpIconBounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)} }
@keyframes vcpIconSwing { 0%,100%{transform:rotate(0)}25%{transform:rotate(15deg)}75%{transform:rotate(-15deg)} }
.vcp-icon-spin   i { animation: vcpIconSpin 2s linear infinite; display: inline-block; }
.vcp-icon-pulse  i { animation: vcpIconPulse 1.5s ease infinite; display: inline-block; }
.vcp-icon-bounce i { animation: vcpIconBounce 1.5s ease infinite; display: inline-block; }
.vcp-icon-swing  i { animation: vcpIconSwing 1.5s ease infinite; display: inline-block; }
.vcp-icon-glow   i { animation: vcpNeonPulse 2s ease-in-out infinite alternate; }

/* Counter */
.vcp-counter.vcp-align-center { text-align: center; }
.vcp-counter.vcp-align-right  { text-align: right; }
.vcp-counter-icon { margin-bottom: 12px; }
.vcp-counter-icon i { font-size: 36px; color: var(--vcp-primary); }
.vcp-counter-number { font-weight: 800; line-height: 1; margin-bottom: 6px; }
.vcp-counter-prefix, .vcp-counter-suffix { font-size: 0.6em; }
.vcp-counter-title { font-size: 14px; color: #64748b; font-weight: 500; }

/* Progress bar */
.vcp-progress-bar { margin-bottom: 16px; }
.vcp-pb-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.vcp-pb-title { font-size: 13.5px; font-weight: 600; }
.vcp-pb-percent { font-size: 12px; font-weight: 600; color: var(--vcp-primary); }
.vcp-pb-track { border-radius: 50px; overflow: hidden; background: #e2e8f0; }
.vcp-pb-fill { height: 100%; width: 0; border-radius: 50px; background: var(--vcp-primary); transition: width 0s; }
.vcp-pb-striped .vcp-pb-fill {
  background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%);
  background-size: 20px 20px;
  animation: vcpStripe 1s linear infinite;
}
@keyframes vcpStripe { to { background-position: 20px 0; } }
.vcp-pb-glow .vcp-pb-fill { box-shadow: 0 0 10px var(--vcp-primary); }
.vcp-progress-circle { display: inline-flex; flex-direction: column; align-items: center; position: relative; }
.vcp-progress-circle-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 22px; font-weight: 800; color: var(--vcp-primary); }

/* Countdown */
.vcp-countdown { display: flex; flex-wrap: wrap; gap: 16px; }
.vcp-countdown-blocks { display: flex; flex-wrap: wrap; gap: 16px; }
.vcp-countdown-minimal .vcp-countdown-unit { background: transparent !important; }
.vcp-countdown-unit { display: flex; flex-direction: column; align-items: center; min-width: 60px; border-radius: 10px; padding: 12px 16px; }
.vcp-cd-num { font-size: 36px; font-weight: 800; line-height: 1; }
.vcp-cd-label { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.vcp-cd-expired { font-size: 20px; font-weight: 700; }

/* Tabs */
.vcp-tabs-horizontal .vcp-tabs-nav { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; }
.vcp-tabs-vertical { display: flex; gap: 20px; }
.vcp-tabs-vertical .vcp-tabs-nav { flex-direction: column; min-width: 180px; border-right: 2px solid #e2e8f0; }
.vcp-tab-btn {
  padding: 10px 20px; border: none; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 500; color: #64748b; border-radius: 8px 8px 0 0;
  position: relative; transition: all 0.2s ease;
}
.vcp-tab-btn:hover { color: var(--vcp-tab-active-color, var(--vcp-primary)); background: rgba(99,102,241,0.06); }
.vcp-tab-btn.vcp-tab-active {
  color: var(--vcp-tab-active-color, var(--vcp-primary));
}
.vcp-tabs-horizontal .vcp-tab-btn.vcp-tab-active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--vcp-tab-active-color, var(--vcp-primary)); }
.vcp-tab-content { display: none; }
.vcp-tab-content.vcp-tab-active { display: block; }
.vcp-tabs-pills .vcp-tab-btn { border-radius: 30px; }
.vcp-tabs-pills .vcp-tab-btn.vcp-tab-active { background: var(--vcp-tab-active-color, var(--vcp-primary)); color: #fff; }

/* Accordion */
.vcp-accordion { }
.vcp-accordion-item { border-bottom: 1px solid #e2e8f0; }
.vcp-accordion-item:first-child { border-top: 1px solid #e2e8f0; }
.vcp-accordion-separated .vcp-accordion-item { margin-bottom: 8px; border: 1px solid #e2e8f0; border-radius: 8px; }
.vcp-accordion-header { padding: 16px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; transition: color 0.2s ease; user-select: none; }
.vcp-accordion-header:hover { color: var(--vcp-acc-color, var(--vcp-primary)); }
.vcp-accordion-item.vcp-acc-open .vcp-accordion-header { color: var(--vcp-acc-color, var(--vcp-primary)); }
.vcp-acc-icon { font-size: 18px; font-weight: 300; transition: transform 0.3s ease; }
.vcp-accordion-item.vcp-acc-open .vcp-acc-chevron { transform: rotate(90deg); }
.vcp-accordion-body { padding: 0 20px 16px; overflow: hidden; max-height: 0; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
.vcp-accordion-item.vcp-acc-open .vcp-accordion-body { /* max-height set by JS */ }

/* Testimonial */
.vcp-testimonial { padding: 24px; border-radius: 12px; }
.vcp-testimonial-stars { margin-bottom: 12px; font-size: 18px; }
.vcp-testimonial-text { font-size: 15px; line-height: 1.7; color: #334155; margin: 0 0 16px; font-style: italic; position: relative; }
.vcp-testimonial-card .vcp-testimonial-text::before { content: '"'; font-size: 60px; color: var(--vcp-primary); opacity: 0.2; position: absolute; top: -20px; left: -10px; font-family: Georgia, serif; line-height: 1; }
.vcp-testimonial-author { display: flex; align-items: center; gap: 12px; }
.vcp-testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.vcp-testimonial-info strong { display: block; font-size: 14px; font-weight: 700; }
.vcp-testimonial-info span { font-size: 12px; color: #64748b; }
.vcp-testimonial-card { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

/* Pricing */
.vcp-pricing { padding: 32px; border-radius: 16px; border: 2px solid #e2e8f0; text-align: center; transition: all 0.3s ease; background: #fff; position: relative; overflow: hidden; }
.vcp-pricing:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.vcp-pricing-featured { border-color: var(--vcp-pricing-accent, var(--vcp-primary)); transform: scale(1.03); box-shadow: 0 20px 50px rgba(99,102,241,0.2); }
.vcp-pricing-badge { position: absolute; top: 16px; right: -24px; background: var(--vcp-pricing-accent, var(--vcp-primary)); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 36px; transform: rotate(45deg); letter-spacing: 0.5px; }
.vcp-pricing-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.vcp-pricing-price { font-size: 48px; font-weight: 900; color: var(--vcp-pricing-accent, var(--vcp-primary)); line-height: 1; }
.vcp-pricing-price span { font-size: 16px; font-weight: 500; color: #64748b; }
.vcp-pricing-desc { color: #64748b; font-size: 13.5px; margin: 8px 0 0; }
.vcp-pricing-features { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.vcp-pricing-features li { padding: 8px 0; font-size: 14px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.vcp-pricing-features li:last-child { border-bottom: none; }
.vcp-pricing-cta { margin-top: 20px; }
.vcp-pricing-cta .vcp-btn { width: 100%; justify-content: center; background: var(--vcp-pricing-accent, var(--vcp-primary)); }

/* Alert */
.vcp-alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.vcp-alert i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.vcp-alert-content { flex: 1; }
.vcp-alert-content strong { display: block; font-weight: 700; margin-bottom: 2px; }
.vcp-alert-close { background: transparent; border: none; cursor: pointer; font-size: 16px; opacity: 0.6; padding: 0 4px; line-height: 1; }
.vcp-alert-info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; }
.vcp-alert-success { background: #f0fdf4; border-left: 4px solid #22c55e; color: #15803d; }
.vcp-alert-warning { background: #fefce8; border-left: 4px solid #eab308; color: #854d0e; }
.vcp-alert-error   { background: #fef2f2; border-left: 4px solid #ef4444; color: #b91c1c; }

/* Social Icons */
.vcp-social-icons { display: flex; flex-wrap: wrap; gap: var(--vcp-social-gap, 10px); }
.vcp-social-icons.vcp-align-center { justify-content: center; }
.vcp-social-icons.vcp-align-right  { justify-content: flex-end; }
.vcp-social-icon {
  width: var(--vcp-social-size, 40px); height: var(--vcp-social-size, 40px);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; text-decoration: none; color: var(--vcp-sicon-color, #333);
  transition: all 0.3s ease; font-size: calc(var(--vcp-social-size, 40px) * 0.4);
}
.vcp-social-default  .vcp-social-icon { background: transparent; }
.vcp-social-rounded  .vcp-social-icon { border-radius: 8px; background: var(--vcp-sicon-color, #333); color: #fff; }
.vcp-social-circle   .vcp-social-icon { border-radius: 50%; background: var(--vcp-sicon-color, #333); color: #fff; }
.vcp-social-bordered .vcp-social-icon { border: 2px solid var(--vcp-sicon-color, #333); }
.vcp-social-solid    .vcp-social-icon { background: var(--vcp-sicon-color, #333); color: #fff; border-radius: 4px; }

/* Contact Form */
.vcp-contact-form { }
.vcp-form-field { margin-bottom: 18px; }
.vcp-form-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.vcp-required { color: #ef4444; }
.vcp-form-field input, .vcp-form-field textarea, .vcp-form-field select {
  width: 100%; padding: 10px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color 0.2s ease; background: #fff;
  font-family: inherit;
}
.vcp-form-field input:focus, .vcp-form-field textarea:focus, .vcp-form-field select:focus {
  border-color: var(--vcp-primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.vcp-form-floating .vcp-form-field { position: relative; }
.vcp-form-floating label { position: absolute; left: 14px; top: 10px; transition: all 0.2s ease; color: #94a3b8; pointer-events: none; }
.vcp-form-floating input:focus ~ label, .vcp-form-floating input:not(:placeholder-shown) ~ label { top: -8px; font-size: 11px; color: var(--vcp-primary); background: #fff; padding: 0 4px; }
.vcp-form-messages { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: 13.5px; display: none; }
.vcp-form-messages:not(:empty) { display: block; }
.vcp-form-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.vcp-form-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* Map */
.vcp-map { overflow: hidden; }
.vcp-map iframe { display: block; border: 0; }

/* Lottie */
.vcp-lottie { display: block; }

/* Slider */
.vcp-slider-wrap { overflow: hidden; border-radius: 8px; }
.vcp-slide { display: flex; align-items: center; justify-content: center; }
