/* View Page Source - Main Stylesheet */

/* CSS Custom Properties (Design Tokens) */
:root {
	--bg-primary: #f8fafc;
	--bg-secondary: #ffffff;
	--bg-tertiary: #f1f5f9;
	--bg-code: #1e293b;
	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-muted: #94a3b8;
	--accent-cyan: #06b6d4;
	--accent-green: #22c55e;
	--accent-orange: #f97316;
	--accent-purple: #a855f7;
	--accent-pink: #ec4899;
	--border-color: #e2e8f0;
	--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
	--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
	--glow-accent: 0 0 40px rgba(6, 182, 212, 0.15);
}

[data-theme="dark"] {
	--bg-primary: #0a0f1a;
	--bg-secondary: #111827;
	--bg-tertiary: #1f2937;
	--bg-code: #0d1421;
	--text-primary: #f1f5f9;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	--border-color: #1e293b;
	--shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
	--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.3);
	--shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.4);
	--glow-accent: 0 0 60px rgba(6, 182, 212, 0.2);
}

/* Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	background-color: var(--bg-primary);
	color: var(--text-primary);
	line-height: 1.7;
	font-size: 16px;
	transition: background-color 0.3s ease, color 0.3s ease;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
	pointer-events: none;
	z-index: -1;
}

[data-theme="dark"] body::after {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		linear-gradient(rgba(30, 41, 59, 0.3) 1px, transparent 1px),
		linear-gradient(90deg, rgba(30, 41, 59, 0.3) 1px, transparent 1px);
	background-size: 60px 60px;
	pointer-events: none;
	z-index: -1;
	opacity: 0.5;
}

/* Cookie Consent Banner */
.cookie-consent {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	padding: 20px 24px;
	z-index: 1000;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
	transform: translateY(100%);
	transition: transform 0.4s ease;
}

.cookie-consent.show {
	transform: translateY(0);
}

.cookie-consent-inner {
	max-width: 1400px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.cookie-consent-content {
	flex: 1;
	min-width: 300px;
}

.cookie-consent-content h4 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.cookie-consent-content p {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.6;
}

.cookie-consent-content a {
	color: var(--accent-cyan);
	text-decoration: none;
}

.cookie-consent-content a:hover {
	text-decoration: underline;
}

.cookie-consent-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.cookie-btn {
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
	font-family: inherit;
}

.cookie-btn-accept {
	background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
	color: white;
}

.cookie-btn-accept:hover {
	background: linear-gradient(135deg, #0891b2, var(--accent-cyan));
	transform: translateY(-1px);
}

.cookie-btn-reject {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
	background: var(--border-color);
}

.cookie-btn-settings {
	background: transparent;
	color: var(--text-secondary);
	border: 1px solid var(--border-color);
}

.cookie-btn-settings:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.6);
	z-index: 1001;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.cookie-modal-overlay.show {
	display: flex;
}

.cookie-modal {
	background: var(--bg-secondary);
	border-radius: 16px;
	max-width: 600px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: var(--shadow-xl);
}

.cookie-modal-header {
	padding: 24px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.cookie-modal-header h3 {
	font-size: 20px;
	font-weight: 600;
}

.cookie-modal-close {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.cookie-modal-close:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
}

.cookie-modal-body {
	padding: 24px;
}

.cookie-category {
	margin-bottom: 20px;
	padding: 16px;
	background: var(--bg-tertiary);
	border-radius: 12px;
}

.cookie-category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.cookie-category h4 {
	font-size: 15px;
	font-weight: 600;
}

.cookie-category p {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
}

.cookie-toggle {
	position: relative;
	width: 48px;
	height: 26px;
}

.cookie-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cookie-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--border-color);
	transition: 0.3s;
	border-radius: 26px;
}

.cookie-toggle-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
	background-color: var(--accent-cyan);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
	transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
	opacity: 0.6;
	cursor: not-allowed;
}

.cookie-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	background: rgba(var(--bg-secondary), 0.8);
	border-bottom: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

[data-theme="dark"] header {
	background: rgba(17, 24, 39, 0.85);
}

[data-theme="light"] header {
	background: rgba(255, 255, 255, 0.85);
}

nav {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text-primary);
}

.logo-icon {
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Chokokutai', monospace;
	font-weight: 600;
	font-size: 18px;
	color: white;
}

.logo-text {
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -0.02em;
}

.logo-text span {
	color: var(--accent-cyan);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
}

.nav-links a {
	padding: 10px 18px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--text-secondary);
	font-weight: 500;
	font-size: 15px;
	transition: all 0.2s ease;
}

.nav-links a:hover {
	color: var(--text-primary);
	background: var(--bg-tertiary);
}

/* Theme Toggle */
.theme-toggle {
	position: relative;
	width: 56px;
	height: 30px;
	background: var(--bg-tertiary);
	border-radius: 15px;
	cursor: pointer;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	padding: 0 4px;
}

