/**
 * Subscriber Downloads Styles
 *
 * @package SubscriberDownloads
 */

/* Container */
.sd-downloads-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* Header */
.sd-header {
	margin-bottom: 40px;
	text-align: center;
}

.sd-title {
	font-size: 2em;
	margin-bottom: 10px;
	color: #333;
}

.sd-description {
	font-size: 1.1em;
	color: #666;
	margin: 0;
}

/* Messages */
.sd-message {
	padding: 20px;
	border-radius: 4px;
	text-align: center;
	margin: 20px 0;
}

.sd-login-required,
.sd-access-denied {
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	color: #856404;
}

.sd-no-products {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	color: #6c757d;
}

/* Products Grid */
.sd-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

/* Product Card */
.sd-product-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.sd-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sd-product-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background-color: #f5f5f5;
}

.sd-product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.sd-product-content {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.sd-product-title {
	font-size: 1.3em;
	margin: 0 0 10px 0;
	color: #333;
}

.sd-product-description {
	font-size: 0.95em;
	color: #666;
	margin-bottom: 15px;
	flex: 1;
	line-height: 1.6;
}

.sd-product-description p {
	margin: 0 0 10px 0;
}

.sd-product-description p:last-child {
	margin-bottom: 0;
}

/* Download Section */
.sd-product-downloads {
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
}

/* Buttons */
.sd-button {
	display: inline-block;
	padding: 12px 24px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	font-size: 1em;
}

.sd-button-primary {
	background-color: #0073aa;
	color: #fff;
}

.sd-button-primary:hover {
	background-color: #005a87;
	color: #fff;
}

.sd-button-download {
	background-color: #28a745;
	color: #fff;
	width: 100%;
}

.sd-button-download:hover {
	background-color: #218838;
	color: #fff;
}

/* Dropdown */
.sd-download-dropdown {
	position: relative;
	width: 100%;
}

.sd-dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.sd-dropdown-arrow {
	font-size: 0.8em;
	transition: transform 0.3s ease;
}

.sd-dropdown-menu.sd-active .sd-dropdown-arrow {
	transform: rotate(180deg);
}

.sd-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	margin-top: 5px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	list-style: none;
	padding: 0;
	margin-bottom: 0;
}

.sd-dropdown-menu.sd-active {
	display: block;
}

.sd-dropdown-item {
	display: block;
	padding: 12px 20px;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.sd-dropdown-item:last-child {
	border-bottom: none;
}

.sd-dropdown-item:hover {
	background-color: #f8f9fa;
	color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
	.sd-downloads-container {
		padding: 15px;
	}
	
	.sd-title {
		font-size: 1.5em;
	}
	
	.sd-description {
		font-size: 1em;
	}
	
	.sd-products-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.sd-product-image {
		height: 180px;
	}
	
	.sd-product-content {
		padding: 15px;
	}
}

@media (max-width: 480px) {
	.sd-downloads-container {
		padding: 10px;
	}
	
	.sd-header {
		margin-bottom: 30px;
	}
	
	.sd-title {
		font-size: 1.3em;
	}
	
	.sd-product-image {
		height: 160px;
	}
}


