/**
 * Gutenberg Toolkit - Public/Shared Styles
 *
 * Defines the styles for the Kabook Gutenberg Toolkit module.
 * These styles are scoped to the .kabook-toolkit-modal class to prevent
 * conflicts with core WordPress styles or other plugins.
 *
 * @package    Kabook_Editor_Tools
 * @subpackage Kabook_Editor_Tools/modules/gutenberg-toolkit/assets
 * @author     Kabook
 * @license    GPL-2.0+
 */

/* ==========================================================================
   1. Modal Header & Container
   ========================================================================== */

.kabook-toolkit-modal .components-modal__header {
	background: linear-gradient(135deg, #005bea 0%, #00c6fb 100%);
	border-bottom: none;
}

.kabook-toolkit-modal .components-modal__header-heading {
	color: #fff;
	font-size: 1.2rem;
	font-weight: 600;
}

.kabook-toolkit-modal .components-button[aria-label="Close"] {
	color: #fff;
}

.kabook-toolkit-modal .components-button[aria-label="Close"]:hover {
	background: rgba(255, 255, 255, 0.2);
}

.kabook-toolkit-modal .components-modal__content {
	padding: 20px;
	background: #f9f9f9;
}

/* ==========================================================================
   2. Grid Layout for Buttons
   ========================================================================== */

.kabook-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

/* ==========================================================================
   3. Button Styling in Grid
   ========================================================================== */

.kabook-tools-grid button.components-button {
	justify-content: center;
	height: auto;
	padding: 12px 10px;
	text-align: center;
	white-space: normal;
	border: 1px solid #e0e0e0;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
}

.kabook-tools-grid button.components-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	border-color: #005bea;
	color: #005bea;
}

/* ==========================================================================
   4. Section Headers
   ========================================================================== */

.kabook-section-title {
	font-size: 13px;
	text-transform: uppercase;
	color: #888;
	margin: 0 0 10px 0;
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
	font-weight: 600;
	letter-spacing: 0.5px;
}

/* ==========================================================================
   5. Media Form Styling
   ========================================================================== */

.kabook-media-form {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}