/* Filename: assets/css/frontend.css */

:root {
	--am-primary: #F5A623;
	--am-primary-dark: #e0961d;
	--am-secondary: #3a3a3a;
	--am-bg: #fdfdfd;
	--am-white: #ffffff;
	--am-text: #2d3436;
	--am-text-muted: #636e72;
	--am-border: #f1f2f6;
	--am-shadow: 0 10px 30px rgba(0,0,0,0.05);
	--am-radius: 12px;
	--am-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.audition-manager-wrap {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 600px;
	box-shadow: var(--am-shadow);
	background: var(--am-white);
	position: relative;
	margin: 60px auto;
	width: 100%;
	max-width: 1200px;
	clear: both;
	border-radius: var(--am-radius);
	overflow: hidden;
	border: 1px solid var(--am-border);
}

.am-container {
	display: block;
	min-height: 600px;
}

/* Main Content Styling */
.am-content {
	width: 100%;
	background: var(--am-bg);
	padding: 0;
	position: relative;
}

/* Tabs Navigation */
.am-tabs-nav {
	background: var(--am-white);
	padding: 0 20px;
	border-bottom: 1px solid var(--am-border);
}

.am-tabs-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 10px;
}

.am-tabs-nav li {
	padding: 20px 25px;
	cursor: pointer;
	color: var(--am-text-muted);
	font-weight: 600;
	font-size: 15px;
	transition: var(--am-transition);
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.am-tabs-nav li .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	opacity: 0.7;
}

.am-tabs-nav li:hover {
	color: var(--am-primary);
}

.am-tabs-nav li.active {
	color: var(--am-primary);
}

.am-tabs-nav li.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--am-primary);
	border-radius: 3px 3px 0 0;
}

.am-tab-pane {
	display: none;
	padding: 40px;
	animation: fadeIn 0.4s ease-out;
}

/* Responsive Styling */
@media (max-width: 768px) {
	.am-tabs-nav {
		padding: 0;
	}

	.am-tabs-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.am-tabs-nav li {
		padding: 15px 20px;
		border-bottom: 1px solid var(--am-border);
		width: 100%;
		justify-content: flex-start;
	}

	.am-tabs-nav li:last-child {
		border-bottom: none;
	}

	.am-tabs-nav li.active::after {
		bottom: 0;
		left: 0;
		right: auto;
		top: 0;
		width: 4px;
		height: 100%;
		border-radius: 0;
	}

	.am-tab-pane {
		padding: 20px;
	}

	.am-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.am-category-filter {
		gap: 8px;
	}

	.am-category-filter button {
		padding: 8px 16px;
		font-size: 13px;
	}
}

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

.am-tab-pane.active {
	display: block;
}

/* Rules Content Styling */
.am-rules-content {
	line-height: 1.8;
	color: var(--am-text-muted);
}

.am-rules-content h2, .am-rules-content h3 {
	color: var(--am-text);
	margin-top: 30px;
	margin-bottom: 15px;
}

.am-rules-content p {
	margin-bottom: 20px;
}

.am-rules-content ul, .am-rules-content ol {
	margin-bottom: 25px;
	padding-left: 20px;
}

.am-rules-content li {
	margin-bottom: 10px;
}