.theme-toggle::before {
	content: '';
	position: absolute;
	left: 8px;
	font-size: 12px;
	opacity: 1;
	transition: opacity 0.2s ease;
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23f59e0b' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.25a.75.75 0 01.75.75v2.25a.75.75 0 01-1.5 0V3a.75.75 0 01.75-.75zM7.5 12a4.5 4.5 0 119 0 4.5 4.5 0 01-9 0zM18.894 6.166a.75.75 0 00-1.06-1.06l-1.591 1.59a.75.75 0 101.06 1.061l1.591-1.59zM21.75 12a.75.75 0 01-.75.75h-2.25a.75.75 0 010-1.5H21a.75.75 0 01.75.75zM17.834 18.894a.75.75 0 001.06-1.06l-1.59-1.591a.75.75 0 10-1.061 1.06l1.59 1.591zM12 18a.75.75 0 01.75.75V21a.75.75 0 01-1.5 0v-2.25A.75.75 0 0112 18zM7.758 17.303a.75.75 0 00-1.061-1.06l-1.591 1.59a.75.75 0 001.06 1.061l1.591-1.59zM6 12a.75.75 0 01-.75.75H3a.75.75 0 010-1.5h2.25A.75.75 0 016 12zM6.697 7.757a.75.75 0 001.06-1.06l-1.59-1.591a.75.75 0 00-1.061 1.06l1.59 1.591z'/%3E%3C/svg%3E") no-repeat center;
}

.theme-toggle::after {
	content: '';
	position: absolute;
	right: 8px;
	font-size: 12px;
	opacity: 0.4;
	transition: opacity 0.2s ease;
	width: 14px;
	height: 14px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23a855f7' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M9.528 1.718a.75.75 0 01.162.819A8.97 8.97 0 009 6a9 9 0 009 9 8.97 8.97 0 003.463-.69.75.75 0 01.981.98 10.503 10.503 0 01-9.694 6.46c-5.799 0-10.5-4.701-10.5-10.5 0-4.368 2.667-8.112 6.46-9.694a.75.75 0 01.818.162z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
}

[data-theme="dark"] .theme-toggle::before {
	opacity: 0.4;
}

[data-theme="dark"] .theme-toggle::after {
	opacity: 1;
}

.theme-toggle-knob {
	width: 22px;
	height: 22px;
	background: white;
	border-radius: 50%;
	box-shadow: var(--shadow-sm);
	transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	z-index: 1;
}

[data-theme="dark"] .theme-toggle-knob {
	transform: translateX(26px);
	background: var(--accent-purple);
}

/* Mobile Menu Button */
.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	color: var(--text-primary);
	cursor: pointer;
	padding: 8px;
}

.mobile-menu-btn svg {
	width: 24px;
	height: 24px;
}

/* Hero Section */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 120px 24px 80px;
	position: relative;
}

.hero-content {
	max-width: 800px;
	text-align: center;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: var(--bg-tertiary);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	margin-bottom: 32px;
	border: 1px solid var(--border-color);
	animation: fadeInUp 0.6s ease;
}

