/**
 * Use Case Widgets - Shared Styles
 * For Real Estate CRM Landing Page Elementor Widgets
 */

/* ================================
   Base Variables & Reset
   ================================ */
:root {
    --ep-primary-blue: #3b82f6;
    --ep-dark-blue: #1e40af;
    --ep-purple: #8b5cf6;
    --ep-green: #10b981;
    --ep-red: #ef4444;
    --ep-dark: #1f2937;
    --ep-light-gray: #f3f4f6;
    --ep-gray-50: #f9fafb;
    --ep-gray-100: #f3f4f6;
    --ep-gray-200: #e5e7eb;
    --ep-gray-600: #4b5563;
    --ep-gray-800: #1f2937;
    --ep-gray-900: #111827;
}

/* ================================
   Glassmorphism
   ================================ */
.ep-glassmorphic {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
}

.ep-glassmorphic-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

/* ================================
   Gradient Backgrounds
   ================================ */
.ep-gradient-blue-purple {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.ep-gradient-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 100%);
}

.ep-gradient-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.ep-gradient-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.ep-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.ep-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* ================================
   Section Badge
   ================================ */
.ep-section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* ================================
   Card Styles
   ================================ */
.ep-card {
    background: #ffffff;
    border: 1px solid var(--ep-gray-200);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.ep-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ep-card-dark {
    background: var(--ep-gray-800);
    border: 1px solid var(--ep-gray-700);
}

/* ================================
   Icon Containers
   ================================ */
.ep-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ep-icon-box-sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.ep-icon-box-lg {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-icon-box-lg .ep-workflow-icon,
.ep-icon-box-lg .ep-tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ep-icon-box-lg .ep-workflow-icon svg,
.ep-icon-box-lg .ep-workflow-icon i,
.ep-icon-box-lg .ep-tech-icon svg,
.ep-icon-box-lg .ep-tech-icon i {
    width: 28px;
    height: 28px;
    font-size: 28px;
}

/* ================================
   Responsive Grids
   ================================ */
.ep-grid-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.ep-grid-3 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.ep-grid-4 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.ep-grid-6 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .ep-grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ep-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ep-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ep-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .ep-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .ep-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .ep-grid-6 {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ================================
   Typography
   ================================ */
.ep-section-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.ep-section-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ep-gray-600);
    margin-bottom: 48px;
}

.ep-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ep-card-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ep-gray-600);
}

@media (min-width: 1024px) {
    .ep-section-title {
        font-size: 42px;
    }
}

/* ================================
   Buttons
   ================================ */
.ep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.ep-btn-primary {
    background: var(--ep-primary-blue);
    color: #ffffff;
}

.ep-btn-primary:hover {
    background: var(--ep-dark-blue);
    color: #ffffff;
}

.ep-btn-white {
    background: #ffffff;
    color: var(--ep-primary-blue);
}

.ep-btn-white:hover {
    background: var(--ep-gray-100);
    color: var(--ep-dark-blue);
}

.ep-btn-outline {
    background: transparent;
    color: var(--ep-primary-blue);
    border: 2px solid var(--ep-primary-blue);
}

.ep-btn-outline:hover {
    background: var(--ep-primary-blue);
    color: #ffffff;
}

/* ================================
   Section Spacing
   ================================ */
.ep-section {
    padding: 80px 0;
}

.ep-section-sm {
    padding: 60px 0;
}

.ep-section-lg {
    padding: 100px 0;
}

/* ================================
   Stats Cards
   ================================ */
.ep-stat-card {
    text-align: center;
    padding: 24px;
}

.ep-stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ep-stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* ================================
   Check List
   ================================ */
.ep-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ep-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.ep-check-list li:last-child {
    margin-bottom: 0;
}

.ep-check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--ep-green);
}

/* ================================
   Callout Box
   ================================ */
.ep-callout {
    border-left: 4px solid;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

/* ================================
   Numbered Steps
   ================================ */
.ep-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--ep-primary-blue);
    color: var(--ep-primary-blue);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -16px;
    left: 0;
}

/* ================================
   Comparison Box
   ================================ */
.ep-comparison-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.ep-comparison-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ep-comparison-icon.negative {
    color: var(--ep-red);
}

.ep-comparison-icon.positive {
    color: var(--ep-green);
}

/* ================================
   Testimonial
   ================================ */
.ep-testimonial-quote {
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.ep-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ep-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ep-primary-blue);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ================================
   Metric Card
   ================================ */
.ep-metric-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--ep-gray-200);
    border-radius: 12px;
}

.ep-metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ep-primary-blue);
}

.ep-metric-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-gray-800);
}

.ep-metric-desc {
    font-size: 13px;
    color: var(--ep-gray-600);
}

/* ================================
   Integration Grid
   ================================ */
.ep-integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--ep-gray-800);
    border-radius: 12px;
    text-align: center;
}

.ep-integration-icon {
    font-size: 32px;
}

.ep-integration-name {
    font-size: 14px;
    color: #ffffff;
}

/* ================================
   Feature Benefits List
   ================================ */
.ep-benefits-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.ep-benefits-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ep-gray-600);
    margin-bottom: 8px;
}

.ep-benefits-list li:last-child {
    margin-bottom: 0;
}

.ep-benefit-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ep-primary-blue);
    flex-shrink: 0;
}

/* ================================
   Responsive Utilities
   ================================ */
@media (max-width: 767px) {
    .ep-section {
        padding: 60px 0;
    }

    .ep-section-title {
        font-size: 28px;
    }

    .ep-section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .ep-stat-value {
        font-size: 28px;
    }
}

/* ================================
   Hero Section Specific
   ================================ */
.ep-use-case-hero {
    position: relative;
    overflow: hidden;
}

.ep-use-case-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.ep-use-case-hero .hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.ep-use-case-hero .hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 24px 128px;
}

.ep-use-case-hero .hero-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.ep-use-case-hero .hero-brand-icon {
    width: 40px;
    height: 40px;
}

.ep-use-case-hero .hero-brand-icon i,
.ep-use-case-hero .hero-brand-icon svg {
    width: 40px;
    height: 40px;
    font-size: 40px;
}

.ep-use-case-hero .hero-brand-logo {
    height: auto;
    object-fit: contain;
}

.ep-use-case-hero .hero-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.ep-use-case-hero .hero-headline {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
}

.ep-use-case-hero .hero-headline-highlight {
    display: block;
}

.ep-use-case-hero .hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 900px;
}

.ep-use-case-hero .hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.ep-use-case-hero .hero-stat-card {
    padding: 12px 24px;
}

.ep-use-case-hero .hero-stat-value {
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
}

.ep-use-case-hero .hero-stat-label {
    font-size: 14px;
    color: rgba(147, 197, 253, 1);
}

.ep-use-case-hero .hero-cta-btn {
    background: #ffffff;
    color: #2563eb;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ep-use-case-hero .hero-cta-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.ep-use-case-hero .hero-cta-btn svg,
.ep-use-case-hero .hero-cta-btn i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: inherit;
    fill: currentColor;
}

.ep-use-case-hero .hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 96px;
    background: linear-gradient(to top, #ffffff, transparent);
}

@media (min-width: 1024px) {
    .ep-use-case-hero .hero-headline {
        font-size: 60px;
    }

    .ep-use-case-hero .hero-content {
        padding: 128px 24px 160px;
    }
}

@media (max-width: 767px) {
    .ep-use-case-hero .hero-headline {
        font-size: 36px;
    }

    .ep-use-case-hero .hero-description {
        font-size: 16px;
    }

    .ep-use-case-hero .hero-content {
        padding: 64px 16px 96px;
    }
}

/* ================================
   Challenges Section Specific
   ================================ */
.ep-challenges-section {
    background: var(--ep-gray-50);
}

.ep-challenge-card {
    height: 100%;
}

.ep-challenge-impact {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--ep-red);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 12px;
}

/* ================================
   Tech Stack Section Specific
   ================================ */
.ep-tech-section {
    background: var(--ep-gray-900);
    color: #ffffff;
}

.ep-tech-card {
    background: var(--ep-gray-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.ep-tech-card:hover {
    border-color: var(--ep-primary-blue);
}

.ep-tech-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.ep-tech-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.ep-tech-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ================================
   Workflow Section Specific
   ================================ */
.ep-workflow-card {
    position: relative;
    height: 100%;
    padding-top: 24px;
}

.ep-workflow-bullets {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.ep-workflow-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ep-gray-600);
    margin-bottom: 8px;
}

.ep-workflow-bullets li:before {
    content: "→";
    color: var(--ep-primary-blue);
}

/* ================================
   Results Section Specific
   ================================ */
.ep-results-chart {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ep-results-chart img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ================================
   CTA Section Specific
   ================================ */
.ep-cta-section {
    text-align: center;
}

.ep-cta-section .ep-cta-btn {
    background: #ffffff;
    color: #2563eb;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ep-cta-section .ep-cta-btn:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.ep-cta-section .ep-cta-btn svg,
.ep-cta-section .ep-cta-btn i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: inherit;
    fill: currentColor;
}

.ep-cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.9);
}

.ep-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.ep-cta-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.ep-cta-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.ep-cta-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

.ep-cta-social-proof {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 32px;
    margin-top: 32px;
}

@media (max-width: 767px) {
    .ep-cta-title {
        font-size: 28px;
    }
}
