/* AWS Production Architecture Styles - Solid Colors Only */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    padding: 2rem;
    color: #333;
}

/* Header */
.header {
    text-align: center;
    background: #232f3e;
    color: white;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.header h1 i {
    margin-right: 1rem;
    color: #ff9900;
}

.header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
}

/* Section */
.section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #ff9900;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #232f3e;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header i {
    color: #ff9900;
}

/* Architecture Rows */
.architecture-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.architecture-row.vertical {
    flex-direction: column;
    gap: 1rem;
}

/* AWS Nodes */
.aws-node {
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 280px;
    max-width: 350px;
    transition: all 0.3s ease;
}

.aws-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Node Types - Solid Colors */
.aws-node.external {
    border-color: #4267B2;
    background: #e7f3ff;
}

.aws-node.compute {
    border-color: #ff9900;
    background: #fff5e6;
}

.aws-node.storage {
    border-color: #569a31;
    background: #f0f8ec;
}

.aws-node.database {
    border-color: #3b48cc;
    background: #e8eaff;
}

.aws-node.ml {
    border-color: #01a88d;
    background: #e6f9f6;
}

.aws-node.orchestration {
    border-color: #017cee;
    background: #e6f4ff;
}

.aws-node.network {
    border-color: #7b68ee;
    background: #f3f0ff;
}

.aws-node.cache {
    border-color: #c7254e;
    background: #ffe6ee;
}

.aws-node.monitoring {
    border-color: #ff6b6b;
    background: #fff0f0;
}

.aws-node.security {
    border-color: #dd2c00;
    background: #ffebe6;
}

.aws-node.small {
    min-width: 220px;
    max-width: 280px;
    padding: 1rem;
}

/* Brand Logos & AWS Icons */
.brand-logo,
.aws-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 1rem;
    display: block;
}

.aws-node.small .brand-logo,
.aws-node.small .aws-icon {
    width: 40px;
    height: 40px;
}

/* Node Content */
.aws-node h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #232f3e;
    text-align: center;
}

.aws-node p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
}

.aws-node ul {
    list-style: none;
    font-size: 0.875rem;
    color: #555;
}

.aws-node ul li {
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.aws-node ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff9900;
    font-weight: bold;
}

/* Flow Arrows */
.flow-arrow {
    font-size: 2rem;
    color: #ff9900;
    font-weight: bold;
    flex-shrink: 0;
}

/* Model Storage Row */
.model-storage-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.model-storage-row .aws-node {
    flex: 0 1 280px;
}

/* API Cluster */
.api-cluster {
    background: #f8f9fa;
    border: 2px dashed #ff9900;
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.cluster-label {
    text-align: center;
    font-weight: 600;
    color: #232f3e;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ff9900;
}

.api-instances {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Security Grid */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Cost Panel */
.cost-panel {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cost-panel h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #232f3e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.cost-panel h2 i {
    color: #10b981;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.cost-item {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.cost-item:hover {
    border-color: #ff9900;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.2);
}

.cost-item.total {
    background: #232f3e;
    color: white;
    border-color: #ff9900;
    grid-column: 1 / -1;
    text-align: center;
}

.cost-service {
    font-weight: 600;
    color: #232f3e;
    margin-bottom: 0.5rem;
}

.cost-item.total .cost-service {
    color: white;
}

.cost-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #10b981;
    margin-bottom: 0.25rem;
}

.cost-item.total .cost-value {
    font-size: 2rem;
    color: #ff9900;
}

.cost-detail {
    font-size: 0.8125rem;
    color: #666;
}

.cost-item.total .cost-detail {
    color: #ccc;
}

/* Checklist Panel */
.checklist-panel {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-panel h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #232f3e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.checklist-panel h2 i {
    color: #10b981;
}

.checklist-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.checklist-col h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #232f3e;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.checklist-col h3 i {
    color: #ff9900;
}

.checklist {
    list-style: none;
}

.checklist li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checklist input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff9900;
}

.checklist input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: #999;
}

/* Footer */
.footer {
    text-align: center;
    background: #232f3e;
    color: white;
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 8px;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #ff9900;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ffb84d;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .header h1 {
        font-size: 1.75rem;
    }
    
    .architecture-row {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .cost-grid,
    .security-grid,
    .checklist-columns {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .section,
    .cost-panel,
    .checklist-panel {
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .aws-node:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.6s ease-out;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }
