/**
 * Frontend Styles for Domain Checker
 * Modern Digital Agency Design
 *
 * @package Digitora_Domain_Checker
 * @version 1.0.0
 */

/* Color Variables */
:root {
	--lime-green: #39ff14;
	--lime-green-dark: #32e014;
	--dark-bg: #0a0a0a;
	--dark-bg-secondary: #111111;
	--text-white: #ffffff;
	--text-gray: #b3b3b3;
	--border-dark: #1a1a1a;
}

/* Main Section */
.domain-checker-section {
	position: relative;
	background: var(--dark-bg);
	padding: 80px 40px;
	overflow: hidden;
}

.domain-checker-section::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(57, 255, 20, 0.15) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

.domain-checker-container {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.domain-checker-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* Header Styles */
.domain-checker-header {
	text-align: center;
	margin-bottom: 60px;
}

.domain-checker-title {
	font-size: 48px;
	font-weight: 700;
	color: var(--text-white);
	margin: 0 0 20px 0;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.domain-checker-title .highlight {
	color: var(--lime-green);
}

.domain-checker-subtitle {
	font-size: 18px;
	color: var(--text-gray);
	margin: 0;
	font-weight: 400;
	line-height: 1.6;
}

/* Form Wrapper */
.domain-checker-form-wrapper {
	width: 100%;
	max-width: 800px;
	background: var(--dark-bg-secondary);
	border: 1px solid var(--border-dark);
	border-radius: 16px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Form Layout */
.domain-checker-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.domain-input-group {
	display: flex;
	gap: 12px;
	width: 100%;
}

/* Input Styles */
#domain-checker .domain-input {
	flex: 1;
	padding: 18px 24px;
	background: var(--dark-bg);
	border: 2px solid var(--border-dark);
	border-radius: 12px;
	color: var(--text-white);
	font-size: 16px;
	font-weight: 400;
	transition: all 0.3s ease;
	outline: none;
}

#domain-checker .domain-input::placeholder {
	color: #666666;
}

#domain-checker .domain-input:focus {
	border-color: var(--lime-green);
	box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.1);
	background: #0f0f0f;
}

#domain-checker .domain-extension-select {
	width: 15%;
	padding: 18px 24px;
	background: var(--dark-bg);
	border: 2px solid var(--border-dark);
	border-radius: 12px;
	color: var(--text-white);
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
	min-width: 120px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2339ff14' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 48px;
}

.domain-extension-select:focus {
	border-color: var(--lime-green);
	box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.1);
	background-color: #0f0f0f;
}

.domain-extension-select option {
	background: var(--dark-bg);
	color: var(--text-white);
	padding: 12px;
}

/* Button Styles */
.domain-check-button {
	padding: 18px 32px;
	background: var(--lime-green);
	color: #000000;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 20px rgba(57, 255, 20, 0.3);
}

.domain-check-button:hover:not(:disabled) {
	background: var(--lime-green-dark);
	transform: translateY(-2px);
	box-shadow: 0 6px 30px rgba(57, 255, 20, 0.4);
}

.domain-check-button:active:not(:disabled) {
	transform: translateY(0);
}

.domain-check-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

/* Spinner */
.spinner-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
}

.spinner-circle {
	opacity: 0.25;
}

.spinner-path {
	opacity: 0.75;
}

.hidden {
	display: none !important;
}

/* Result Container */
.domain-result-container {
	margin-top: 24px;
	min-height: 60px;
}

.domain-result {
	padding: 20px 24px;
	border-radius: 12px;
	border: 2px solid;
	display: flex;
	align-items: center;
	gap: 16px;
	animation: fadeInUp 0.4s ease-out;
}

.domain-result.available {
	background: rgba(57, 255, 20, 0.1);
	border-color: var(--lime-green);
	color: var(--lime-green);
}

.domain-result.unavailable {
	background: rgba(255, 59, 48, 0.1);
	border-color: #ff3b30;
	color: #ff3b30;
}

