/**
 * AAMSI GeoDirectory Subscription Integration - Frontend Styles
 *
 * @package AAMSI_GD_Sub_Integration
 * @since 1.0.0
 */

/* ==========================================
   My Account Page Customizations
   ========================================== */

/* Hide My Account page title */
.woocommerce-account .entry-title,
.woocommerce-account .page-title,
.woocommerce-account h1.entry-title,
body.woocommerce-account .entry-header .entry-title,
body.woocommerce-account .fl-post-title,
.woocommerce-account .fl-post-header .fl-post-title {
	display: none !important;
}

/* ==========================================
   Navigation Menu Buttons
   ========================================== */

.aamsi-menu-button {
	margin-left: 0;
}

.aamsi-button {
	display: inline-block;
	padding: 0.6em 1.25em !important;
	font-weight: 600;
	text-decoration: none;
	border-radius: 30px;
	transition: all 0.3s ease;
}

/* Get Listed Button (Primary) */
.aamsi-button-primary {
	background-color: #10217D;
	color: #effbfc !important;
	border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.aamsi-button-primary:hover {
	background-color: #16C2D5;
	color: #ffffff !important;
}

/* My Account Button (Secondary) */
.aamsi-button-secondary {
	background-color: #10217D;
	color: #effbfc !important;
	border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.aamsi-button-secondary:hover {
	background-color: #16C2D5;
	color: #ffffff !important;
}

/* ==========================================
   My Account Menu Items
   ========================================== */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-agent-profile a::before,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--add-agent-profile a::before {
	content: "\f007";
	/* User icon */
	font-family: FontAwesome;
	margin: 0 0.5em;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--activate-agent-profile a::before {
	content: "\f05d";
	/* Star icon */
	font-family: FontAwesome;
	margin: 0 0.5em;
}

/* Agent Profile Messages */
.aamsi-profile-message {
	margin: 1em 0;
	padding: 1em;
	border-left: 3px solid #2c3e50;
	background-color: #f8f9fa;
}

.aamsi-profile-message.success {
	border-left-color: #27ae60;
	background-color: #d4edda;
}

.aamsi-profile-message.error {
	border-left-color: #e74c3c;
	background-color: #f8d7da;
}

.aamsi-profile-message.info {
	border-left-color: #3498db;
	background-color: #d1ecf1;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
	.aamsi-profile-message {
		padding: 0.75em;
		font-size: 0.95em;
	}
}

/* ==========================================
   Get Listed Modal
   ========================================== */

.aamsi-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aamsi-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(5px);
}

.aamsi-modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 12px;
	max-width: 700px;
	width: 90%;
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: aamsiModalSlideIn 0.4s ease-out;
}

@keyframes aamsiModalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-50px) scale(0.9);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.aamsi-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	z-index: 10;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aamsi-modal-close:hover {
	background: #10217D;
	color: #ffffff;
	transform: rotate(90deg);
}

.aamsi-modal-inner {
	display: flex;
	flex-wrap: wrap;
	padding: 2em;
	gap: 2em;
}

.aamsi-modal-image {
	flex: 0 0 auto;
	text-align: center;
	padding: 1em;
}

.aamsi-modal-photo-circle {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	overflow: hidden;
	margin: 0 auto 1em;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aamsi-modal-photo-circle img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aamsi-modal-title {
	font-size: 1.8em;
	font-weight: 700;
	color: #10217D;
	margin: 0;
	line-height: 1.3;
}

.aamsi-modal-text {
	flex: 1;
	min-width: 250px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.aamsi-modal-text p {
	font-size: 1.05em;
	line-height: 1.6;
	color: #333;
	margin: 0 0 1.5em 0;
}

.aamsi-modal-button {
	display: inline-block;
	background-color: #10217D;
	color: #ffffff !important;
	padding: 0.8em 2em;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	font-size: 1.1em;
	transition: all 0.3s ease;
	align-self: flex-start;
	border: 2px solid #10217D;
}

.aamsi-modal-button:hover {
	background-color: #effbfc;
	color: #10217D !important;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(16, 33, 125, 0.3);
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
	.aamsi-modal-inner {
		flex-direction: column;
		padding: 1.5em;
		gap: 1em;
	}

	.aamsi-modal-image {
		padding: 0;
	}

	.aamsi-modal-photo-circle {
		width: 120px;
		height: 120px;
	}

	.aamsi-modal-title {
		font-size: 1.5em;
	}

	.aamsi-modal-text p {
		font-size: 1em;
	}

	.aamsi-modal-button {
		width: 100%;
		text-align: center;
	}
}
