/* ═══════════════════════════════════════════════════════════════════════════
   K9Port - Features Page Styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* Feature Navigation */
.feature-nav-section {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-surface-dark);
    position: sticky;
    top: 72px;
    z-index: 100;
}

.feature-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) 0;
    overflow-x: auto;
}

.feature-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.feature-nav-item:hover {
    background: var(--color-surface);
    color: var(--color-secondary);
}

.feature-nav-icon {
    font-size: var(--text-xl);
}

/* Feature Sections */
.feature-section {
    scroll-margin-top: 140px;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

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

.feature-content.reverse > * {
    direction: ltr;
}

.feature-text {
    max-width: 540px;
}

.feature-section.section-dark .feature-text {
    color: var(--color-white);
}

.feature-text .badge {
    margin-bottom: var(--space-4);
}

.feature-text h2 {
    margin-bottom: var(--space-4);
}

.section-dark .feature-text h2 {
    color: var(--color-white);
}

.feature-intro {
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.feature-list-item {
    display: flex;
    gap: var(--space-4);
}

.feature-list-icon {
    width: 44px;
    height: 44px;
    background: rgba(13, 148, 136, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.section-dark .feature-list-icon {
    background: rgba(13, 148, 136, 0.2);
}

.feature-list-item h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-base);
    margin-bottom: var(--space-1);
}

.section-dark .feature-list-item h4 {
    color: var(--color-white);
}

.feature-list-item p {
    font-size: var(--text-sm);
}

.section-dark .feature-list-item p {
    color: rgba(255, 255, 255, 0.7);
}

/* Feature Visuals */
.feature-visual {
    display: flex;
    justify-content: center;
}

/* Brain Demo */
.brain-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.brain-orb-small {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, var(--color-secondary-light), var(--color-secondary));
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 40px rgba(13, 148, 136, 0.5);
}

.brain-pulse {
    position: absolute;
    inset: -20px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

.brain-alerts {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    max-width: 320px;
}

.brain-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    gap: var(--space-3);
}

.alert-dog {
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
}

.alert-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
    flex: 1;
}

.alert-status {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.brain-alert.urgent .alert-status {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
}

.brain-alert.warning .alert-status {
    background: rgba(217, 119, 6, 0.2);
    color: #fcd34d;
}

.brain-alert.ok .alert-status {
    background: rgba(22, 163, 74, 0.2);
    color: #86efac;
}

/* Conversations Demo */
.conversations-demo {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 340px;
}

.conversations-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-surface-dark);
}

.conversations-title {
    font-weight: 600;
    color: var(--color-primary);
}

.conversations-count {
    background: var(--color-surface);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
}

.conversations-new {
    margin-left: auto;
    background: #f97316;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
}

.conversations-list {
    padding: var(--space-2);
}

.conversation-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.conversation-item:hover {
    background: var(--color-surface);
}

