/* Components CSS - Sections, Cards, Footer */

/* Sections Common */
section { padding: var(--space-2xl) 0; position: relative; }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-tag { display: inline-block; padding: var(--space-sm) var(--space-md); background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: var(--space-md); }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: var(--space-md); }
.section-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* Features */
.features { background: var(--bg-secondary); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.feature-card { position: relative; padding: var(--space-xl); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); transition: var(--transition-normal); }
.feature-card:hover { border-color: var(--primary); transform: translateY(-8px); box-shadow: var(--shadow-glow); }
.feature-card-highlight { background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 204, 255, 0.05)); border-color: rgba(0, 255, 136, 0.3); }
.feature-badge { position: absolute; top: var(--space-md); right: var(--space-md); padding: var(--space-xs) var(--space-sm); background: var(--gradient-primary); color: var(--bg-primary); font-family: var(--font-mono); font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: var(--radius-sm); }
.feature-icon-wrapper { position: relative; width: 60px; height: 60px; margin-bottom: var(--space-md); }
.feature-glow { position: absolute; inset: 0; background: var(--primary); border-radius: 50%; filter: blur(20px); opacity: 0.3; }
.feature-icon { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.feature-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: var(--space-sm); }
.feature-description { color: var(--text-secondary); margin-bottom: var(--space-md); }
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) 0; font-size: 0.875rem; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .check { color: var(--primary); font-weight: bold; }

/* Performance Benchmarks */
.performance { background: var(--bg-primary); }
.benchmark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-lg); }
.benchmark-card { padding: var(--space-lg); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); transition: var(--transition-normal); }
.benchmark-card:hover { border-color: var(--primary); transform: scale(1.02); box-shadow: var(--shadow-glow); }
.game-header { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.game-icon { font-size: 1.5rem; }
.game-name { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; }
.gpu-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-bottom: var(--space-md); }
.fps-comparison { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-md); }
.fps-before, .fps-after { text-align: center; }
.fps-label { display: block; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: var(--space-xs); }
.fps-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.fps-before .fps-value { color: var(--text-secondary); }
.fps-after .fps-value { color: var(--primary); }
.fps-unit { font-size: 0.75rem; color: var(--text-muted); }
.fps-arrow { font-size: 1.5rem; color: var(--accent); }
.gain-bar { position: relative; height: 8px; background: var(--bg-tertiary); border-radius: var(--radius-full); overflow: hidden; }
.gain-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--gradient-primary); border-radius: var(--radius-full); width: 0; transition: width 1s ease-out; }
.gain-text { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; color: var(--primary); background: var(--bg-card); padding: 0 var(--space-sm); }