.hero-badge-dot {
	width: 8px;
	height: 8px;
	background: var(--accent-green);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

.hero h1 {
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 24px;
	letter-spacing: -0.03em;
	animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero h1 .gradient-text {
	background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-description {
	font-size: 1.25rem;
	color: var(--text-secondary);
	margin-bottom: 48px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
	animation: fadeInUp 0.6s ease 0.2s backwards;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* URL Input Form */
.url-form {
	animation: fadeInUp 0.6s ease 0.3s backwards;
}

.input-wrapper {
	position: relative;
	max-width: 700px;
	margin: 0 auto;
}

.url-input-container {
	display: flex;
	background: var(--bg-secondary);
	border-radius: 16px;
	border: 2px solid var(--border-color);
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: var(--shadow-lg), var(--glow-accent);
}

.url-input-container:focus-within {
	border-color: var(--accent-cyan);
	box-shadow: var(--shadow-xl), 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.url-prefix {
	display: flex;
	align-items: center;
	padding: 0 16px;
	background: var(--bg-tertiary);
	color: var(--text-muted);
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	border-right: 1px solid var(--border-color);
}

.url-input {
	flex: 1;
	padding: 20px 24px;
	border: none;
	background: transparent;
	color: var(--text-primary);
	font-family: 'JetBrains Mono', monospace;
	font-size: 16px;
	outline: none;
}

.url-input::placeholder {
	color: var(--text-muted);
}

.submit-btn {
	padding: 20px 32px;
	background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
	color: white;
	border: none;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.submit-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #0891b2, var(--accent-cyan));
	transform: translateX(2px);
}

.submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

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

/* Form Options */
.form-options {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.checkbox-wrapper input {
	display: none;
}

.custom-checkbox {
	width: 22px;
	height: 22px;
	border: 2px solid var(--border-color);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	background: var(--bg-secondary);
}

.checkbox-wrapper input:checked + .custom-checkbox {
	background: var(--accent-cyan);
	border-color: var(--accent-cyan);
}

.custom-checkbox svg {
	width: 14px;
	height: 14px;
	stroke: white;
	stroke-width: 3;
	opacity: 0;
	transform: scale(0.5);
	transition: all 0.2s ease;
}

.checkbox-wrapper input:checked + .custom-checkbox svg {
	opacity: 1;
	transform: scale(1);
}

.checkbox-wrapper span {
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 500;
}

/* Error Message */
.error-message {
	display: none;
	margin-top: 16px;
	padding: 12px 20px;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 10px;
	color: #ef4444;
	font-size: 14px;
	font-weight: 500;
	animation: fadeInUp 0.3s ease;
}

.error-message.show {
	display: block;
}

/* Stats */
.hero-stats {
	display: flex;
	justify-content: center;
	gap: 48px;
	margin-top: 64px;
	animation: fadeInUp 0.6s ease 0.4s backwards;
}

.stat-item {
	text-align: center;
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
	font-family: 'JetBrains Mono', monospace;
}

.stat-label {
	font-size: 14px;
	color: var(--text-muted);
	margin-top: 4px;
}

/* Code Result Section */
.code-section {
	padding: 80px 24px;
	display: none;
}

.code-section.show {
	display: block;
}

.code-window {
	max-width: 1200px;
	margin: 0 auto;
	background: var(--bg-code);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow-xl);
}

.code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: rgba(0,0,0,0.3);
	border-bottom: 1px solid rgba(255,255,255,0.1);
	flex-wrap: wrap;
	gap: 12px;
}

.code-dots {
	display: flex;
	gap: 8px;
}

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

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

.code-title {
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	color: #94a3b8;
	flex: 1;
	text-align: center;
	min-width: 200px;
	white-space: nowrap;
 	overflow: hidden;
	text-overflow: ellipsis;
}

.code-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.code-action-btn {
	padding: 8px 16px;
	background: rgba(255,255,255,0.1);
	border: none;
	border-radius: 6px;
	color: #e2e8f0;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
}

.code-action-btn:hover {
	background: rgba(255,255,255,0.15);
}

.code-action-btn.primary {
	background: var(--accent-cyan);
	color: white;
}

.code-action-btn.primary:hover {
	background: #0891b2;
}

.code-body {
	max-height: 500px;
	overflow: auto;
	padding: 20px;
}

.code-body pre {
	margin: 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 14px;
	line-height: 1.6;
	color: #e2e8f0;
}

.code-body pre.wrap,
.code-body pre.wrap code {
	white-space: pre-wrap !important;
	word-wrap: break-word !important;
	word-break: break-word !important;
	overflow-wrap: break-word !important;
}

.code-body pre.no-wrap,
.code-body pre.no-wrap code {
	white-space: pre !important;
	word-wrap: normal !important;
}

/* Override Prism.js default styles */
.code-body pre[class*="language-"],
.code-body code[class*="language-"] {
	white-space: inherit;
	word-wrap: inherit;
	word-break: inherit;
}

.code-body pre.wrap[class*="language-"],
.code-body pre.wrap code[class*="language-"] {
	white-space: pre-wrap !important;
	word-wrap: break-word !important;
	word-break: break-word !important;
}

.code-body pre.no-wrap[class*="language-"],
.code-body pre.no-wrap code[class*="language-"] {
	white-space: pre !important;
	word-wrap: normal !important;
}

/* Info Cards */
.info-grid {
	max-width: 1200px;
	margin: 40px auto 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.info-card {
	background: var(--bg-secondary);
	border-radius: 16px;
	padding: 24px;
	border: 1px solid var(--border-color);
}

.info-card h3 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.info-card h3 .icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.info-card h3 .icon.speed { background: rgba(34, 197, 94, 0.15); }
.info-card h3 .icon.server { background: rgba(6, 182, 212, 0.15); }
.info-card h3 .icon.page { background: rgba(168, 85, 247, 0.15); }

.info-card ul {
	list-style: none;
	padding: 0;
}

.info-card li {
	padding: 8px 0;
	font-size: 14px;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
}

.info-card li:last-child {
	border-bottom: none;
}

.info-card li strong {
	color: var(--text-primary);
}

/* Timing Chart */
.timing-chart-container {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.timing-chart {
	width: 160px;
	height: 160px;
}

.timing-legend {
	flex: 1;
	min-width: 150px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
	font-size: 13px;
	color: var(--text-secondary);
}

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

.total-time {
	font-size: 20px;
	font-weight: 700;
	fill: var(--text-primary);
}

/* Features Section */
.features {
	padding: 100px 24px;
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}

.section-header {
	text-align: center;
	max-width: 600px;
	margin: 0 auto 64px;
}

.section-tag {
	display: inline-block;
	padding: 6px 14px;
	background: rgba(6, 182, 212, 0.1);
	color: var(--accent-cyan);
	border-radius: 100px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 16px;
}

.section-header h2 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
}

.section-header p {
	color: var(--text-secondary);
	font-size: 1.125rem;
}

.features-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 32px;
}

.feature-card {
	padding: 32px;
	background: var(--bg-primary);
	border-radius: 20px;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--accent-cyan);
}

.feature-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 20px;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(6, 182, 212, 0.15); }
.feature-card:nth-child(2) .feature-icon { background: rgba(34, 197, 94, 0.15); }
.feature-card:nth-child(3) .feature-icon { background: rgba(168, 85, 247, 0.15); }
.feature-card:nth-child(4) .feature-icon { background: rgba(249, 115, 22, 0.15); }
.feature-card:nth-child(5) .feature-icon { background: rgba(236, 72, 153, 0.15); }
.feature-card:nth-child(6) .feature-icon { background: rgba(6, 182, 212, 0.15); }

.feature-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.feature-card p {
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.6;
}

/* Blog Section */
.blog-section {
	padding: 100px 24px;
}

.blog-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 32px;
}

.blog-card {
	background: var(--bg-secondary);
	border-radius: 20px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
	display: block;
}

.blog-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--shadow-xl);
}

