/* ==========================================================================
   AI FRAGRANCE ADVISOR - CHAT INTERFACE
   ========================================================================== */

/* AI Chat Hero Section */
.dh-ai-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dh-bg-dark);
    padding: calc(var(--dh-nav-height) + 40px) 20px 60px;
    position: relative;
    overflow: hidden;
}

.dh-ai-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(212, 175, 55, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.dh-ai-hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Hero Text (40%) */
.dh-ai-hero-text {
    padding-top: 40px;
}

.dh-ai-hero-label {
    font-family: var(--dh-font-body);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--dh-accent-gold);
    margin-bottom: 16px;
    font-weight: 600;
}

.dh-ai-hero-title {
    font-family: var(--dh-font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    color: var(--dh-text-primary);
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.dh-ai-hero-subtitle {
    font-family: var(--dh-font-body);
    font-size: 18px;
    color: var(--dh-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    font-weight: 300;
}

.dh-ai-hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.dh-ai-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dh-text-secondary);
    font-size: 14px;
}

.dh-ai-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dh-ai-feature-icon::after {
    content: '✓';
    color: var(--dh-accent-gold);
    font-weight: bold;
}

/* AI Chat Interface (60%) */
.dh-ai-chat-wrapper {
    background: var(--dh-bg-card);
    border: 1px solid var(--dh-card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 700px;
    max-height: 80vh;
}

.dh-ai-chat-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--dh-card-border);
    background: rgba(212, 175, 55, 0.03);
}

.dh-ai-chat-header-title {
    font-family: var(--dh-font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--dh-accent-gold);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.dh-ai-chat-header-subtitle {
    font-family: var(--dh-font-body);
    font-size: 12px;
    color: var(--dh-text-secondary);
    letter-spacing: 1px;
}

.dh-ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.dh-ai-message {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dh-ai-message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.dh-ai-message.user .dh-ai-message-avatar {
    background: rgba(160, 160, 160, 0.15);
}

.dh-ai-message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dh-ai-message-author {
    font-family: var(--dh-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--dh-accent-gold);
}

.dh-ai-message.user .dh-ai-message-author {
    color: var(--dh-text-secondary);
}

.dh-ai-message-text {
    font-family: var(--dh-font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--dh-text-primary);
}

.dh-ai-message.user .dh-ai-message-text {
    background: rgba(160, 160, 160, 0.08);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(160, 160, 160, 0.1);
}

.dh-ai-product-card {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--dh-card-border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s ease;
}

.dh-ai-product-card:hover {
    border-color: var(--dh-card-border-hover);
    transform: translateY(-2px);
}

.dh-ai-product-number {
    font-family: var(--dh-font-heading);
    font-size: 32px;
    font-weight: 300;
    color: var(--dh-accent-gold);
    letter-spacing: 2px;
    min-width: 80px;
    text-align: center;
}

.dh-ai-product-info {
    flex: 1;
}

.dh-ai-product-name {
    font-family: var(--dh-font-heading);
    font-size: 16px;
    font-weight: 400;
    color: var(--dh-text-primary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.dh-ai-product-notes {
    font-family: var(--dh-font-body);
    font-size: 11px;
    color: var(--dh-text-secondary);
    line-height: 1.5;
}

.dh-ai-product-price {
    font-family: var(--dh-font-body);
    font-size: 20px;
    font-weight: 600;
    color: var(--dh-accent-gold);
}

.dh-ai-chat-input-wrapper {
    padding: 20px 28px;
    border-top: 1px solid var(--dh-card-border);
    background: rgba(212, 175, 55, 0.02);
}

.dh-ai-chat-input-form {
    display: flex;
    gap: 12px;
}

.dh-ai-chat-input {
    flex: 1;
    font-family: var(--dh-font-body);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--dh-card-border);
    border-radius: 12px;
    color: var(--dh-text-primary);
    padding: 14px 18px;
    outline: none;
    transition: all 0.3s ease;
}

.dh-ai-chat-input:focus {
    border-color: var(--dh-accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.dh-ai-chat-input::placeholder {
    color: var(--dh-text-secondary);
}

.dh-ai-chat-send {
    background: var(--dh-gold-btn-gradient);
    border: none;
    border-radius: 12px;
    padding: 0 28px;
    color: var(--dh-bg-dark);
    font-family: var(--dh-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dh-ai-chat-send:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.dh-ai-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dh-ai-typing {
    display: flex;
    gap: 6px;
    padding: 8px 0;
}

.dh-ai-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--dh-accent-gold);
    animation: typing 1.4s infinite;
}

.dh-ai-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dh-ai-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-6px);
    }
}

/* Scrollbar for chat messages */
.dh-ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.dh-ai-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

/* ==========================================================================
   PRODUCT CARDS WITH GRADIENT OVERLAYS
   ========================================================================== */

.dh-product-card {
    position: relative;
    overflow: hidden;
}

.dh-product-image-wrapper {
    position: relative;
    background: var(--dh-bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.dh-product-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.2) 0%,
        transparent 70%
    );
    backdrop-filter: blur(20px);
    z-index: 1;
    pointer-events: none;
}

/* Scent family gradients */
.dh-product-woody .dh-product-image-wrapper::before {
    background: radial-gradient(
        circle at center,
        rgba(139, 69, 19, 0.25) 0%,
        transparent 70%
    );
}

.dh-product-floral .dh-product-image-wrapper::before {
    background: radial-gradient(
        circle at center,
        rgba(255, 183, 197, 0.25) 0%,
        transparent 70%
    );
}

.dh-product-fresh .dh-product-image-wrapper::before {
    background: radial-gradient(
        circle at center,
        rgba(79, 195, 247, 0.25) 0%,
        transparent 70%
    );
}

.dh-product-oriental .dh-product-image-wrapper::before {
    background: radial-gradient(
        circle at center,
        rgba(212, 175, 55, 0.3) 0%,
        transparent 70%
    );
}

/* Typography Hierarchy: Number > Name > Description */
.dh-product-number {
    font-family: var(--dh-font-heading);
    font-size: 48px;
    font-weight: 300;
    color: var(--dh-accent-gold);
    letter-spacing: 4px;
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.dh-product-name {
    font-family: var(--dh-font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--dh-text-primary);
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.dh-product-description {
    font-family: var(--dh-font-body);
    font-size: 13px;
    color: var(--dh-text-secondary);
    line-height: 1.7;
}

/* Product Bottle - Small and De-emphasized */
.dh-product-bottle {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    opacity: 0.6;
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* ==========================================================================
   MOBILE RESPONSIVE - AI CHAT
   ========================================================================== */

@media (max-width: 968px) {
    .dh-ai-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .dh-ai-hero-text {
        padding-top: 0;
        text-align: center;
    }

    .dh-ai-hero-features {
        align-items: center;
    }

    .dh-ai-chat-wrapper {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .dh-ai-hero {
        padding: calc(var(--dh-nav-height) + 20px) 16px 40px;
        min-height: auto;
    }

    .dh-ai-hero-title {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .dh-ai-chat-wrapper {
        height: 500px;
    }

    .dh-ai-chat-messages {
        padding: 20px 16px;
    }

    .dh-ai-chat-header,
    .dh-ai-chat-input-wrapper {
        padding: 16px 20px;
    }

    .dh-ai-product-card {
        flex-direction: column;
        text-align: center;
    }

    .dh-ai-product-number {
        min-width: auto;
    }

    .dh-product-number {
        font-size: 36px;
    }

    .dh-product-name {
        font-size: 16px;
    }
}
