/**
 * VWT Public Styles
 *
 * Verwendet CSS Custom Properties (--vwt-primary etc.)
 * die via wp_add_inline_style() gesetzt werden.
 *
 * @package VWT_Core
 */

/* === Base === */
.vwt-account-wrapper,
.vwt-profile-wrapper,
.vwt-form-container {
	max-width: 560px;
	margin: 0 auto;
	padding: 0 16px;
}

/* === Tabs === */
.vwt-tabs,
.vwt-profile-tabs {
	display: flex;
	border-bottom: 2px solid #e0e0e0;
	margin-bottom: 24px;
	gap: 0;
}

.vwt-tab {
	padding: 10px 20px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	color: #666;
	transition: color 0.2s, border-color 0.2s;
}

.vwt-tab:hover {
	color: #333;
}

.vwt-tab.active {
	color: var(--vwt-primary, #2c8c99);
	border-bottom-color: var(--vwt-primary, #2c8c99);
}

.vwt-tab-content {
	display: none;
}

.vwt-tab-content.active {
	display: block;
}

/* === Forms === */
.vwt-form {
	margin-top: 8px;
}

.vwt-field {
	margin-bottom: 16px;
}

.vwt-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.vwt-field input[type="text"],
.vwt-field input[type="email"],
.vwt-field input[type="password"],
.vwt-field input[type="tel"],
.vwt-field input[type="url"],
.vwt-field input[type="search"],
.vwt-field textarea,
.vwt-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.5;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.vwt-field input:focus,
.vwt-field textarea:focus,
.vwt-field select:focus {
	outline: none;
	border-color: var(--vwt-primary, #2c8c99);
	box-shadow: 0 0 0 2px rgba(44, 140, 153, 0.15);
}

.vwt-field input.vwt-error {
	border-color: #dc3545;
}

.vwt-field .vwt-field-error {
	color: #dc3545;
	font-size: 13px;
	margin-top: 4px;
}

.vwt-field .vwt-help {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 4px;
}

.vwt-optional {
	font-weight: 400;
	color: #999;
	font-size: 13px;
}

/* === Field Rows === */
.vwt-field-row {
	display: flex;
	gap: 12px;
}

.vwt-field-row .vwt-field {
	flex: 1;
}

/* === Checkbox === */
.vwt-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	font-weight: 400 !important;
}

.vwt-checkbox input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.vwt-field-inline {
	margin-bottom: 20px;
}

/* === Buttons === */
.vwt-btn {
	display: inline-block;
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.2s, opacity 0.2s;
	line-height: 1.4;
}

.vwt-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.vwt-btn-primary {
	background-color: var(--vwt-primary, #2c8c99);
	color: #fff;
	width: 100%;
}

.vwt-btn-primary:hover:not(:disabled) {
	opacity: 0.9;
}

.vwt-btn-outline {
	background: transparent;
	border: 1px solid var(--vwt-primary, #2c8c99);
	color: var(--vwt-primary, #2c8c99);
}

.vwt-btn-outline:hover {
	background-color: var(--vwt-primary, #2c8c99);
	color: #fff;
}

.vwt-btn-sm {
	padding: 6px 16px;
	font-size: 13px;
}

.vwt-btn-danger {
	background-color: #dc3545;
	color: #fff;
}

.vwt-btn-danger:hover:not(:disabled) {
	background-color: #c82333;
}

/* === Messages / Notices === */
.vwt-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.5;
}

.vwt-message-success,
.vwt-notice-success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.vwt-message-error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.vwt-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
}

/* === Profile === */
.vwt-profile-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.vwt-profile-header h2 {
	margin: 0;
}

.vwt-divider {
	border: none;
	border-top: 1px solid #e0e0e0;
	margin: 32px 0;
}

.vwt-danger-text {
	color: #dc3545;
	font-size: 14px;
}

/* === Links === */
.vwt-form-link {
	text-align: center;
	margin-top: 16px;
}

.vwt-form-link a {
	color: var(--vwt-primary, #2c8c99);
	text-decoration: none;
}

.vwt-form-link a:hover {
	text-decoration: underline;
}

/* === Empty State === */
.vwt-empty {
	text-align: center;
	color: #888;
	padding: 40px 16px;
	font-size: 15px;
}

/* === Responsive === */
@media screen and (max-width: 480px) {
	.vwt-field-row {
		flex-direction: column;
		gap: 0;
	}

	.vwt-tab {
		padding: 8px 12px;
		font-size: 13px;
	}
}