.blog-card:hover .blog-image img {
	transform: scale(1.05);
}

.blog-image {
	aspect-ratio: 16/10;
	overflow: hidden;
}

.blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.blog-content {
	padding: 24px;
}

.blog-tag {
	display: inline-block;
	padding: 4px 10px;
	background: rgba(6, 182, 212, 0.1);
	color: var(--accent-cyan);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 12px;
}

.blog-card:nth-child(2) .blog-tag { background: rgba(34, 197, 94, 0.1); color: var(--accent-green); }
.blog-card:nth-child(3) .blog-tag { background: rgba(168, 85, 247, 0.1); color: var(--accent-purple); }
.blog-card:nth-child(4) .blog-tag { background: rgba(249, 115, 22, 0.1); color: var(--accent-orange); }
.blog-card:nth-child(5) .blog-tag { background: rgba(236, 72, 153, 0.1); color: var(--accent-pink); }
.blog-card:nth-child(6) .blog-tag { background: rgba(6, 182, 212, 0.1); color: var(--accent-cyan); }

.blog-card h3 {
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 12px;
	line-height: 1.4;
}

.blog-card p {
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.6;
}

/* Testimonials */
.testimonials {
	padding: 100px 24px;
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
}

.testimonials-grid {
	max-width: 1000px;
	margin: 0 auto;
	display: grid;
	gap: 40px;
}

.testimonial-card {
	text-align: center;
	padding: 40px;
	background: var(--bg-primary);
	border-radius: 24px;
	border: 1px solid var(--border-color);
}

.testimonial-card blockquote {
	font-size: 1.25rem;
	font-style: italic;
	color: var(--text-primary);
	margin-bottom: 24px;
	line-height: 1.7;
}

.testimonial-card blockquote::before {
	content: '"';
	font-size: 4rem;
	color: var(--accent-cyan);
	opacity: 0.3;
	line-height: 0;
	display: block;
	margin-bottom: -10px;
}

.testimonial-author {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.testimonial-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--accent-cyan);
}

.testimonial-info h4 {
	font-size: 1rem;
	font-weight: 600;
}

.testimonial-info span {
	font-size: 14px;
	color: var(--text-muted);
}

/* Footer */
footer {
	padding: 60px 24px 30px;
	border-top: 1px solid var(--border-color);
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

.footer-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer-links {
	display: flex;
	gap: 32px;
	list-style: none;
}

.footer-links a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.footer-links a:hover {
	color: var(--accent-cyan);
}

.footer-bottom {
	max-width: 1200px;
	margin: 40px auto 0;
	padding-top: 24px;
	border-top: 1px solid var(--border-color);
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
}

/* Mobile Menu */
.nav-links.mobile-open {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 72px;
	left: 0;
	right: 0;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	padding: 16px 24px;
	box-shadow: var(--shadow-lg);
	z-index: 99;
}

.nav-links.mobile-open a {
	padding: 12px 16px;
	border-radius: 8px;
}

.nav-links.mobile-open a:hover {
	background: var(--bg-tertiary);
}

.mobile-menu-btn.active svg path:first-child {
	transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active svg path:nth-child(2) {
	opacity: 0;
}

.mobile-menu-btn.active svg path:last-child {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
	.nav-links:not(.mobile-open) {
		display: none;
	}

	.mobile-menu-btn {
		display: block;
	}

	.url-input-container {
		flex-direction: column;
	}

	.url-prefix {
		padding: 12px 16px;
		border-right: none;
		border-bottom: 1px solid var(--border-color);
	}

	.submit-btn {
		width: 100%;
		justify-content: center;
	}

	.hero-stats {
		flex-direction: column;
		gap: 24px;
	}

	.form-options {
		flex-direction: column;
		align-items: center;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
	}

	.footer-links {
		flex-wrap: wrap;
		justify-content: center;
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.code-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.code-title {
		text-align: left;
	}

	.cookie-consent-inner {
		flex-direction: column;
		text-align: center;
	}

	.cookie-consent-buttons {
		width: 100%;
		justify-content: center;
	}
}

/* Loading spinner */
.loading-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2px solid transparent;
	border-top-color: currentColor;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.loading-spinner.show {
	display: block;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: all 0.6s ease;
}

.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ==========================================
   Smart Analysis Section
   ========================================== */

.smart-analysis {
	max-width: 1200px;
	margin: 40px auto 0;
	background: var(--bg-secondary);
	border-radius: 16px;
	border: 1px solid var(--border-color);
	overflow: hidden;
}

.analysis-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border-color);
	background: var(--bg-tertiary);
	flex-wrap: wrap;
	gap: 16px;
}

.analysis-header h2 {
	font-size: 18px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.analysis-header h2 svg {
	color: var(--accent-cyan);
}

.analysis-actions {
	display: flex;
	gap: 8px;
}

.analysis-action-btn {
	padding: 8px 14px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
}

.analysis-action-btn:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	border-color: var(--accent-cyan);
}

/* Analysis Sections */
.analysis-section {
	border-bottom: 1px solid var(--border-color);
}

.analysis-section:last-child {
	border-bottom: none;
}

.section-header-bar {
	display: flex;
	align-items: center;
	padding: 16px 24px;
	cursor: pointer;
	transition: background 0.2s ease;
	user-select: none;
}

.section-header-bar:hover {
	background: var(--bg-tertiary);
}

.section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	font-weight: 500;
	font-size: 15px;
}