/* Category Filter */
.am-category-filter {
	margin-bottom: 35px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.am-category-filter button {
	padding: 10px 24px;
	border: 1px solid var(--am-border);
	background: var(--am-white);
	color: var(--am-text-muted);
	border-radius: 30px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	transition: var(--am-transition);
	box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.am-category-filter button:hover {
	border-color: var(--am-primary);
	color: var(--am-primary);
}

.am-category-filter button.active {
	background: var(--am-primary);
	color: var(--am-white);
	border-color: var(--am-primary);
	box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

/* Submission Grid */
.am-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 30px;
	transition: opacity 0.3s ease;
}

/* Pagination */
.am-pagination-wrap {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.am-pagination {
	display: flex;
	gap: 10px;
}

.am-page-link {
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--am-border);
	background: var(--am-white);
	color: var(--am-text);
	border-radius: 50%;
	cursor: pointer;
	font-weight: 600;
	transition: var(--am-transition);
}

.am-page-link:hover {
	border-color: var(--am-primary);
	color: var(--am-primary);
}

.am-page-link.active {
	background: var(--am-primary);
	color: var(--am-white);
	border-color: var(--am-primary);
	box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.am-card {
	background: var(--am-white);
	border-radius: var(--am-radius);
	overflow: hidden;
	border: 1px solid var(--am-border);
	transition: var(--am-transition);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.am-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 15px 35px rgba(0,0,0,0.08);
	border-color: rgba(245, 166, 35, 0.2);
}

.am-card-thumb {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	background: #eee;
	cursor: pointer;
	overflow: hidden;
}

.am-card-thumb img {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.am-card:hover .am-card-thumb img {
	transform: scale(1.05);
}

.am-play-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: var(--am-transition);
}

.am-play-overlay svg {
	width: 70px;
	height: auto;
	filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
	transition: var(--am-transition);
}

.am-card:hover .am-play-overlay svg {
	transform: scale(1.15);
}

.am-card-info {
	padding: 25px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.am-card-info h3 {
	margin: 0 0 15px;
	font-size: 18px;
	font-weight: 700;
	color: var(--am-text);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 2.8em;
}

.am-card-info p {
	margin: 8px 0;
	font-size: 14px;
	color: var(--am-text-muted);
	display: flex;
	justify-content: space-between;
}

.am-card-info p strong {
	color: var(--am-text);
}

/* Form Styles */
.am-form-group {
	margin-bottom: 25px;
}

.am-form-group label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	font-size: 14px;
	color: var(--am-text);
}

.am-form-group input[type="text"],
.am-form-group input[type="email"],
.am-form-group input[type="tel"],
.am-form-group input[type="url"],
.am-form-group input[type="number"],
.am-form-group select,
.am-form-group textarea {
	width: 100%;
	padding: 14px 18px;
	border: 1px solid var(--am-border);
	border-radius: 8px;
	background: var(--am-white);
	font-size: 15px;
	transition: var(--am-transition);
	box-sizing: border-box;
}

.am-form-group input:focus,
.am-form-group select:focus,
.am-form-group textarea:focus {
	border-color: var(--am-primary);
	outline: none;
	box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}

.am-radio-group {
	display: flex;
	gap: 25px;
	margin-top: 10px;
}

.am-radio-item {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.am-submit-btn {
	background: var(--am-primary);
	color: var(--am-white);
	padding: 16px 40px;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: var(--am-transition);
	box-shadow: 0 5px 15px rgba(245, 166, 35, 0.3);
}

.am-submit-btn:hover {
	background: var(--am-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(245, 166, 35, 0.4);
}

.am-submit-btn:disabled {
	background: #dfe6e9;
	color: #b2bec3;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

/* Lightbox Styling */
.am-lightbox {
	display: none;
	position: fixed;
	z-index: 999999;
	left: 0; top: 0; width: 100%; height: 100%;
	background: rgba(0,0,0,0.95);
	backdrop-filter: blur(5px);
}

.am-lightbox-content {
	position: relative;
	width: 95%;
	max-width: 1200px;
	margin: 10vh auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.am-lightbox-close {
	position: absolute;
	right: 10px; top: 10px;
	color: var(--am-white);
	font-size: 32px;
	cursor: pointer;
	z-index: 101;
	transition: var(--am-transition);
	background: rgba(0,0,0,0.5);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.am-lightbox-close:hover {
	transform: rotate(90deg);
	color: var(--am-primary);
}

#am-video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
	width: 100%;
}

#am-video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Responsive Fixes */
@media (max-width: 600px) {
	.am-tabs-nav ul {
		flex-wrap: wrap;
		gap: 0;
	}
	.am-tabs-nav li {
		flex: 1 1 50%;
		padding: 15px;
		justify-content: center;
		font-size: 13px;
	}
	.am-tab-pane {
		padding: 25px;
	}
	.am-grid {
		grid-template-columns: 1fr;
	}
}
\n.error-msg {
	color: #e74c3c;
	font-size: 13px;
	margin-top: 5px;
	font-weight: 500;
	animation: amShake 0.4s ease-in-out;
}

@keyframes amShake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	50% { transform: translateX(5px); }
	75% { transform: translateX(-5px); }
}

input:invalid {
	border-color: #e74c3c !important;
}
" \n.am-closed-msg {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: var(--am-radius);
	border: 2px dashed var(--am-border);
}

.am-closed-msg h3 {
	color: var(--am-text);
	font-size: 24px;
	margin-bottom: 15px;
}

.am-closed-msg p {
	color: var(--am-text-muted);
	font-size: 16px;
}
" 