/* HEXK-Pool Page Styles */
:root {
    --primary-color: #009922;
    --secondary-color: #00cc2d;
    --text-color: #1a1a1a;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    --code-bg: #1e1e1e;
    --code-text: #d4d4d4;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.pool-main {
    margin-top: 80px;
}

/* Hero Section */
.pool-hero {
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    overflow: hidden;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.code-lines {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    background: rgba(0, 153, 34, 0.2);
    border: 1px solid rgba(0, 153, 34, 0.4);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-highlight {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.hero-metrics {
    display: flex;
    gap: 2rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.metric-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
}

.metric-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.metric-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-decorator {
    color: var(--primary-color);
    font-weight: 300;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(0, 0, 0, 0.6);
}

/* Overview Section */
.overview-section {
    padding: 6rem 8rem;
    background: #ffffff;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.content-block h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.8);
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.diagram-container {
    position: sticky;
    top: 100px;
}

.diagram-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 4rem;
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    min-height: 400px;
}

.diagram-placeholder i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.3;
}

/* Architecture Diagram Image */
.architecture-diagram {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.diagram-placeholder p {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

/* Architecture Section */
.architecture-section {
    padding: 6rem 8rem;
    background: var(--bg-light);
}

.architecture-layers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.layer-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.layer-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.layer-header {
    margin-bottom: 1.5rem;
}

.layer-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.layer-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.layer-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.layer-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(0, 153, 34, 0.08);
    border: 1px solid rgba(0, 153, 34, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Implementation Section */
.implementation-section {
    padding: 6rem 8rem;
    background: #ffffff;
}

.implementation-grid {
    display: grid;
    gap: 3rem;
}

.implementation-item {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.impl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.impl-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.impl-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 153, 34, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Code Editor Styles */
.code-editor {
    background: var(--code-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

.editor-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.file-name {
    color: #ffffff;
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.editor-actions i {
    color: #ffffff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.editor-actions i:hover {
    opacity: 1;
}

.editor-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.editor-content pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

.editor-content code {
    color: var(--code-text);
}

.keyword {
    color: #569cd6;
}

.function {
    color: #dcdcaa;
}

.type {
    color: #4ec9b0;
}

.number {
    color: #b5cea8;
}

.impl-description {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.impl-description p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Performance Section */
.performance-section {
    padding: 6rem 8rem;
    background: var(--bg-light);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.metric-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.metric-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.metric-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
}

.metric-chart {
    margin-bottom: 1rem;
}

.chart-bar {
    width: 100%;
    height: 50px;
    background: var(--bg-light);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1.5rem;
    transition: width 1s ease;
}

.bar-fill.latency {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.bar-fill.security {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.bar-fill.scalability {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.bar-label {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

.metric-desc {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
}

/* Integration Section */
.integration-section {
    padding: 6rem 8rem;
    background: #ffffff;
}

.integration-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    min-width: 80px;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.step-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

.code-snippet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--code-bg);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
}

.code-snippet code {
    color: var(--secondary-color);
    font-size: 1rem;
}

.copy-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.copy-btn:hover {
    color: #ffffff;
}

.integration-link {
    margin-top: 1rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-btn:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    padding: 6rem 8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #ffffff;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.btn-outline:hover {
    background: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