.section-icon {
	font-size: 18px;
	width: 28px;
	text-align: center;
}

.section-badges {
	display: flex;
	gap: 8px;
	margin-right: 16px;
	flex-wrap: wrap;
}

.badge {
	padding: 4px 10px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
}

.badge-good {
	background: rgba(34, 197, 94, 0.15);
	color: #22c55e;
}

.badge-warning {
	background: rgba(234, 179, 8, 0.15);
	color: #eab308;
}

.badge-error {
	background: rgba(239, 68, 68, 0.15);
	color: #ef4444;
}

.badge-info {
	background: rgba(59, 130, 246, 0.15);
	color: #3b82f6;
}

.badge-neutral {
	background: var(--bg-tertiary);
	color: var(--text-muted);
}

.chevron {
	transition: transform 0.3s ease;
	color: var(--text-muted);
}

.analysis-section.open .chevron {
	transform: rotate(180deg);
}

.section-content {
	display: none;
	padding: 0 24px 20px;
	animation: slideDown 0.3s ease;
}

.analysis-section.open .section-content {
	display: block;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Analysis Items */
.analysis-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 12px 0;
	border-bottom: 1px solid var(--border-color);
	gap: 16px;
}

.analysis-item:last-child {
	border-bottom: none;
}

.analysis-item-label {
	font-size: 14px;
	color: var(--text-secondary);
	min-width: 120px;
	flex-shrink: 0;
}

.analysis-item-value {
	font-size: 14px;
	color: var(--text-primary);
	word-break: break-word;
	flex: 1;
	text-align: right;
}

.analysis-item-value.mono {
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
}

.analysis-item-value.truncate {
	max-width: 500px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	line-height: 1.5;
}

.analysis-item-value.good {
	color: #22c55e;
}

.analysis-item-value.warning {
	color: #eab308;
}

.analysis-item-value.error {
	color: #ef4444;
}

/* Status Indicator */
.status-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	border: 1px solid transparent;
}

.status-indicator.good {
	background: rgba(34, 197, 94, 0.15);
	color: #16a34a;
	border-color: rgba(34, 197, 94, 0.3);
}

.status-indicator.warning {
	background: rgba(234, 179, 8, 0.15);
	color: #ca8a04;
	border-color: rgba(234, 179, 8, 0.3);
}

.status-indicator.error {
	background: rgba(239, 68, 68, 0.15);
	color: #dc2626;
	border-color: rgba(239, 68, 68, 0.3);
}

.status-indicator.info {
	background: rgba(59, 130, 246, 0.15);
	color: #2563eb;
	border-color: rgba(59, 130, 246, 0.3);
}

/* Dark mode status indicators - brighter colors */
[data-theme="dark"] .status-indicator.good {
	color: #22c55e;
}

[data-theme="dark"] .status-indicator.warning {
	color: #eab308;
}

[data-theme="dark"] .status-indicator.error {
	color: #ef4444;
}

[data-theme="dark"] .status-indicator.info {
	color: #3b82f6;
}

/* Analysis Message */
.analysis-message {
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 8px;
	margin-top: 8px;
	font-weight: 500;
}

.analysis-message.warning {
	background: rgba(234, 179, 8, 0.1);
	border: 1px solid rgba(234, 179, 8, 0.3);
	color: #a16207;
}

.analysis-message.error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	color: #b91c1c;
}

.analysis-message.info {
	background: rgba(59, 130, 246, 0.1);
	border: 1px solid rgba(59, 130, 246, 0.3);
	color: #1d4ed8;
}

/* Dark mode analysis messages - brighter colors */
[data-theme="dark"] .analysis-message.warning {
	color: #eab308;
}

[data-theme="dark"] .analysis-message.error {
	color: #ef4444;
}

[data-theme="dark"] .analysis-message.info {
	color: #3b82f6;
}

/* Analysis Grid */
.analysis-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin-top: 12px;
}

.analysis-card {
	background: var(--bg-tertiary);
	border-radius: 10px;
	padding: 16px;
	border: 1px solid var(--border-color);
}

.analysis-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.analysis-card-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
}

.analysis-card-value {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.5;
}

.analysis-card-value.mono {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	background: var(--bg-code);
	padding: 8px 12px;
	border-radius: 6px;
	overflow-x: auto;
	color: #e2e8f0;
}

/* OG Image Preview */
.og-image-preview {
	margin-top: 12px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	background: var(--bg-tertiary);
}

.og-image-preview img {
	width: 100%;
	max-height: 200px;
	object-fit: cover;
	display: block;
}

.og-image-preview-error {
	padding: 24px;
	text-align: center;
	color: var(--text-muted);
	font-size: 13px;
}

