/**
 * Frontend Styles for Woo Custom Product Tabs & BeTheme Integration
 */

/* ==========================================================================
   1. BeTheme & WooCommerce Tab Navigation Bar Styling
   ========================================================================== */
.product_tabs_wrapper.fake-tabs {
	width: 100%;
	margin: 40px 0 30px;
	clear: both;
	position: relative;
}

.product_tabs_wrapper .fake-tabs-nav,
ul.fake-tabs-nav {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	list-style: none !important;
	padding: 0 !important;
	margin: 0 auto 35px auto !important;
	border-bottom: 2px solid #e2e8f0 !important;
	max-width: 1200px !important;
}

.product_tabs_wrapper .fake-tabs-nav li,
ul.fake-tabs-nav li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: inline-block !important;
}

.product_tabs_wrapper .fake-tabs-nav li a,
ul.fake-tabs-nav li a {
	display: inline-flex !important;
	align-items: center !important;
	padding: 12px 26px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #64748b !important;
	text-decoration: none !important;
	border: 0 !important;
	border-bottom: 3px solid transparent !important;
	margin-bottom: -2px !important;
	transition: all 0.2s ease-in-out !important;
	border-radius: 6px 6px 0 0 !important;
	background: transparent !important;
	letter-spacing: 0.3px !important;
}

.product_tabs_wrapper .fake-tabs-nav li a:hover {
	color: #115740 !important;
	background: rgba(17, 87, 64, 0.04) !important;
}

.product_tabs_wrapper .fake-tabs-nav li.active a,
ul.fake-tabs-nav li.active a {
	color: #115740 !important;
	border-bottom-color: #115740 !important;
	font-weight: 700 !important;
	background: rgba(17, 87, 64, 0.06) !important;
}

/* Tab Panels Switching */
.product_tabs_wrapper.fake-tabs .tab {
	display: none;
	width: 100%;
	clear: both;
}

.product_tabs_wrapper.fake-tabs .tab.active {
	display: block;
	animation: wctFadeIn 0.3s ease;
}

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

/* ==========================================================================
   2. Tab Content Wrapper (Aligned & Centered)
   ========================================================================== */
.wct-frontend-tab-content {
	width: 100%;
	max-width: 1080px;
	margin: 25px auto;
	padding: 0 15px;
	box-sizing: border-box;
	clear: both;
	font-family: inherit;
	color: #333333;
}

.wct-no-content {
	color: #777777;
	font-style: italic;
	text-align: center;
	margin: 20px 0;
}

/* ==========================================================================
   3. Files / PDF Downloads Cards
   ========================================================================== */
.wct-files-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
	margin: 15px auto;
	width: 100%;
	box-sizing: border-box;
}

.wct-file-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
	transition: all 0.25s ease-in-out;
	box-sizing: border-box;
}

.wct-file-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.wct-file-icon-box {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wct-file-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
	padding: 6px 10px;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.wct-file-details {
	flex: 1;
	min-width: 0;
}

.wct-file-title {
	margin: 0 0 4px 0 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #1e293b !important;
	word-break: break-word;
}

.wct-file-desc {
	margin: 0 0 6px 0 !important;
	font-size: 13px !important;
	color: #64748b !important;
	line-height: 1.4 !important;
}

.wct-file-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #94a3b8;
}

.wct-file-size {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #64748b;
}

.wct-file-ext {
	background: #f1f5f9;
	color: #475569;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
}

.wct-file-action {
	flex-shrink: 0;
}

.wct-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #115740;
	color: #ffffff !important;
	padding: 9px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.wct-download-btn:hover {
	background: #0d3e2e;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(17, 87, 64, 0.3);
}

.wct-download-btn svg {
	transition: transform 0.2s ease;
}

.wct-download-btn:hover svg {
	transform: translateY(2px);
}

/* ==========================================================================
   4. Videos Grid & Responsive Embeds
   ========================================================================== */
.wct-videos-grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 860px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.wct-video-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
	width: 100%;
	box-sizing: border-box;
}

.wct-video-title {
	margin: 0 0 16px 0 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	text-align: center;
}

.wct-video-wrapper {
	position: relative;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.wct-responsive-16-9 {
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
	height: 0;
}

.wct-responsive-16-9 iframe,
.wct-responsive-16-9 object,
.wct-responsive-16-9 embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.wct-video-player {
	width: 100%;
	height: auto;
	max-height: 480px;
	display: block;
}

.wct-video-description {
	margin-top: 14px;
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	text-align: center;
}

/* ==========================================================================
   5. FAQ Accordion
   ========================================================================== */
.wct-faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 900px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.wct-faq-item {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	transition: border-color 0.2s;
}

.wct-faq-item[open] {
	border-color: #115740;
	box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.wct-faq-question {
	padding: 14px 18px;
	font-weight: 600;
	font-size: 15px;
	color: #1e293b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
	list-style: none;
	user-select: none;
}

.wct-faq-question::-webkit-details-marker {
	display: none;
}

.wct-faq-icon {
	width: 18px;
	height: 18px;
	position: relative;
	flex-shrink: 0;
	margin-left: 10px;
}

.wct-faq-icon::before,
.wct-faq-icon::after {
	content: '';
	position: absolute;
	background-color: #64748b;
	transition: transform 0.25s ease;
}

.wct-faq-icon::before {
	top: 8px;
	left: 2px;
	right: 2px;
	height: 2px;
}

.wct-faq-icon::after {
	top: 2px;
	bottom: 2px;
	left: 8px;
	width: 2px;
}

.wct-faq-item[open] .wct-faq-icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

.wct-faq-answer {
	padding: 16px 18px;
	font-size: 14px;
	color: #334155;
	line-height: 1.6;
	border-top: 1px solid #e2e8f0;
	background: #ffffff;
}

.wct-faq-answer p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   6. Specs Table
   ========================================================================== */
.wct-table-responsive {
	max-width: 900px;
	margin: 0 auto;
	width: 100%;
	overflow-x: auto;
	box-sizing: border-box;
}

.wct-specs-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.wct-specs-table th,
.wct-specs-table td {
	padding: 12px 16px;
	font-size: 14px;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
}

.wct-specs-table tr:nth-child(even) {
	background-color: #f8fafc;
}

.wct-specs-table tr:last-child th,
.wct-specs-table tr:last-child td {
	border-bottom: none;
}

.wct-th-label {
	font-weight: 600;
	color: #1e293b;
	width: 35%;
	background-color: rgba(241, 245, 249, 0.6);
}

.wct-td-value {
	color: #475569;
}

/* ==========================================================================
   7. Responsive Mobile
   ========================================================================== */
@media (max-width: 768px) {
	.product_tabs_wrapper .fake-tabs-nav,
	ul.fake-tabs-nav {
		gap: 4px !important;
	}

	.product_tabs_wrapper .fake-tabs-nav li a,
	ul.fake-tabs-nav li a {
		padding: 10px 16px !important;
		font-size: 14px !important;
	}

	.wct-files-grid {
		grid-template-columns: 1fr;
	}

	.wct-file-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.wct-file-action {
		width: 100%;
	}

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

	.wct-video-card {
		padding: 14px;
	}

	.wct-th-label {
		width: 45%;
	}
}
