graph TB
    %% Development Environment Physical Architecture
    %% Core Flow: Users → Ingress → Services → Database

    Users[Mobile/Web Users] --> Ingress[Kubernetes Ingress Controller]

    subgraph "Azure Kubernetes Service - Development"
        Ingress --> UserService[User Service Pod]
        Ingress --> EventService[Event Service Pod]
        Ingress --> ContentService[Content Service Pod]
        Ingress --> AIService[AI Service Pod]
        Ingress --> ParticipationService[Participation Service Pod]
        Ingress --> AnalyticsService[Analytics Service Pod]
        Ingress --> DistributionService[Distribution Service Pod]

        UserService --> PostgreSQL[PostgreSQL Pod<br/>All Services DB<br/>20GB Storage]
        EventService --> PostgreSQL
        ContentService --> PostgreSQL
        AIService --> PostgreSQL
        ParticipationService --> PostgreSQL
        AnalyticsService --> PostgreSQL
        DistributionService --> PostgreSQL

        UserService --> Redis[Redis Pod<br/>Cache & Session]
        EventService --> Redis
        ContentService --> Redis
        AIService --> Redis
        ParticipationService --> Redis
        AnalyticsService --> Redis
        DistributionService --> Redis

        EventService --> ServiceBus[Azure Service Bus<br/>Basic Tier]
        AIService --> ServiceBus
        ContentService --> ServiceBus
        DistributionService --> ServiceBus
        AnalyticsService --> ServiceBus
    end

    %% External APIs
    ExternalAPI[External APIs<br/>OpenAI, Image Gen, SNS] --> AIService
    ExternalAPI --> ContentService
    ExternalAPI --> DistributionService

    %% Essential Azure Services
    AKS --> ContainerRegistry[Azure Container Registry]

    %% Node Configuration
    subgraph "Node Pool"
        NodePool[2x Standard B2s<br/>2 vCPU, 4GB RAM]
    end

    %% Styling
    classDef azureService fill:#0078d4,stroke:#333,stroke-width:2px,color:#fff
    classDef microservice fill:#ff6b6b,stroke:#333,stroke-width:2px,color:#fff
    classDef database fill:#4ecdc4,stroke:#333,stroke-width:2px,color:#fff
    classDef external fill:#95e1d3,stroke:#333,stroke-width:2px,color:#333

    class Ingress,ServiceBus,ContainerRegistry azureService
    class UserService,EventService,ContentService,AIService,ParticipationService,AnalyticsService,DistributionService microservice
    class PostgreSQL,Redis database
    class Users,ExternalAPI external
