/* ========================================
   Photo Chat Section - Full Width
======================================== */
.photo-chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
    min-height: 0;
}

.photo-chat-minimal {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
    min-height: 0;
    padding: var(--space-4) var(--space-6);
}

/* Welcome Screen */
.photo-chat-welcome-minimal {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-8);
}

.photo-chat-welcome-minimal h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.photo-chat-welcome-minimal p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 360px;
    line-height: 1.6;
}

/* ========================================
   Messages Area
======================================== */
.photo-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    min-height: 0;
}

.photo-chat-message {
    display: flex;
    gap: var(--space-3);
    animation: slideUp 0.25s ease;
}

.photo-chat-message.user {
    flex-direction: row-reverse;
}

.photo-chat-message .message-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.photo-chat-message .message-avatar svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-tertiary);
}

.photo-chat-message.user .message-avatar {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

.photo-chat-message.user .message-avatar svg {
    stroke: var(--accent-text);
}

.photo-chat-message .message-body {
    flex: 1;
    max-width: 75%;
}

.photo-chat-message .message-text {
    padding: var(--space-3) 0;
    background: transparent;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-primary);
}

.photo-chat-message.user .message-text {
    background: transparent;
    color: var(--text-secondary);
    text-align: right;
}

.photo-chat-message .message-image {
    max-width: 280px;
    max-height: 200px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.photo-chat-message .message-text p {
    margin-bottom: var(--space-2);
}

.photo-chat-message .message-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Photo Preview
======================================== */
.photo-preview-floating {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    background: transparent;
    margin-bottom: var(--space-2);
}

.photo-preview-floating img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.photo-preview-remove {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--bg-hover);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.photo-preview-remove:hover {
    background: var(--destructive-subtle);
    color: var(--destructive);
}

.photo-preview-remove svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   Input Container
======================================== */
.photo-input-container {
    flex-shrink: 0;
    padding: var(--space-4) 0 0;
}

.photo-input-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--bg-hover);
    border-radius: var(--radius-lg);
    transition: var(--transition-fast);
}

[data-theme="dark"] .photo-input-bar {
    background: rgba(255, 255, 255, 0.03);
}

.photo-input-bar:focus-within {
    background: var(--bg-active);
}

[data-theme="dark"] .photo-input-bar:focus-within {
    background: rgba(255, 255, 255, 0.06);
}

.photo-attach-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--bg-hover);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.photo-attach-btn:hover {
    background: var(--bg-active);
    color: var(--accent);
}

.photo-attach-btn svg {
    width: 20px;
    height: 20px;
}

#photoChatInput {
    flex: 1;
    padding: var(--space-3);
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
}

#photoChatInput::placeholder {
    color: var(--text-placeholder);
}

.photo-send-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: var(--accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.photo-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.photo-send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-send-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .photo-chat-minimal {
        padding: var(--space-3) var(--space-4);
    }

    .photo-chat-welcome-minimal {
        padding: var(--space-5);
    }

    .photo-chat-welcome-minimal h2 {
        font-size: 1.35rem;
    }

    .photo-chat-welcome-minimal p {
        font-size: 14px;
    }

    .photo-chat-message .message-body {
        max-width: 85%;
    }

    .photo-chat-message .message-image {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .photo-chat-minimal {
        padding: var(--space-2) var(--space-3);
    }

    .photo-chat-welcome-minimal {
        padding: var(--space-4);
    }

    .photo-chat-welcome-minimal h2 {
        font-size: 1.15rem;
    }

    .photo-chat-message .message-body {
        max-width: 92%;
    }

    .photo-chat-message .message-image {
        max-width: 200px;
        max-height: 150px;
    }

    .photo-chat-message .message-text {
        font-size: 13px;
    }

    .photo-input-bar {
        gap: var(--space-1);
        padding: var(--space-1);
    }

    .photo-attach-btn,
    .photo-send-btn {
        width: 44px;
        height: 44px;
    }

    #photoChatInput {
        font-size: 16px;
        padding: var(--space-2);
    }

    .photo-preview-floating img {
        width: 48px;
        height: 48px;
    }
}