.og-image-meta {
	padding: 10px 14px;
	font-size: 12px;
	color: var(--text-secondary);
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

.og-image-meta span {
	font-family: 'JetBrains Mono', monospace;
}

/* Copy Button for Items */
.copy-item-btn {
	background: none;
	border: none;
	color: var(--text-muted);
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.copy-item-btn:hover {
	color: var(--accent-cyan);
	background: var(--bg-tertiary);
}

/* Tags List */
.tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.tag-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: var(--bg-tertiary);
	border-radius: 6px;
	font-size: 12px;
	color: var(--text-secondary);
	border: 1px solid var(--border-color);
}

.tag-item.active {
	background: rgba(34, 197, 94, 0.15);
	border-color: rgba(34, 197, 94, 0.3);
	color: #22c55e;
}

.tag-item.inactive {
	background: rgba(107, 114, 128, 0.15);
	border-color: rgba(107, 114, 128, 0.3);
	color: var(--text-muted);
}

/* Heading Tree */
.heading-tree {
	font-family: 'JetBrains Mono', monospace;
	font-size: 13px;
	line-height: 1.8;
}

.heading-tree-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
}

.heading-level {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 22px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	flex-shrink: 0;
}

.heading-level.h1 { background: rgba(6, 182, 212, 0.2); color: var(--accent-cyan); }
.heading-level.h2 { background: rgba(168, 85, 247, 0.2); color: var(--accent-purple); }
.heading-level.h3 { background: rgba(34, 197, 94, 0.2); color: var(--accent-green); }
.heading-level.h4 { background: rgba(249, 115, 22, 0.2); color: var(--accent-orange); }
.heading-level.h5 { background: rgba(236, 72, 153, 0.2); color: var(--accent-pink); }
.heading-level.h6 { background: rgba(107, 114, 128, 0.2); color: var(--text-muted); }

.heading-text {
	color: var(--text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* External Links List */
.external-domains-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.domain-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: var(--bg-tertiary);
	border-radius: 6px;
	font-size: 12px;
	font-family: 'JetBrains Mono', monospace;
	color: var(--text-secondary);
	border: 1px solid var(--border-color);
}

.domain-tag .count {
	background: var(--border-color);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 11px;
	color: var(--text-muted);
}

/* JSON-LD Block */
.jsonld-block {
	background: var(--bg-code);
	border-radius: 8px;
	padding: 16px;
	margin-top: 12px;
	overflow-x: auto;
}

.jsonld-block pre {
	margin: 0;
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	line-height: 1.6;
	color: #e2e8f0;
	white-space: pre-wrap;
	word-break: break-word;
}

.jsonld-type {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(6, 182, 212, 0.15);
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--accent-cyan);
	margin-right: 8px;
	margin-bottom: 8px;
}

.jsonld-type .icon {
	font-size: 14px;
}

/* Resource Stats */
.resource-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
	margin-top: 12px;
}

.resource-stat {
	background: var(--bg-tertiary);
	border-radius: 10px;
	padding: 16px;
	text-align: center;
	border: 1px solid var(--border-color);
}

.resource-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
	font-family: 'JetBrains Mono', monospace;
}

.resource-stat-label {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
}

.resource-stat.warning .resource-stat-value {
	color: #eab308;
}

.resource-stat.error .resource-stat-value {
	color: #ef4444;
}

/* Security Indicator Large */
.security-status {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: var(--bg-tertiary);
	border-radius: 10px;
	margin-bottom: 16px;
}

.security-status-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.security-status.secure .security-status-icon {
	background: rgba(34, 197, 94, 0.15);
}

.security-status.insecure .security-status-icon {
	background: rgba(239, 68, 68, 0.15);
}

.security-status-text h4 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}

.security-status.secure .security-status-text h4 {
	color: #22c55e;
}

.security-status.insecure .security-status-text h4 {
	color: #ef4444;
}

.security-status-text p {
	font-size: 13px;
	color: var(--text-secondary);
	margin: 0;
}

/* Empty State */
.analysis-empty {
	text-align: center;
	padding: 24px;
	color: var(--text-muted);
	font-size: 14px;
}

.analysis-empty svg {
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	opacity: 0.5;
}

/* Show More Button */
.show-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-secondary);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 12px;
}

.show-more-btn:hover {
	background: var(--bg-secondary);
	color: var(--accent-cyan);
	border-color: var(--accent-cyan);
}

/* ==========================================
   Technology Detection Section
   ========================================== */

.tech-detection {
	max-width: 1200px;
	margin: 40px auto 0;
	background: var(--bg-secondary);
	border-radius: 16px;
	border: 1px solid var(--border-color);
	overflow: hidden;
}

.tech-detection-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border-color);
	background: var(--bg-tertiary);
	flex-wrap: wrap;
	gap: 16px;
}

.tech-detection-header h2 {
	font-size: 18px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.tech-detection-header h2 svg {
	color: var(--accent-cyan);
}

.tech-detection-badges {
	display: flex;
	gap: 8px;
}

.tech-detection-content {
	padding: 24px;
}

/* Technology Categories */
.tech-category {
	margin-bottom: 20px;
}

.tech-category:last-child {
	margin-bottom: 0;
}

.tech-category-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-color);
}

