/**
 * CatfishNumr Image Search Styles
 * Professional styles for image search with animations
 * 
 * @version 1.0.0
 * @author Fisnik Murati
 */

/* ============================================
   3-Step Process Indicator
   ============================================ */

.image-search-steps {
    margin-bottom: 2rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    position: relative;
    z-index: 2;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.step-item.completed .step-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
}

.step-content {
    text-align: center;
}

.step-title {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin: 0;
}

.step-item.active .step-title {
    color: #1f2937;
    font-weight: 700;
}

/* Horizontal line progress */
.steps-container.progress-1::before {
    background: linear-gradient(90deg, #3b82f6 25%, #e5e7eb 25%);
}

.steps-container.progress-2::before {
    background: linear-gradient(90deg, #3b82f6 50%, #e5e7eb 50%);
}

.steps-container.progress-3::before {
    background: linear-gradient(90deg, #3b82f6 75%, #e5e7eb 75%);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .steps-container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .step-item {
        max-width: 100px;
        min-width: 0;
        flex: 1;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .step-title {
        font-size: 12px;
        word-wrap: break-word;
    }
}

/* ============================================
   Image Search Animation Container
   ============================================ */

.catfishnumr-search-animation {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.catfishnumr-search-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.catfishnumr-search-header p {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16a34a;
    margin: 0;
}

/* ============================================
   Image Preview and Scanning
   ============================================ */

.search-image-img {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
}

.search-image-img.scanning {
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
}

.search-image-blur {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.possible-matches-count {
    color: #dc2626;
    font-weight: 700;
    font-size: 2rem;
    padding: 1rem;
}

/* ============================================
   Progress Text List
   ============================================ */

.catfishnumr-progress-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catfishnumr-progress-text ul li {
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    border-radius: 6px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 2.5rem;
}

.catfishnumr-progress-text ul li::before {
    content: '○';
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.catfishnumr-progress-text ul li.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    transform: translateX(4px);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.catfishnumr-progress-text ul li.active::before {
    content: '●';
    color: #ffffff;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* ============================================
   Social Media Slideshow
   ============================================ */

.social-media-slideshow {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 1rem 0;
    margin: 1rem 0;
    box-sizing: border-box;
}

.social-media-slideshow ul {
    display: flex;
    animation: infinite-scroll 30s linear infinite;
}

.social-media-slideshow ul li {
    display: inline-block;
    margin: 0 0.5rem;
}

.social-media-slideshow ul li img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-media-slideshow ul li img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes infinite-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Search Results and Notifications
   ============================================ */

.search-result {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

.search-result label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.notification {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    animation: fade-in 0.5s ease;
}

.search-notify-adult {
    background: #fef2f2;
    border: 2px solid #ef4444;
}

.search-notify-adult p {
    color: #dc2626;
    font-weight: 600;
    margin: 0;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Progress Footer
   ============================================ */

.catfishnumr-search-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

.progress-updates {
    flex: 1;
}

.progress-step {
    font-size: 1.125rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 0.75rem;
}

.catfishnumr-progress-bar {
    background: #10b981;
    color: #ffffff;
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: width 0.3s ease-in-out;
    min-width: 2rem;
}

.step-description {
    font-size: 1rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 0.75rem;
}

.btn-get-results {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.btn-get-results:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

/* ============================================
   FilePond Custom Styles
   ============================================ */

.filepond--root {
    font-family: inherit;
    margin-bottom: 1.5rem;
}

.filepond--panel-root {
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
}

.filepond--drop-label {
    color: #4b5563;
    font-size: 1rem;
}

.filepond--label-action {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.filepond--label-action:hover {
    color: #2563eb;
    text-decoration: underline;
}

.filepond--drip-blob {
    background-color: #3b82f6;
}

.filepond--file {
    color: #1f2937;
}

.filepond--file-status {
    color: #6b7280;
}

.filepond--file-info {
    color: #374151;
}

/* Active state when dragging */
.filepond--root.filepond--hopper {
    border-color: #3b82f6;
}

/* Hide FilePond PQINA branding/credits */
.filepond--credits,
.filepond--credits *,
[class*="filepond--credits"],
[class*="filepond"][class*="credits"],
.filepond--root [data-credit],
.filepond--root a[href*="pqina"],
.filepond--root a[href*="filepond"],
.filepond--root::after {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

/* Hide any "Powered by" text */
.filepond--root::before {
    content: none !important;
    display: none !important;
}

/* Hide any credit links or text containing PQINA/FilePond branding */
.filepond--root *:not([class*="filepond--label"]):not([class*="filepond--file"]):not([class*="filepond--panel"]) {
    text-decoration: none !important;
}

.filepond--root [href*="pqina"],
.filepond--root [href*="filepond"],
.filepond--root span:contains("PQINA"),
.filepond--root span:contains("Powered by"),
.filepond--root div:contains("PQINA"),
.filepond--root div:contains("Powered by") {
    display: none !important;
    visibility: hidden !important;
}

/* ============================================
   Image Upload Section Toggle
   ============================================ */

.image-search-upload-section {
    animation: fade-in 0.3s ease;
}

.image-search-animation-section {
    animation: fade-in 0.3s ease;
}

/* ============================================
   Responsive Grid
   ============================================ */

.grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

.col-span-3 {
    grid-column: span 3 / span 3;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.col-span-1 {
    grid-column: span 1 / span 1;
}

@media (min-width: 640px) {
    .sm\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .sm\:col-span-1 {
        grid-column: span 1 / span 1;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-y-8 {
    row-gap: 2rem;
}

.justify-center {
    justify-content: center;
}

.justify-self-center {
    justify-self: center;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-fit {
    max-width: fit-content;
}

.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.sm\:text-left {
    text-align: left;
}

@media (min-width: 640px) {
    .sm\:text-left {
        text-align: left;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 640px) {
    .catfishnumr-search-animation {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 1.5rem 0;
    }
    
    .grid {
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .search-image-img {
        width: 150px;
        height: 150px;
        max-width: 100%;
    }
    
    .catfishnumr-progress-text ul li {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        padding-left: 2rem;
        word-wrap: break-word;
        max-width: 100%;
    }
    
    .col-span-3,
    .sm\:col-span-2,
    .sm\:col-span-1 {
        grid-column: span 3 / span 3;
        max-width: 100%;
    }
}

/* ============================================
   Animations
   ============================================ */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-10px);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* ============================================
   Tailwind-like Utilities
   ============================================ */

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-md {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.my-6 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-md {
    border-radius: 0.375rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-500 {
    background-color: #6b7280;
}

.bg-opacity-80 {
    --tw-bg-opacity: 0.8;
}

.text-white {
    color: #ffffff;
}

.text-green-700 {
    color: #15803d;
}

.text-green-600 {
    color: #16a34a;
}

.text-red {
    color: #dc2626;
}

.border {
    border-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-solid {
    border-style: solid;
}

.border-2 {
    border-width: 2px;
}

.bg-white-200 {
    background-color: #f3f4f6;
}

.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 {
    transition-duration: 300ms;
}

/* Position utilities */
.absolute {
    position: absolute;
}

.relative {
    position: relative;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

/* Width utilities */
.w-full {
    width: 100%;
}

.w-\[200px\] {
    width: 200px;
}

.h-\[200px\] {
    height: 200px;
}

/* Backdrop utilities */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

/* ============================================
   Payment Packages Preview Styles
   ============================================ */

.catfishnumr-payment-packages-preview {
    position: relative;
    overflow: hidden;
}

.catfishnumr-payment-packages-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #ffc107, #6f42c1);
}

.package-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.package-card.standard:hover {
    border-color: #28a745;
}

.package-card.premium:hover {
    border-color: #ffc107;
    box-shadow: 0 20px 40px rgba(255, 193, 7, 0.3);
}

.package-card.enterprise:hover {
    border-color: #6f42c1;
}

.btn-package {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-package::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-package:hover::before {
    left: 100%;
}

.btn-package:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.discovery-features .feature-item {
    transition: all 0.3s ease;
}

.discovery-features .feature-item:hover {
    transform: scale(1.05);
}

.upgrade-notice {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.unlock-notice {
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(21, 101, 192, 0.3); }
    to { box-shadow: 0 0 20px rgba(21, 101, 192, 0.6); }
}

/* Responsive two-column layout for fake results + upgrade section */
.results-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 900px) {
    .results-grid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Upgrade section styles */
.upgrade-section {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.upgrade-section .upgrade-header {
    text-align: center;
    margin-bottom: 18px;
}

.upgrade-section .upgrade-header h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    color: #222;
}

.upgrade-section .upgrade-header p {
    margin: 0;
    color: #5f6b7a;
    font-size: 14px;
}

.upgrade-packages {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 720px) {
    .upgrade-packages {
        grid-template-columns: 1fr 1fr;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.package-option {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
}

.package-option h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.package-option .package-features {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.package-option .package-button {
    display: inline-block;
    border-radius: 8px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
}

.package-option .standard-btn {
    background: #2d71e3;
    color: #fff;
}

.package-option .premium-btn {
    background: linear-gradient(45deg, #8a6cff, #b18cff);
    color: #fff;
}

.package-option .package-info {
    margin-top: 10px;
    color: #666;
    font-size: 12px;
}

.premium-highlight {
    border-color: #8a6cff;
    position: relative;
}

.premium-highlight .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #8a6cff, #b18cff);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(138,108,255,0.35);
}

.package-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

