/* Features Page Specific Styles */

/* Features Hero */
.features-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    text-align: center;
}

.features-hero .hero-title {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.features-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Categories */
.feature-categories {
    background: white;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.categories-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 12px 24px;
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text-dark);
}

.category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Feature Details */
.feature-detail {
    padding: 60px 0;
    display: block;
}

.feature-detail:first-of-type {
    padding-bottom: 10px;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.feature-content.reverse {
    direction: rtl;
}

.feature-content.reverse .feature-text,
.feature-content.reverse .feature-image {
    direction: ltr;
}


.feature-text h2 {
    margin-bottom: 1rem;
}

.feature-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.feature-item svg {
    flex-shrink: 0;
    margin-top: 4px;
}

.feature-item h4 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.feature-item p {
    margin: 0;
    color: var(--text-light);
}

.feature-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    margin-top: 15rem;
    margin-bottom: 0;
    border-top: 1px solid var(--border-color);
    justify-content: flex-start;
}

/* Specific spacing for first section */
#scheduling .feature-stats {
    margin-top: 10rem;
}

/* Specific spacing for second section */
#call-handling .feature-stats {
    margin-top: 12rem;
}

.feature-stats .stat {
    text-align: center;
}

.feature-stats .stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.feature-stats .stat p {
    margin: 0;
    font-size: 0.875rem;
}

/* Feature Screenshots */
.feature-image {
    position: relative;
}

.screenshot-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.feature-content.reverse .screenshot-mockup {
    transform: perspective(1000px) rotateY(5deg);
}

.screenshot-mockup:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.mockup-content {
    padding: 2rem;
    min-height: 300px;
}

/* Demo Content Styles */
.scheduling-demo .calendar-view {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.calendar-header {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.appointment-slot {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}

.appointment-slot.available {
    background: #E6FFF9;
    border-color: var(--secondary-color);
}

.appointment-slot .time {
    font-weight: 600;
    color: var(--primary-color);
    width: 80px;
}

.patient-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.patient-info span {
    font-size: 0.875rem;
    color: var(--text-light);
}

.patient-demo .patient-record {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.patient-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.patient-header .status {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.patient-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.patient-details .detail-row:last-child {
    border-bottom: none;
}

.billing-demo .revenue-chart {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    height: 150px;
    margin: 1.5rem 0;
}

.chart-bars .bar {
    width: 40px;
    background: var(--border-color);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.chart-bars .bar.active {
    background: var(--primary-color);
}

.revenue-total {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.team-demo .team-schedule {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.schedule-grid {
    margin-top: 1rem;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.schedule-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
}

.schedule-bar.active {
    background: var(--secondary-color);
}

.analytics-demo .analytics-dashboard {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.metric-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.metric {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.metric span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.metric strong {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Call Demo Styles */
.call-demo .call-interface {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.call-header .status {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.call-conversation {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 85%;
}

.message.ai {
    background: white;
    align-self: flex-start;
    border: 1px solid var(--border-color);
}

.message.patient {
    background: var(--primary-color);
    color: white;
    align-self: flex-end;
}

.message .speaker {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.message p {
    margin: 0;
    font-size: 0.875rem;
}

/* Voice Demo Styles */
.voice-demo .voice-selector {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.voice-options {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.voice-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.voice-option.active {
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.voice-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.voice-option.active .voice-avatar {
    background: var(--secondary-color);
}

.voice-details strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.voice-details span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Additional Features */
.additional-features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card-mini {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.feature-card-mini:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card-mini svg {
    margin-bottom: 1rem;
}

.feature-card-mini h4 {
    margin-bottom: 0.5rem;
}

.feature-card-mini p {
    margin: 0;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-content.reverse {
        direction: ltr;
    }
    
    .screenshot-mockup {
        transform: none;
    }
    
    .feature-content.reverse .screenshot-mockup {
        transform: none;
    }
}

@media (max-width: 768px) {
    .feature-categories {
        top: 60px;
    }
    
    .categories-nav {
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .feature-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .metric-cards {
        grid-template-columns: 1fr;
    }
}