.tech-category-icon {
	font-size: 16px;
}

.tech-category-name {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
}

.tech-category-count {
	margin-left: auto;
	font-size: 12px;
	color: var(--text-muted);
	background: var(--bg-tertiary);
	padding: 2px 8px;
	border-radius: 10px;
}

/* Technology Cards Grid */
.tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}

/* Individual Technology Card */
.tech-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--bg-tertiary);
	border-radius: 10px;
	border: 1px solid var(--border-color);
	transition: all 0.2s ease;
	cursor: pointer;
}

.tech-card:hover {
	border-color: var(--accent-cyan);
	background: var(--bg-secondary);
}

.tech-card-icon {
	font-size: 24px;
	flex-shrink: 0;
	width: 36px;
	text-align: center;
}

.tech-card-info {
	flex: 1;
	min-width: 0;
}

.tech-card-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.tech-card-version {
	font-size: 11px;
	font-weight: 500;
	color: var(--accent-cyan);
	background: rgba(6, 182, 212, 0.15);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'JetBrains Mono', monospace;
}

.tech-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.tech-card-category {
	font-size: 11px;
	color: var(--text-muted);
}

/* Confidence Indicators */
.confidence-indicator {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 500;
}

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

.confidence-definite .confidence-dot {
	background: #22c55e;
}

.confidence-likely .confidence-dot {
	background: #eab308;
}

.confidence-possible .confidence-dot {
	background: #6b7280;
}

.confidence-definite {
	color: #22c55e;
}

.confidence-likely {
	color: #eab308;
}

.confidence-possible {
	color: #6b7280;
}

/* Light mode confidence colors */
[data-theme="light"] .confidence-definite {
	color: #16a34a;
}

[data-theme="light"] .confidence-likely {
	color: #ca8a04;
}

[data-theme="light"] .confidence-possible {
	color: #4b5563;
}

/* Technology Card Link */
.tech-card-link {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	color: var(--text-muted);
	transition: all 0.2s ease;
	text-decoration: none;
}

.tech-card-link:hover {
	color: var(--accent-cyan);
	background: rgba(6, 182, 212, 0.1);
}

/* Technology Details Panel */
.tech-details {
	display: none;
	margin-top: 12px;
	padding: 16px;
	background: var(--bg-secondary);
	border-radius: 10px;
	border: 1px solid var(--border-color);
	animation: slideDown 0.3s ease;
}

.tech-card.expanded + .tech-details {
	display: block;
}

.tech-details-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

.tech-details-icon {
	font-size: 32px;
}

.tech-details-title {
	flex: 1;
}

.tech-details-title h4 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 4px;
}

.tech-details-title p {
	font-size: 13px;
	color: var(--text-secondary);
	margin: 0;
}

.tech-details-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: var(--accent-cyan);
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.tech-details-link:hover {
	background: #0891b2;
}

/* Evidence List */
.tech-evidence {
	margin-top: 12px;
}

.tech-evidence-title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.tech-evidence-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tech-evidence-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 0;
	font-size: 13px;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-color);
}

.tech-evidence-item:last-child {
	border-bottom: none;
}

.tech-evidence-icon {
	color: var(--accent-cyan);
	flex-shrink: 0;
	margin-top: 2px;
}

.tech-evidence-text {
	font-family: 'JetBrains Mono', monospace;
	font-size: 12px;
	word-break: break-all;
}

/* Technology Summary Stats */
.tech-summary {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	padding: 16px;
	background: var(--bg-tertiary);
	border-radius: 10px;
	flex-wrap: wrap;
}

.tech-summary-stat {
	text-align: center;
	flex: 1;
	min-width: 100px;
}

.tech-summary-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--text-primary);
	font-family: 'JetBrains Mono', monospace;
}

.tech-summary-label {
	font-size: 12px;
	color: var(--text-muted);
	margin-top: 4px;
}

.tech-summary-stat.highlight .tech-summary-value {
	color: var(--accent-cyan);
}

/* Empty State for Technology Detection */
.tech-empty {
	text-align: center;
	padding: 40px 24px;
	color: var(--text-muted);
}

.tech-empty-icon {
	font-size: 48px;
	opacity: 0.5;
	margin-bottom: 16px;
}

.tech-empty-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
}

.tech-empty-text {
	font-size: 14px;
	color: var(--text-secondary);
	max-width: 400px;
	margin: 0 auto;
}

/* Loading State */
.tech-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	color: var(--text-muted);
}

.tech-loading-spinner {
	width: 32px;
	height: 32px;
	border: 3px solid var(--border-color);
	border-top-color: var(--accent-cyan);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin-bottom: 12px;
}

.tech-loading-text {
	font-size: 14px;
}

/* Quick Filter Tags */
.tech-filters {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.tech-filter-btn {
	padding: 6px 12px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all 0.2s ease;
}

.tech-filter-btn:hover {
	border-color: var(--accent-cyan);
	color: var(--accent-cyan);
}

.tech-filter-btn.active {
	background: var(--accent-cyan);
	border-color: var(--accent-cyan);
	color: white;
}

/* Scan Time */
.tech-scan-time {
	font-size: 12px;
	color: var(--text-muted);
	text-align: right;
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--border-color);
}

/* Tech Card Wrapper for expandable cards */
.tech-card-wrapper {
	display: contents;
}

/* Expand icon in tech card */
.tech-card-expand {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-muted);
	transition: transform 0.3s ease, color 0.2s ease;
}

.tech-card:hover .tech-card-expand {
	color: var(--accent-cyan);
}

.tech-card.expanded .tech-card-expand {
	transform: rotate(180deg);
	color: var(--accent-cyan);
}

/* Tech Details Panel (expanded view) */
.tech-details {
	display: none;
	grid-column: 1 / -1;
	margin-top: -8px;
	margin-bottom: 12px;
	padding: 20px;
	background: var(--bg-secondary);
	border-radius: 12px;
	border: 1px solid var(--accent-cyan);
	animation: slideDown 0.3s ease;
	box-shadow: 0 4px 12px rgba(6, 182, 212, 0.1);
}

.tech-details.show {
	display: block;
}

.tech-details-header {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border-color);
}

.tech-details-icon {
	font-size: 40px;
	flex-shrink: 0;
}

.tech-details-title {
	flex: 1;
}

.tech-details-title h4 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-primary);
}

.tech-version-inline {
	font-size: 13px;
	font-weight: 500;
	color: var(--accent-cyan);
	background: rgba(6, 182, 212, 0.15);
	padding: 2px 8px;
	border-radius: 4px;
	font-family: 'JetBrains Mono', monospace;
}

.tech-details-title p {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.6;
	margin: 0;
}

/* Tech Details Meta */
.tech-details-meta {
	display: flex;
	gap: 24px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.tech-meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tech-meta-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
}

.tech-meta-value {
	font-size: 13px;
	color: var(--text-primary);
}

/* Evidence Section in Details */
.tech-evidence {
	margin-bottom: 16px;
}

.tech-evidence-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-bottom: 12px;
}

.tech-evidence-title svg {
	color: var(--accent-cyan);
}

.tech-evidence-list {
	list-style: none;
	padding: 0;
	margin: 0;
	background: var(--bg-tertiary);
	border-radius: 8px;
	overflow: hidden;
}

.tech-evidence-item {
	display: flex;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--border-color);
}

.tech-evidence-item:last-child {
	border-bottom: none;
}

.tech-evidence-icon {
	flex-shrink: 0;
	font-size: 14px;
}

.tech-evidence-content {
	flex: 1;
	min-width: 0;
}

.tech-evidence-desc {
	font-size: 13px;
	color: var(--text-secondary);
	margin-bottom: 4px;
}

.tech-evidence-match {
	display: block;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	color: var(--accent-cyan);
	background: var(--bg-code);
	padding: 6px 10px;
	border-radius: 4px;
	word-break: break-all;
	overflow-wrap: break-word;
}

/* Implies and Alternatives */
.tech-implies,
.tech-alternatives {
	margin-bottom: 16px;
}

.tech-implies-label,
.tech-alternatives-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-muted);
	margin-right: 8px;
}

.tech-implies-tag,
.tech-alt-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	font-size: 12px;
	color: var(--text-secondary);
	margin-right: 6px;
	margin-top: 6px;
}

.tech-implies-tag {
	background: rgba(6, 182, 212, 0.1);
	border-color: rgba(6, 182, 212, 0.3);
	color: var(--accent-cyan);
}

/* Details Footer */
.tech-details-footer {
	padding-top: 16px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
}

.tech-details-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: linear-gradient(135deg, var(--accent-cyan), #0891b2);
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.tech-details-link:hover {
	background: linear-gradient(135deg, #0891b2, var(--accent-cyan));
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* Implied confidence indicator */
.confidence-implied .confidence-dot {
	background: #8b5cf6;
}

.confidence-implied {
	color: #8b5cf6;
}

[data-theme="light"] .confidence-implied {
	color: #7c3aed;
}

/* Summary stat colors */
.tech-summary-stat.definite .tech-summary-value {
	color: #22c55e;
}

.tech-summary-stat.likely .tech-summary-value {
	color: #eab308;
}

.tech-summary-stat.possible .tech-summary-value {
	color: #6b7280;
}

.tech-summary-stat.implied .tech-summary-value {
	color: #8b5cf6;
}

/* Category title with description */
.tech-category-title {
	flex: 1;
	min-width: 0;
}

.tech-category-desc {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--text-muted);
	margin-top: 2px;
}

/* Tech grid for expandable cards */
.tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
	.analysis-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.section-header-bar {
		padding: 14px 16px;
	}

	.section-content {
		padding: 0 16px 16px;
	}

	.section-badges {
		display: none;
	}

	.analysis-item {
		flex-direction: column;
		gap: 8px;
	}

	.analysis-item-value {
		text-align: left;
	}

	.analysis-grid {
		grid-template-columns: 1fr;
	}

	.resource-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.tech-grid {
		grid-template-columns: 1fr;
	}

	.tech-summary {
		flex-direction: column;
		gap: 12px;
	}

	.tech-detection-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.tech-detection-content {
		padding: 16px;
	}

	.tech-summary-stat {
		display: flex;
		justify-content: space-between;
		align-items: center;
		text-align: left;
	}

	.tech-summary-value {
		font-size: 24px;
	}
}
