@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #032748;
    --secondary-color: #f8f9fa;
    --accent-color: #4a90e2;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #054280;
    transform: translateY(-2px);
}

.section {
    padding: 5rem 1rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.section-title.mobile-left {
    text-align: left;
}

@media (min-width: 768px) {
    .section-title.mobile-left {
        text-align: center;
    }
}

/* Voor wie sectie - mobile centered, desktop right-aligned */
.voor-wie-left {
    text-align: center;
}

@media (min-width: 768px) {
    .voor-wie-left {
        text-align: right;
    }
}

/* Waarom sectie - mobile centered, desktop left-aligned */
.waarom-right {
    text-align: center;
}

@media (min-width: 768px) {
    .waarom-right {
        text-align: left;
    }
}

/* Notification animations */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.animate-slide-in {
    animation: slide-in 0.3s ease-out forwards;
}

.animate-fade-out {
    animation: fade-out 0.3s ease-out forwards;
}

.image-comparison {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.before-after-container {
    position: relative;
    transition: all 0.3s ease;
}

.before-after-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.step-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.benefit-card {
    padding: 1.5rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.for-whom-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.for-whom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.price-card {
    padding: 2rem;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.custom-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 1rem 0;
}

.custom-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 calc(100% - 2rem);
    max-width: calc(100% - 2rem);
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .carousel-item {
        flex: 0 0 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
    }
}

.example-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* AI Generator Form Styles */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed {
    opacity: 1;
}

.step-indicator.completed .step-number {
    background-color: #10b981;
    border-color: #10b981;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-indicator.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
}

.step-line {
    width: 60px;
    height: 3px;
    background-color: #e5e7eb;
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .step-line {
        width: 30px;
    }

    .step-label {
        font-size: 0.65rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: var(--accent-color);
    background-color: #f8fafc;
}

.upload-zone.dragover {
    border-color: var(--accent-color);
    background-color: #eff6ff;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-preview {
    position: relative;
    width: 100%;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}

.remove-image {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ef4444;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background-color: #dc2626;
    transform: scale(1.1);
}

.reference-upload-box {
    width: 60px;
    height: 60px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    background-color: #f9fafb;
}

.reference-upload-box:hover {
    border-color: var(--accent-color);
    background-color: #eff6ff;
}

.reference-upload-box.has-image {
    border-style: solid;
    border-color: var(--accent-color);
}

.upload-box-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-box-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.reference-item {
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.text-accent {
    color: var(--accent-color);
}

.text-primary {
    color: var(--primary-color);
}

.border-accent {
    border-color: var(--accent-color);
}

.bg-accent {
    background-color: var(--accent-color);
}

.bg-accent.bg-opacity-10 {
    background-color: rgba(74, 144, 226, 0.1);
}

.focus\:ring-accent:focus {
    --tw-ring-color: var(--accent-color);
}

/* How it works section - steps layout (always vertical, no arrows) */
.how-it-works-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.how-it-works-step {
    display: flex;
    align-items: center;
}

.how-it-works-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}

.how-it-works-number.primary {
    background-color: #032748;
}

.how-it-works-number.accent {
    background-color: #4a90e2;
}

.how-it-works-arrow {
    display: none !important;
}

/* Loading spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Aspect ratio buttons */
.aspect-ratio-btn {
    padding: 0.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.aspect-ratio-btn:hover {
    border-color: var(--accent-color);
    background-color: #f8fafc;
}

.aspect-ratio-btn.active {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.aspect-ratio-btn.active span:first-child {
    color: var(--primary-color);
}

/* Mode buttons */
.mode-btn {
    padding: 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mode-btn:hover {
    border-color: var(--accent-color);
    background-color: #f8fafc;
}

.mode-btn.active {
    border-color: var(--primary-color);
    background-color: #f0f7ff;
}

.mode-btn.active i {
    color: var(--primary-color);
}

.mode-btn i {
    color: #9ca3af;
}

/* Style preset buttons */
.style-preset-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.style-preset-btn:hover {
    border-color: var(--accent-color);
    background-color: #eff6ff;
}

.style-preset-btn.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

/* Protected image styles */
.protected-image-container {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.protected-image {
    pointer-events: none;
    -webkit-user-drag: none;
}

.watermark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
}

.watermark-overlay.hidden {
    display: none;
}

.peek-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.peek-button:hover {
    background: rgba(0, 0, 0, 0.85);
}

.peek-button:active {
    background: var(--accent-color);
}

/* Blur effect when peeking is detected as screenshot */
.protected-image.blur-protection {
    filter: blur(20px);
}

/* Custom responsive grid for pricing cards */
/* Default: 1 column (< 512px) */
#pricing-cards-container {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

/* 512px - 767px: 2 columns */
@media (min-width: 512px) and (max-width: 767px) {
    #pricing-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 768px - 1023px: 2x2 grid for better tablet experience */
@media (min-width: 768px) and (max-width: 1023px) {
    #pricing-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
}

/* 1024px+: 4 columns */
@media (min-width: 1024px) {
    #pricing-cards-container {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* =================================
   MOBILE ENHANCEMENTS
   ================================= */

/* Responsive typography for mobile */
@media (max-width: 640px) {
    .section-title {
        font-size: 1.75rem;
    }

    h1 {
        font-size: 1.75rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    /* Reduce padding on mobile */
    .section {
        padding: 3rem 1rem;
    }
}

/* Minimum tap targets for buttons (44px) */
.btn-primary,
button,
[role="button"],
a.btn-primary {
    min-height: 44px;
    min-width: 44px;
}

/* Icon-only buttons need explicit sizing */
button:has(> i:only-child),
.icon-button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Safe area insets for modern phones with notch */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .fixed.bottom-0,
    .fixed.bottom-4 {
        padding-bottom: env(safe-area-inset-bottom);
    }

    nav.fixed {
        padding-top: env(safe-area-inset-top);
    }
}

/* Improve readability on small screens */
@media (max-width: 375px) {
    body {
        font-size: 14px;
    }

    .text-lg {
        font-size: 1rem !important;
    }

    .text-xl {
        font-size: 1.125rem !important;
    }
}

/* Hide mobile menu button on desktop */
@media (min-width: 1024px) {
    #mobile-menu-btn {
        display: none !important;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