.domain-result.error {
	background: rgba(255, 193, 7, 0.1);
	border-color: #ffc107;
	color: #ffc107;
}

.domain-result-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.domain-result-content {
	flex: 1;
}

.domain-result-action {
	flex-shrink: 0;
	margin-left: auto;
}

.domain-checkout-button {
	display: inline-block;
	padding: 12px 24px;
	background: var(--lime-green);
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	border: 2px solid var(--lime-green);
	white-space: nowrap;
}

.domain-checkout-button:hover {
	background: rgba(57, 255, 20, 0.9);
	border-color: rgba(57, 255, 20, 0.9);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(57, 255, 20, 0.3);
}

.domain-result-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 4px 0;
}

.domain-result-message {
	font-size: 14px;
	margin: 0;
	opacity: 0.9;
}

/* Price Display Styles */
.domain-price-wrapper {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 12px;
}

.domain-price-breakdown {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	padding: 8px 12px;
	background: rgba(57, 255, 20, 0.08);
	border-radius: 6px;
	border: 1px solid rgba(57, 255, 20, 0.2);
}

.domain-price-original,
.domain-price-profit,
.domain-price-final-usd {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.domain-price-label {
	color: rgba(57, 255, 20, 0.8);
	font-weight: 500;
}

.domain-price-value {
	color: var(--lime-green);
	font-weight: 600;
}

.domain-price-main-wrapper {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.domain-price {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	background: rgba(57, 255, 20, 0.15);
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid var(--lime-green);
}

.domain-price-amount {
	font-size: 28px;
	font-weight: 700;
	color: var(--lime-green);
	line-height: 1;
}

.domain-price-currency {
	font-size: 16px;
	font-weight: 600;
	color: var(--lime-green);
	opacity: 0.9;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.domain-price-period {
	font-size: 14px;
	color: var(--text-gray);
	font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.spinner-icon {
	animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
	.domain-checker-section {
		padding: 60px 16px;
	}

	.domain-checker-title {
		font-size: 36px;
	}

	.domain-checker-subtitle {
		font-size: 16px;
	}

	.domain-checker-form-wrapper {
		padding: 24px;
	}

	.domain-input-group {
		flex-direction: column;
	}

	.domain-extension-select {
		width: 100%;
	}

	.domain-check-button {
		width: 100%;
	}

	.domain-result {
		flex-wrap: wrap;
	}

	.domain-result-action {
		margin-left: 0;
		margin-top: 16px;
		width: 100%;
	}

	.domain-checkout-button {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.domain-checker-title {
		font-size: 28px;
	}

	.domain-checker-form-wrapper {
		padding: 20px;
	}

	.domain-input,
	.domain-extension-select {
		padding: 16px 20px;
		font-size: 15px;
	}

	.domain-check-button {
		padding: 16px 24px;
		font-size: 15px;
	}

	.domain-price-amount {
		font-size: 24px;
	}

	.domain-price-currency {
		font-size: 14px;
	}

	.domain-price-period {
		font-size: 13px;
	}

	.domain-price {
		padding: 6px 12px;
	}

	.why-choose-title,
	.portfolio-title {
		font-size: 28px;
	}

	.why-choose-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.portfolio-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================
   Why Choose Us Section
   ============================================ */

.why-choose-section {
	position: relative;
	background: var(--dark-bg);
	padding: 100px 40px;
	overflow: hidden;
}

.why-choose-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 20% 50%, rgba(57, 255, 20, 0.08) 0%, transparent 50%),
				radial-gradient(circle at 80% 80%, rgba(57, 255, 20, 0.08) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.why-choose-container {
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.why-choose-header {
	text-align: center;
	margin-bottom: 80px;
}

.why-choose-title {
	font-size: 48px;
	font-weight: 700;
	color: var(--text-white);
	margin: 0 0 20px 0;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.why-choose-subtitle {
	font-size: 18px;
	color: var(--text-gray);
	margin: 0;
	font-weight: 400;
	line-height: 1.6;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.why-choose-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.why-choose-card {
	background: var(--dark-bg-secondary);
	border: 1px solid var(--border-dark);
	border-radius: 16px;
	padding: 40px 30px;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.why-choose-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--lime-green);
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.why-choose-card:hover {
	transform: translateY(-8px);
	border-color: var(--lime-green);
	box-shadow: 0 20px 40px rgba(57, 255, 20, 0.15);
}

.why-choose-card:hover::before {
	transform: scaleX(1);
}

.why-choose-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	background: rgba(57, 255, 20, 0.1);
	border: 2px solid var(--lime-green);
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--lime-green);
	transition: all 0.3s ease;
}

.why-choose-icon svg {
	width: 32px;
	height: 32px;
	stroke: currentColor;
}

.why-choose-icon i {
	font-size: 32px;
}

.why-choose-card:hover .why-choose-icon {
	background: var(--lime-green);
	color: #000;
	transform: scale(1.1) rotate(5deg);
}

.why-choose-card-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--text-white);
	margin: 0 0 16px 0;
}

.why-choose-card-text {
	font-size: 15px;
	color: var(--text-gray);
	margin: 0;
	line-height: 1.6;
}

/* ============================================
   Portfolio Section
   ============================================ */

.portfolio-section {
	position: relative;
	background: var(--dark-bg);
	padding: 100px 40px;
	overflow: hidden;
}

.portfolio-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(circle at 50% 20%, rgba(57, 255, 20, 0.08) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.portfolio-container {
	max-width: 1400px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

.portfolio-header {
	text-align: center;
	margin-bottom: 80px;
}

.portfolio-title {
	font-size: 48px;
	font-weight: 700;
	color: var(--text-white);
	margin: 0 0 20px 0;
	line-height: 1.2;
	letter-spacing: -0.5px;
}

.portfolio-subtitle {
	font-size: 18px;
	color: var(--text-gray);
	margin: 0;
	font-weight: 400;
	line-height: 1.6;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	margin-bottom: 60px;
}

.portfolio-item {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	background: var(--dark-bg-secondary);
	border: 1px solid var(--border-dark);
}

.portfolio-item:hover {
	transform: translateY(-12px);
	border-color: var(--lime-green);
	box-shadow: 0 20px 60px rgba(57, 255, 20, 0.2);
}

.portfolio-image-wrapper {
	position: relative;
	width: 100%;/* Slightly taller aspect ratio */
	overflow: hidden;
	background: var(--dark-bg);
}

.portfolio-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-image {
	transform: scale(1.15);

}

.portfolio-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.3) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	display: flex;
	align-items: flex-end;
	padding: 35px;
}

.portfolio-item:hover .portfolio-overlay {
	opacity: 1;
}

.portfolio-content {
	width: 100%;
	transform: translateY(30px);
	padding-top: 30px;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-content {
	transform: translateY(25px);
}

.portfolio-category {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: var(--lime-green);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 12px;
	padding: 6px 14px;
	background: rgba(57, 255, 20, 0.15);
	border-radius: 25px;
	border: 1px solid var(--lime-green);
}

.portfolio-item-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--text-white);
	margin: 0 0 16px 0;
	line-height: 1.3;
}

.portfolio-item-description {
	font-size: 15px;
	color: var(--text-gray);
	line-height: 1.6;
	margin: 0 0 20px 0;
	opacity: 0.9;
}

.portfolio-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--lime-green);
	border-radius: 50%;
	color: #000;
	transition: all 0.3s ease;
	margin-top: 8px;
	font-size: 18px;
}

.portfolio-link i {
	transition: transform 0.3s ease;
}

.portfolio-link:hover {
	transform: scale(1.15);
	box-shadow: 0 6px 25px rgba(57, 255, 20, 0.5);
}

.portfolio-link:hover i {
	transform: translateX(3px);
}

/* Portfolio Card Info (Below Image) */
.portfolio-card-info {
	padding: 28px;
	background: var(--dark-bg-secondary);
}

.portfolio-card-category {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: var(--lime-green);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 12px;
	padding: 6px 14px;
	background: rgba(57, 255, 20, 0.15);
	border-radius: 25px;
	border: 1px solid var(--lime-green);
}

.portfolio-card-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-white);
	margin: 0 0 12px 0;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-card-title {
	color: var(--lime-green);
}

.portfolio-card-description {
	font-size: 14px;
	color: var(--text-gray);
	line-height: 1.6;
	margin: 0;
	opacity: 0.85;
}

.portfolio-cta {
	text-align: center;
	margin-top: 60px;
}

.portfolio-load-more {
	padding: 16px 40px;
	background: transparent;
	border: 2px solid var(--lime-green);
	border-radius: 12px;
	color: var(--lime-green);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.portfolio-load-more:hover {
	background: var(--lime-green);
	color: #000;
	transform: translateY(-2px);
	box-shadow: 0 6px 30px rgba(57, 255, 20, 0.3);
}

/* Responsive Portfolio */
@media (max-width: 1024px) {
	.why-choose-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.portfolio-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.why-choose-section,
	.portfolio-section {
		padding: 60px 20px;
	}

	.why-choose-header,
	.portfolio-header {
		margin-bottom: 50px;
	}

	.why-choose-title,
	.portfolio-title {
		font-size: 36px;
	}

	.why-choose-subtitle,
	.portfolio-subtitle {
		font-size: 16px;
	}

	.why-choose-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.portfolio-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.why-choose-card {
		padding: 30px 24px;
	}

	.portfolio-overlay {
		padding: 24px;
	}

	.portfolio-card-info {
		padding: 20px;
	}

	.portfolio-card-title {
		font-size: 20px;
	}

	.portfolio-card-description {
		font-size: 13px;
	}
}

/* Domain Checker Details Table Styles */
.ddc-details-table-wrapper {
	margin-top: 24px;
	overflow-x: auto;
}

.ddc-details-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ddc-details-table thead {
	background: #f8f9fa;
}

.ddc-details-table th {
	padding: 12px 16px;
	text-align: left;
	font-weight: 600;
	font-size: 14px;
	color: #1a1a1a;
	border-bottom: 2px solid #e9ecef;
}

.ddc-details-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
	font-size: 14px;
	color: #495057;
}

.ddc-details-table tbody tr:last-child td {
	border-bottom: none;
}

.ddc-details-table tbody tr:hover {
	background: #f8f9fa;
}

.ddc-details-table td strong {
	color: #1a1a1a;
	font-weight: 600;
}

.ddc-toggle-xml {
	color: #007bff;
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
	display: inline-block;
	margin-top: 8px;
}

.ddc-toggle-xml:hover {
	color: #0056b3;
	text-decoration: underline;
}

.ddc-raw-xml-content {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	padding: 16px;
	margin-top: 12px;
	font-family: 'Courier New', monospace;
	font-size: 12px;
	line-height: 1.6;
	color: #495057;
	overflow-x: auto;
	white-space: pre-wrap;
	word-wrap: break-word;
	max-height: 400px;
	overflow-y: auto;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.ddc-details-table {
		background: #1a1a1a;
		color: #e9ecef;
	}

	.ddc-details-table thead {
		background: #2d2d2d;
	}

	.ddc-details-table th {
		color: #e9ecef;
		border-bottom-color: #3d3d3d;
	}

	.ddc-details-table td {
		color: #d0d0d0;
		border-bottom-color: #3d3d3d;
	}

	.ddc-details-table tbody tr:hover {
		background: #2d2d2d;
	}

	.ddc-details-table td strong {
		color: #e9ecef;
	}

	.ddc-raw-xml-content {
		background: #2d2d2d;
		border-color: #3d3d3d;
		color: #d0d0d0;
	}
}

