/*
Theme Name:         Wereshop Classima Child
Theme URI:          https://wereshop.com
Author:             Wereshop Team
Author URI:         https://wereshop.com
Description:        A child theme for Classima designed for Wereshop - Global Marketplace for Agro Products with credit-based listing system
Version:            1.0.0
Requires at least:  5.0
Requires PHP:       7.4
Template:           classima
Text Domain:        wereshop-classima-child
Domain Path:        /languages
License:            GPLv2 or later
License URI:        https://www.gnu.org/licenses/gpl-2.0.html
*/

/* Import parent theme styles */
@import url('../classima/style.css');

/* Wereshop Custom Styles */

:root {
	--wereshop-primary: #00d4ff;
	--wereshop-secondary: #0099cc;
	--wereshop-accent: #28a745;
	--wereshop-danger: #dc3545;
	--wereshop-dark: #1a1a1a;
	--wereshop-light: #f5f5f5;
}

/* Header Customization */
.site-header {
	background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 153, 204, 0.05) 100%);
	border-bottom: 2px solid var(--wereshop-primary);
}

.site-branding h1 a {
	color: var(--wereshop-primary);
	font-weight: 700;
}

/* Credits Display */
.user-credits-display {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: linear-gradient(135deg, var(--wereshop-primary) 0%, var(--wereshop-secondary) 100%);
	color: white;
	border-radius: 4px;
	font-weight: bold;
	font-size: 14px;
}

.user-credits-display .credits-icon {
	font-size: 18px;
}

/* Buttons */
.btn-primary,
.button-primary,
a.button-primary {
	background: linear-gradient(135deg, var(--wereshop-primary) 0%, var(--wereshop-secondary) 100%);
	border: none;
	color: white;
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: bold;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.btn-primary:hover,
.button-primary:hover,
a.button-primary:hover {
	background: linear-gradient(135deg, var(--wereshop-secondary) 0%, #0077a8 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.btn-success,
.button-success {
	background: var(--wereshop-accent);
	border: none;
	color: white;
	padding: 12px 24px;
	border-radius: 4px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.btn-success:hover,
.button-success:hover {
	background: #219653;
	transform: translateY(-2px);
}

/* Dashboard Styles */
.wereshop-dashboard {
	max-width: 1200px;
	margin: 40px auto;
	padding: 20px;
}

.dashboard-header {
	background: linear-gradient(135deg, var(--wereshop-primary) 0%, var(--wereshop-secondary) 100%);
	color: white;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.dashboard-header h1 {
	margin: 0;
	color: white;
}

.credits-balance {
	font-size: 32px;
	font-weight: bold;
	color: white;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.dashboard-card {
	background: white;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.dashboard-card:hover {
	box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
	transform: translateY(-5px);
}

.dashboard-card h3 {
	margin-top: 0;
	color: var(--wereshop-primary);
	font-size: 18px;
}

.dashboard-card p {
	color: #666;
	margin: 10px 0;
}

/* Listings Grid */
.listings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin: 20px 0;
}

.listing-card {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.listing-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-5px);
}

.listing-card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f0f0f0;
}

.listing-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.listing-card-content {
	padding: 15px;
}

.listing-card-content h3 {
	margin: 0 0 10px 0;
	font-size: 16px;
}

.listing-card-content h3 a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.listing-card-content h3 a:hover {
	color: var(--wereshop-primary);
}

.listing-card-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 10px 0;
	font-size: 12px;
	color: #999;
}

.listing-card-price {
	font-size: 18px;
	font-weight: bold;
	color: var(--wereshop-accent);
	margin: 10px 0;
}

/* Forms */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
	color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
	outline: none;
	border-color: var(--wereshop-primary);
	box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 150px;
}

/* Breadcrumbs */
.breadcrumbs {
	background: var(--wereshop-light);
	padding: 15px 0;
	margin-bottom: 30px;
}

.breadcrumbs a {
	color: var(--wereshop-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.breadcrumbs a:hover {
	color: var(--wereshop-secondary);
}

/* Pagination */
.pagination {
	text-align: center;
	margin: 30px 0;
}

.pagination a,
.pagination span {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 2px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: var(--wereshop-primary);
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination a:hover {
	background: var(--wereshop-primary);
	color: white;
	border-color: var(--wereshop-primary);
}

.pagination .current {
	background: var(--wereshop-primary);
	color: white;
	border-color: var(--wereshop-primary);
}

/* Alerts */
.alert {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
	border-left: 4px solid;
}

.alert-info {
	background: #e7f3ff;
	border-color: var(--wereshop-primary);
	color: #0066cc;
}

.alert-success {
	background: #e8f5e9;
	border-color: var(--wereshop-accent);
	color: #2e7d32;
}

.alert-warning {
	background: #fff3e0;
	border-color: #ff9800;
	color: #e65100;
}

.alert-danger {
	background: #ffebee;
	border-color: var(--wereshop-danger);
	color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
	.dashboard-header {
		flex-direction: column;
		text-align: center;
	}

	.dashboard-grid {
		grid-template-columns: 1fr;
	}

	.listings-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	.form-group input,
	.form-group textarea,
	.form-group select {
		font-size: 16px;
	}
}
