/* ========================================
   VetSyCare Features Page Styles
   Modern, conversion-optimized design
   ======================================== */

/* Hero Section */
.features-hero {
    background: linear-gradient(135deg, #2F5855 0%, #1a3331 100%);
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 133, 114, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 133, 114, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.features-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-primary {
    background: rgba(201, 133, 114, 0.2);
    color: #C98572;
    border: 1px solid rgba(201, 133, 114, 0.3);
}

.features-hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 40px;
}

/* Feature Categories Tabs */
.feature-categories {
    background: white;
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    border-color: #2F5855;
    color: #2F5855;
    background: rgba(47, 88, 85, 0.05);
}

.tab-btn.active {
    background: #2F5855;
    color: white;
    border-color: #2F5855;
}

.tab-btn i {
    font-size: 1.1rem;
}

/* Feature Sections */
.feature-section {
    padding: 80px 20px;
}

.feature-section.bg-light {
    background: #F8F9FA;
}

.feature-section.bg-gradient {
    background: linear-gradient(135deg, #2F5855 0%, #1a3331 100%);
    position: relative;
    overflow: hidden;
}

.feature-section.bg-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(201, 133, 114, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(201, 133, 114, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(47, 88, 85, 0.1);
    color: #2F5855;
    margin-bottom: 16px;
}

.section-badge i {
    margin-right: 6px;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

.section-header.text-white h2,
.section-header.text-white p {
    color: white;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.features-grid.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* Feature Detail Cards */
.feature-detail {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 24px;
}

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

.gradient-blue {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

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

.gradient-orange {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.feature-detail h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 16px;
}

.feature-detail > p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #374151;
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
}

.feature-list li i {
    color: #10B981;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Modern Feature Cards */
.feature-card-modern {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.feature-card-modern:hover {
    border-color: #2F5855;
    box-shadow: 0 8px 30px rgba(47, 88, 85, 0.1);
    transform: translateY(-3px);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2F5855 0%, #3d6f6b 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card-modern h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
}

.feature-card-modern p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-link {
    color: #2F5855;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.card-link:hover {
    gap: 10px;
}

/* Features Showcase */
.features-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 1px solid #E5E7EB;
}

.showcase-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse .showcase-content {
    direction: ltr;
}

.showcase-content {
    padding-right: 20px;
}

.feature-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #C98572 0%, #d9a090 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.showcase-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.showcase-content h3 i {
    color: #2F5855;
}

.showcase-content > p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 28px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    padding: 12px 0;
    color: #374151;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-list li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Showcase Visuals */
.showcase-visual {
    padding: 20px;
}

.mockup-calendar,
.mockup-invoice,
.mockup-inventory,
.mockup-analytics {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #E5E7EB;
}

.calendar-header,
.invoice-header,
.inventory-alert,
.chart-header {
    font-weight: 700;
    color: #2F5855;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event {
    padding: 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-wellness {
    background: #DBEAFE;
    color: #1E40AF;
}

.event-surgery {
    background: #FCE7F3;
    color: #9F1239;
}

.event-emergency {
    background: #FEE2E2;
    color: #991B1B;
}

.invoice-items,
.inventory-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.invoice-item,
.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #2F5855 0%, #3d6f6b 100%);
    color: white;
    border-radius: 12px;
    font-weight: 700;
    margin-top: 8px;
}

.inventory-alert {
    background: #FEF3C7;
    color: #92400E;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.chart-visual {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    height: 150px;
    margin: 20px 0;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, #2F5855, #C98572);
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.chart-stat {
    font-size: 2rem;
    font-weight: 800;
    color: #2F5855;
    text-align: center;
}

.chart-stat span {
    display: block;
    font-size: 0.875rem;
    color: #10B981;
    font-weight: 600;
    margin-top: 8px;
}

/* Client Portal Features */
.portal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 60px;
}

.portal-feature {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.portal-feature:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.portal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 20px;
}

.portal-feature h4 {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.portal-feature p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.portal-preview {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.portal-screen {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
}

.screen-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2F5855;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pet-card {
    background: #F9FAFB;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.pet-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2F5855, #C98572);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pet-info strong {
    font-size: 1.125rem;
    color: #1F2937;
    margin-bottom: 4px;
}

.pet-info span {
    color: #64748b;
    font-size: 0.875rem;
}

.next-appt {
    background: #DBEAFE;
    color: #1E40AF;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mini Features Grid */
.mini-feature {
    text-align: center;
    padding: 28px 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
}

.mini-feature:hover {
    border-color: #2F5855;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(47, 88, 85, 0.1);
}

.mini-feature i {
    font-size: 2.5rem;
    color: #2F5855;
    margin-bottom: 16px;
}

.mini-feature h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 10px;
}

.mini-feature p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2F5855 0%, #1a3331 100%);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 50%, rgba(201, 133, 114, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 50%, rgba(201, 133, 114, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.btn-white {
    background: white;
    color: #2F5855;
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-badge {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.trust-badge i {
    color: #10B981;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    background: #1F2937;
    color: white;
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: white;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .showcase-item.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .features-hero h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .showcase-content h3 {
        font-size: 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid,
    .features-grid.grid-3,
    .features-grid.grid-4 {
        grid-template-columns: 1fr;
    }

    .portal-features {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        overflow-x: auto;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .features-hero {
        padding: 80px 20px 60px;
    }

    .features-hero h1 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.125rem;
    }

    .feature-section {
        padding: 60px 20px;
    }

    .tab-btn {
        font-size: 0.875rem;
        padding: 10px 18px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-detail,
.feature-card-modern,
.mini-feature,
.portal-feature {
    animation: fadeInUp 0.6s ease-out;
}

/* Navbar adjustments for marketing pages */
.navbar-marketing {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-marketing .nav-link.active {
    color: #2F5855;
    font-weight: 600;
}
