/* PoshListings - Modern Burgundy & White Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --burgundy-primary: #8B1538;
    --burgundy-dark: #6B0F2A;
    --burgundy-light: #A91D47;
    --burgundy-pale: #F8E8EC;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: -0.2px;
    line-height: 1.2;
    color: var(--gray-900);
}

h2, h3 {
    font-weight: 500;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    margin-left: -1rem;
}

.logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--burgundy-primary);
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--burgundy-primary);
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu a {
    color: var(--gray-600);
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--burgundy-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (max-width: 768px) {
    .nav-actions {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        flex-direction: column;
    }
}

/* Buttons */
.btn-primary {
    background: var(--burgundy-primary);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.2s;
    border: 2px solid var(--burgundy-primary);
}

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--burgundy-primary);
    padding: 0.625rem 1.5rem;
    border: 2px solid var(--burgundy-primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--burgundy-primary);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.05rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--burgundy-pale) 0%, var(--white) 100%);
    padding: 5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 21, 56, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-left {
    text-align: left;
    max-width: 580px;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 2.25rem;
    color: var(--gray-900);
    line-height: 1.15;
}

.hero-title strong {
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--burgundy-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

/* Sections */
.section {
    padding: 5rem 1.5rem;
}

.section-dark {
    background: var(--gray-900);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
    color: var(--white);
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-dark .section-subtitle {
    color: var(--gray-300);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--burgundy-primary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.category-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.category-link {
    color: var(--burgundy-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.category-link:hover {
    gap: 0.5rem;
}

/* API Grid */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto 3rem;
}

.api-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.api-card:hover {
    border-color: var(--burgundy-primary);
    transform: translateY(-2px);
}

.api-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.api-card p {
    color: var(--gray-300);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.api-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(139, 21, 56, 0.2);
    color: var(--burgundy-light);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(139, 21, 56, 0.3);
}

/* API Demo */
.api-demo {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.api-demo h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.code-block {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-700);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--burgundy-pale);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--burgundy-primary);
    font-weight: 700;
}

.feature h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--gray-800);
    border: 2px solid var(--gray-700);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-featured {
    border-color: var(--burgundy-primary);
    background: linear-gradient(135deg, var(--gray-800) 0%, #2a1520 100%);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--burgundy-primary);
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--burgundy-light);
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--gray-400);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-700);
    color: var(--gray-300);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--burgundy-primary) 0%, var(--burgundy-dark) 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--burgundy-primary);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background: var(--off-white);
    border-color: var(--off-white);
}

.cta-section .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-section .btn-outline:hover {
    background: var(--white);
    color: var(--burgundy-primary);
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: #E5E7EB;
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto 3rem;
}

.footer-col h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-col p {
    color: #D1D5DB;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    max-width: 1280px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #D1D5DB;
    font-size: 0.9rem;
}

/* Inline AI Chat Widget */
.hero-chat-container {
    position: relative;
}

.inline-chat-widget {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(139, 21, 56, 0.15);
    overflow: hidden;
    height: 550px;
    display: flex;
    flex-direction: column;
}

.inline-chat-header {
    background: linear-gradient(135deg, #8B1538 0%, #6B0F2A 100%);
    color: white;
    padding: 1.25rem;
}

.chat-agent-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.agent-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.agent-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.agent-status {
    font-size: 0.85rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.inline-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8f9fa;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    flex-direction: row-reverse;
}

.bot-avatar {
    width: 36px;
    height: 36px;
    background: #8B1538;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.message-bubble {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    max-width: 85%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    line-height: 1.5;
}

.message-bubble p {
    margin: 0;
    color: #333;
}

.chat-message.user .message-bubble {
    background: #8B1538;
    color: white;
}

.chat-message.user .message-bubble p {
    color: white;
}

.inline-quick-actions {
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.quick-btn {
    padding: 0.75rem;
    background: white;
    border: 2px solid #8B1538;
    color: #8B1538;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-btn:hover {
    background: #8B1538;
    color: white;
    transform: translateY(-1px);
}

.inline-chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.75rem;
}

.inline-chat-input-area input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #ddd;
    border-radius: 24px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.inline-chat-input-area input:focus {
    border-color: #8B1538;
}

.send-button {
    width: 48px;
    height: 48px;
    background: #8B1538;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-button:hover {
    background: #6B0F2A;
    transform: scale(1.05);
}

.chat-footer-text {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    text-align: center;
    color: #666;
    border-top: 1px solid #eee;
}

.typing-indicator-inline {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.typing-dots-inline {
    display: flex;
    gap: 0.25rem;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.typing-dots-inline span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots-inline span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots-inline span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-8px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        width: 100%;
    }
    
    .nav-actions {
        width: 100%;
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-actions .btn-outline,
    .nav-actions .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    .hero-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-left {
        text-align: center;
    }

    .inline-chat-widget {
        height: 450px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-left {
        max-width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .category-grid,
    .api-grid,
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
    }
    
    .container {
        padding: 0 1rem;
    }
}