.conversation-item.pinned {
    background: #fef3c7;
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.conversation-avatar.wi { background: #3b82f6; }
.conversation-avatar.em { background: #f97316; }
.conversation-avatar.hb { background: #f97316; }
.conversation-avatar.mt { background: #f97316; }

.conversation-info {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.unread-badge {
    background: #ef4444;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

.conversation-dog {
    font-size: var(--text-xs);
    color: var(--color-secondary);
}

.conversation-preview {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Training Demo */
.training-demo {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
    max-width: 340px;
}

.bt-quote {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.bt-quote-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    padding: var(--space-4);
    color: white;
}

.bt-quote-logo {
    font-weight: 700;
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.bt-quote-title {
    color: #f97316;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.bt-quote-number {
    font-size: var(--text-xs);
    opacity: 0.7;
    margin-top: var(--space-1);
}

.bt-quote-body {
    padding: var(--space-4);
}

.bt-quote-client {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-surface-dark);
}

.bt-label {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bt-value {
    font-weight: 600;
    color: var(--color-primary);
}

.bt-dog {
    font-size: var(--text-sm);
    color: #f97316;
    margin-top: var(--space-1);
}

.bt-quote-program {
    background: var(--color-surface);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border-left: 3px solid #f97316;
}

.bt-program-name {
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.bt-program-desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.bt-program-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.bt-program-details span {
    font-size: 0.65rem;
    background: var(--color-white);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
}

.stat-card-mini {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 2px solid rgba(217, 119, 6, 0.3);
}

.stat-card-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-dog-name {
    font-weight: 700;
    color: white;
}

.stat-overall-mini {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: #f97316;
}

.stat-bars-mini {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stat-bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
}

.stat-bar-row span:first-child {
    width: 80px;
    flex-shrink: 0;
}

.stat-bar-row span:last-child {
    width: 20px;
    text-align: right;
    color: white;
    font-weight: 700;
}

.stat-bar-mini {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.stat-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    border-radius: var(--radius-full);
}

/* Calendar Demo */
.calendar-demo {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-surface-dark);
}

.cal-nav-btn {
    background: var(--color-white);
    border: 1px solid var(--color-surface-dark);
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.cal-month {
    font-weight: 600;
    color: var(--color-primary);
    font-style: italic;
}

.cal-view-toggle {
    display: flex;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-surface-dark);
    margin-left: auto;
}

.cal-view-toggle span {
    padding: 4px 8px;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.cal-view-toggle span.active {
    background: var(--color-secondary);
    color: white;
}

.cal-today-btn {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
}

.calendar-actions {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-surface-dark);
    flex-wrap: wrap;
}

.cal-action-btn {
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.65rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.cal-action-btn.add-apt {
    background: var(--color-secondary);
    color: white;
}

.cal-action-btn.add-inv {
    background: #22c55e;
    color: white;
}

.cal-action-btn.add-quote {
    background: #f97316;
    color: white;
}

.calendar-grid {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-4);
}

.calendar-day {
    flex: 1;
    padding: var(--space-3);
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.calendar-day.today {
    background: rgba(13, 148, 136, 0.1);
    border: 2px solid var(--color-secondary);
}

.day-number {
    font-weight: 700;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--space-2);
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.day-event {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    font-weight: 500;
}

.day-event.boarding {
    background: #3b82f6;
    color: white;
}

.day-event.daycare {
    background: #22c55e;
    color: white;
}

.day-event.training {
    background: #f97316;
    color: white;
}

/* Kennel Status Demo */
.kennel-status-demo {
    background: #1a1f2e;
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    width: 100%;
    max-width: 280px;
    box-shadow: var(--shadow-xl);
}

.kennel-status-header {
    font-weight: 700;
    color: white;
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.kennel-status-section {
    margin-bottom: var(--space-4);
}

.status-section-title {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-3);
}

.capacity-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.8);
}

.capacity-icon {
    width: 18px;
    text-align: center;
}

.capacity-label {
    flex: 1;
}

.capacity-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    border-radius: var(--radius-full);
}

.capacity-value {
    width: 35px;
    text-align: right;
    font-weight: 600;
    color: white;
}

.status-stat-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.7);
}

.status-stat-value {
    font-weight: 600;
    color: white;
}

.status-stat-value.revenue {
    color: #22c55e;
}

/* Timeclock Demo */
.timeclock-demo {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 320px;
}

.timeclock-header {
    padding: var(--space-4);
    font-weight: 600;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-surface-dark);
}

.timeclock-list {
    padding: var(--space-2);
}

.timeclock-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-md);
}

.timeclock-item:hover {
    background: var(--color-surface);
}

.staff-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-info {
    flex: 1;
}

.staff-name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--color-primary);
}

.staff-time {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.staff-status {
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

.staff-status.active {
    background: rgba(22, 163, 74, 0.1);
    color: var(--color-success);
}

.staff-status.pending {
    background: rgba(217, 119, 6, 0.1);
    color: var(--color-accent);
}

/* More Features Grid */
.more-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.more-feature {
    text-align: center;
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.more-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.more-feature-icon {
    font-size: var(--text-3xl);
    display: block;
    margin-bottom: var(--space-3);
}

.more-feature h4 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

.more-feature p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

/* CTA */
.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

.cta-note {
    margin-top: var(--space-6);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .feature-content,
    .feature-content.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }
    
    .feature-text {
        max-width: none;
    }
    
    .feature-list {
        text-align: left;
    }
    
    .portal-comparison {
        text-align: left;
    }
    
    .more-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-nav {
        justify-content: flex-start;
        padding: var(--space-3) 0;
    }
    
    .feature-nav-item {
        padding: var(--space-2) var(--space-3);
    }
    
    .portal-comparison {
        grid-template-columns: 1fr;
    }
    
    .portal-preview {
        flex-direction: column;
        align-items: center;
    }
    
    .portal-phone {
        transform: none !important;
    }
    
    .more-features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