/* GPU Section */
.gpus { background: var(--bg-secondary); }
.gpu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); }
.gpu-card { padding: var(--space-xl); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); transition: var(--transition-normal); }
.gpu-card.amd { border-top: 3px solid var(--amd-red); }
.gpu-card.intel { border-top: 3px solid var(--intel-blue); }
.gpu-card.nvidia { border-top: 3px solid var(--nvidia-green); }
.gpu-card:hover { transform: translateY(-4px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); }
.gpu-card-header { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.gpu-vendor-icon { font-size: 2rem; }
.gpu-vendor { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.gpu-series-list { display: flex; flex-direction: column; gap: var(--space-md); }
.gpu-series { padding: var(--space-md); background: var(--bg-tertiary); border-radius: var(--radius-md); }
.series-name { font-weight: 600; margin-bottom: var(--space-sm); }
.series-features { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.feature-tag { padding: var(--space-xs) var(--space-sm); background: rgba(0, 204, 255, 0.1); color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; border-radius: var(--radius-sm); }
.fps-tag { padding: var(--space-xs) var(--space-sm); background: rgba(0, 255, 136, 0.1); color: var(--primary); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; border-radius: var(--radius-sm); }

/* Installation */
.installation { background: var(--bg-primary); }
.install-tabs { display: flex; justify-content: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.install-tab { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: var(--transition-fast); }
.install-tab:hover { color: var(--text-primary); border-color: var(--primary); }
.install-tab.active { background: rgba(0, 255, 136, 0.1); border-color: var(--primary); color: var(--primary); }
.tab-icon { font-size: 1.25rem; }
.install-content { max-width: 700px; margin: 0 auto var(--space-xl); }
.install-panel { display: none; }
.install-panel.active { display: block; }
.code-block { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.code-header { display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm) var(--space-md); background: var(--bg-card); border-bottom: 1px solid var(--border-color); }
.code-lang { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.copy-btn { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; transition: var(--transition-fast); }
.copy-btn:hover { background: rgba(0, 255, 136, 0.1); border-color: var(--primary); color: var(--primary); }
.code-content { padding: var(--space-lg); margin: 0; font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.8; overflow-x: auto; }
.code-content .comment { color: var(--text-muted); }
.code-content .command { color: var(--primary); }

/* Quick Commands */
.quick-commands { max-width: 800px; margin: 0 auto; }
.commands-title { font-family: var(--font-display); font-size: 1.25rem; text-align: center; margin-bottom: var(--space-lg); }
.commands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); }
.command-card { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.command-card code { font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent); }
.command-card span { font-size: 0.75rem; color: var(--text-muted); }

/* Games Showcase */
.games { background: var(--bg-secondary); }
.games-showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-md); }
.game-tile { position: relative; padding: var(--space-lg); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); text-align: center; transition: var(--transition-normal); overflow: hidden; }
.game-tile:hover { border-color: var(--primary); transform: translateY(-4px); }
.game-tile:hover .game-glow { opacity: 1; }
.game-glow { position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0, 255, 136, 0.1), transparent 70%); opacity: 0; transition: var(--transition-normal); }
.game-emoji { display: block; font-size: 2.5rem; margin-bottom: var(--space-sm); position: relative; z-index: 1; }
.game-title { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: var(--space-xs); position: relative; z-index: 1; }
.game-feature { display: block; font-size: 0.75rem; color: var(--accent); font-family: var(--font-mono); position: relative; z-index: 1; }
.game-tile.more { display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 204, 255, 0.05)); border: 1px dashed var(--primary); }
.more-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.more-subtext { font-size: 0.875rem; color: var(--text-secondary); }

/* Footer */
.footer { background: var(--bg-tertiary); padding: var(--space-2xl) 0 var(--space-lg); border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: 2fr 3fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-md); }
.footer-logo { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.footer-logo .logo-text { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.footer-tagline { color: var(--text-secondary); font-size: 0.875rem; }
.footer-badges { display: flex; gap: var(--space-sm); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.footer-column h4 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: var(--space-md); }
.footer-column a { display: block; padding: var(--space-sm) 0; color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; transition: var(--transition-fast); }
.footer-column a:hover { color: var(--primary); transform: translateX(4px); }
.footer-bottom { text-align: center; padding-top: var(--space-lg); border-top: 1px solid var(--border-color); }
.footer-bottom p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: var(--space-sm); }
.footer-bottom a { color: var(--primary); text-decoration: none; }
.disclaimer { font-size: 0.75rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) { .footer-content { grid-template-columns: 1fr; } .footer-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .nav-links { display: none; } .mobile-menu-btn { display: flex; } .hero { padding-top: 100px; min-height: auto; } .stats-row { gap: var(--space-md); } .stat-card { min-width: 100px; padding: var(--space-md); } .stat-number { font-size: 2rem; } .footer-links { grid-template-columns: repeat(2, 1fr); } .install-tabs { flex-direction: column; align-items: stretch; } .games-showcase { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .container { padding: 0 var(--space-md); } .hero-title { font-size: 2rem; } .section-title { font-size: 1.75rem; } .stats-row { display: grid; grid-template-columns: repeat(2, 1fr); } .cta-group { flex-direction: column; } .btn { width: 100%; justify-content: center; } .footer-links { grid-template-columns: 1fr; } .games-showcase { grid-template-columns: 1fr; } }

/* Comparison Slider */
.comparison { background: var(--bg-secondary); }
.comparison-container { max-width: 900px; margin: 0 auto; }
.comparison-wrapper { position: relative; width: 100%; height: 0; padding-bottom: 56.25%; /* 16:9 Aspect Ratio */ overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); }
.comp-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.comp-img.original { width: 50%; border-right: 2px solid var(--primary); z-index: 2; }
.placeholder-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.placeholder-img.on { background: linear-gradient(135deg, #1a1a25, #0a0a0f); }
.placeholder-img.off { background: linear-gradient(135deg, #2a2a35, #1a1a25); }
.placeholder-img span { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: rgba(255, 255, 255, 0.1); z-index: 1; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px); background-size: 20px 20px; }
.pixel-overlay { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px); background-size: 4px 4px; filter: blur(1px); }
.img-label { position: absolute; top: var(--space-md); padding: var(--space-xs) var(--space-sm); background: rgba(0, 0, 0, 0.7); color: var(--text-primary); font-family: var(--font-mono); font-size: 0.75rem; border-radius: var(--radius-sm); z-index: 3; pointer-events: none; }
.comp-img.modified .img-label { right: var(--space-md); border: 1px solid var(--primary); color: var(--primary); }
.comp-img.original .img-label { left: var(--space-md); border: 1px solid var(--text-muted); color: var(--text-muted); }
.comp-slider { position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; transform: translateX(-50%); z-index: 10; cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.slider-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.slider-handle { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bg-primary); box-shadow: 0 0 20px rgba(0, 255, 136, 0.5); transition: transform 0.2s ease; }
.comp-slider:hover .slider-handle { transform: scale(1.1); }

/* Schematic Architecture */
.architecture { background: var(--bg-primary); overflow: hidden; }
.schematic-diagram { position: relative; max-width: 1000px; margin: 0 auto; padding: var(--space-xl) 0; }
.schematic-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.flow-container { display: flex; align-items: center; justify-content: center; gap: var(--space-md); position: relative; z-index: 2; flex-wrap: wrap; }
.flow-node { display: flex; flex-direction: column; align-items: center; padding: var(--space-lg); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); min-width: 160px; position: relative; transition: var(--transition-normal); }
.flow-node:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 0 20px rgba(0, 204, 255, 0.2); }
.flow-node.optiscaler { border-color: var(--primary); background: rgba(0, 255, 136, 0.05); transform: scale(1.1); z-index: 5; }
.flow-node.optiscaler:hover { box-shadow: 0 0 30px rgba(0, 255, 136, 0.3); }
.node-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.node-title { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--space-xs); }
.node-tech { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); }
.flow-connector { flex: 1; height: 2px; background: var(--border-color); position: relative; min-width: 50px; }
.flow-line { position: absolute; inset: 0; background: var(--accent); width: 0; animation: flow-line 3s infinite ease-in-out; }
.flow-packet { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; animation: flow-packet 3s infinite linear; }
.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
.schematic-legend { display: flex; justify-content: center; gap: var(--space-lg); margin-top: var(--space-xl); }
.legend-item { display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.input { background: var(--text-muted); }
.dot.process { background: var(--primary); box-shadow: 0 0 10px var(--primary); }
.dot.output { background: var(--accent); }

@keyframes flow-line { 0% { width: 0; left: 0; opacity: 0; } 50% { width: 100%; opacity: 1; } 100% { width: 0; left: 100%; opacity: 0; } }
@keyframes flow-packet { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 768px) { .flow-container { flex-direction: column; } .flow-connector { width: 2px; height: 50px; min-width: 0; } .flow-line { width: 100%; height: 0; animation: flow-line-v 3s infinite ease-in-out; } .flow-packet { top: 0; left: 50%; animation: flow-packet-v 3s infinite linear; } }
@keyframes flow-line-v { 0% { height: 0; top: 0; opacity: 0; } 50% { height: 100%; opacity: 1; } 100% { height: 0; top: 100%; opacity: 0; } }
@keyframes flow-packet-v { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Konami Hint */
.konami-hint { margin-bottom: var(--space-lg); display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); opacity: 0.7; transition: opacity 0.3s ease; }
.konami-hint:hover { opacity: 1; }
.hint-label { font-family: var(--font-display); font-size: 0.75rem; color: var(--primary); letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
.hint-keys { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.key { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); box-shadow: 0 2px 0 rgba(0,0,0,0.5); transition: transform 0.1s ease; }
.key:hover { transform: translateY(2px); box-shadow: none; color: var(--primary); border-color: var(--primary); }


