@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body { 
	font-family: 'Inter', sans-serif;
}


@keyframes spin {
	to { transform: rotate(360deg); }
}

.fade-in {
	animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.card-hover {
	transition: all 0.3s ease;
}

.card-hover:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #1e293b;
}

::-webkit-scrollbar-thumb {
	background: #475569;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #64748b;
}

#result-container {
	display: none;
}

.loader-overlay {
	display: none;
	margin-top: 2rem;
	padding: 2rem;
	text-align: center;
}

.loader-overlay.active {
	display: block;
	animation: fadeIn 0.3s ease-out;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.error-message {
	display: none;
	padding: 2rem;
	background: rgba(239, 68, 68, 0.1);
	border: 2px solid rgba(239, 68, 68, 0.3);
	border-radius: 0.75rem;
	margin-top: 1rem;
}

.dark .error-message {
	background: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.4);
}

.error-message.active {
	display: block;
	animation: slideDown 0.3s ease-out;
}

/* Rate limit için özel stil */
.error-message.rate-limit {
	background: rgba(249, 115, 22, 0.1);
	border-color: rgba(249, 115, 22, 0.3);
}

.dark .error-message.rate-limit {
	background: rgba(249, 115, 22, 0.15);
	border-color: rgba(249, 115, 22, 0.4);
}

/* Sticky header for expanded raw data sections */
.raw-data-header-sticky {
	position: -webkit-sticky !important;
	position: sticky !important;
	top: 0 !important;
	z-index: 50 !important;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2) !important;
}

/* Input focus glow */
.input-glow:focus {
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Badge animations */
@keyframes pulse-green {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: .5;
	}
}

.animate-pulse-slow {
	animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* JSON Formatter Styles */
.json-formatter {
	font-family: 'Courier New', 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
	font-size: 13px;
	line-height: 1.8;
	white-space: pre-wrap;
	word-wrap: break-word;
	letter-spacing: 0.3px;
}

.json-key {
	color: #e06c75;
	font-weight: bold;
}

.json-string {
	color: #98c379;
}

.json-number {
	color: #d19a66;
}

.json-boolean {
	color: #56b6c2;
}

.json-null {
	color: #abb2bf;
}

.dark .json-key {
	color: #ff6b6b;
}

.dark .json-string {
	color: #51cf66;
}

.dark .json-number {
	color: #ffd43b;
}

.dark .json-boolean {
	color: #74c0fc;
}

.dark .json-null {
	color: #868e96;
}

.json-toggle {
	cursor: pointer;
	user-select: none;
	position: relative;
	color: #6b7280;
	padding: 0 2px;
}

.dark .json-toggle {
	color: #9ca3af;
}

.json-toggle:hover {
	background-color: rgba(59, 130, 246, 0.1);
	border-radius: 3px;
}

.json-toggle:before {
	content: '▶';
	display: inline-block;
	margin-right: 4px;
	font-size: 10px;
	transition: transform 0.2s;
}

.json-toggle.open:before {
	transform: rotate(90deg);
}

.json-content {
	display: inline;
}


