/*
Theme Name: Profstarter
Template: multistarter
Theme URI: https://coursde.org
Author: The Lab XL
Author URI: https://coursde.org
Description: A course-management block theme for coursde.org teachers. Includes Google Calendar sync, course scheduling, and enrollment management. Built on the Profstarter framework with bundled fonts, WooCommerce support, and 6 style variations.
Version: 1.0.1777038270
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: profstarter
Tags: block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-site-editing, one-column, two-columns, three-columns, wide-blocks, translation-ready
*/

/* Progressive enhancement — only things theme.json can't handle */

/* Smooth scrolling for anchor links */
html {
	scroll-behavior: smooth;
}

/* Better image defaults */
img {
	height: auto;
	max-width: 100%;
}

/* Selection color using theme palette */
::selection {
	background-color: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast);
}

/* Outline button style — theme.json only handles filled */
.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	border: 2px solid var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}

/* Table styling */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.wp-block-table td,
.wp-block-table th {
	border: 1px solid var(--wp--preset--color--contrast-3);
	padding: 0.5em 0.75em;
}

.wp-block-table thead {
	border-bottom: 2px solid var(--wp--preset--color--contrast);
}

/* Mobile hamburger menu button — bigger and easier to tap */
.wp-block-navigation__responsive-container-open {
	padding: 0.5em;
}

.wp-block-navigation__responsive-container-open svg {
	width: 32px;
	height: 32px;
}

/* Responsive navigation overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* Details/accordion block — used for FAQ pattern */
.wp-block-details summary {
	cursor: pointer;
	font-weight: 600;
	padding: 0.75em 0;
	list-style: none;
}

.wp-block-details summary::before {
	content: "+";
	display: inline-block;
	width: 1.5em;
	font-weight: 400;
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::before {
	content: "−";
}

.wp-block-details > :not(summary) {
	padding-bottom: 0.75em;
}

/* Separator with text */
.wp-block-separator.is-style-wide {
	border-bottom-width: 1px;
}

/* Cover block text readability */
.wp-block-cover .wp-block-cover__inner-container {
	max-width: var(--wp--style--global--wide-size);
}

/* Comment form */
.comment-respond .comment-form label {
	display: block;
	margin-bottom: 0.25em;
	font-weight: 500;
}

.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form input[type="url"],
.comment-respond .comment-form textarea {
	width: 100%;
	padding: 0.5em 0.75em;
	border: 1px solid var(--wp--preset--color--contrast-3);
	border-radius: 4px;
	font-family: inherit;
	font-size: inherit;
}

.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
	border-color: var(--wp--preset--color--accent);
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: -2px;
}

/* ── Hover effects ── */

/* Buttons — filled: lift + shadow */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0.9;
}

/* Outline buttons — already styled above, add transition */
.wp-block-button.is-style-outline .wp-block-button__link {
	transition: background-color 0.2s ease, color 0.2s ease;
}

/* Navigation links — underline slides in */
.wp-block-navigation-item__content {
	transition: opacity 0.2s ease;
	position: relative;
}

.wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: currentColor;
	transition: width 0.25s ease, left 0.25s ease;
}

.wp-block-navigation-item__content:hover {
	opacity: 0.75;
}

.wp-block-navigation-item__content:hover::after {
	width: 100%;
	left: 0;
}

/* Headings — soft opacity shift on hover */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	transition: opacity 0.3s ease;
}

h1:hover, h2:hover, h3:hover, h4:hover, h5:hover, h6:hover,
.wp-block-heading:hover {
	opacity: 0.7;
}

/* Social links — scale + opacity */
.wp-block-social-link {
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.wp-block-social-link:hover {
	transform: scale(1.15);
	opacity: 0.75;
}

/* Print styles */
@media print {
	.wp-block-navigation,
	.wp-block-template-part[data-area="header"],
	.wp-block-template-part[data-area="footer"] {
		display: none !important;
	}
}

/* Contact page: breathing room between the shortcode/contact form and the
   footer so the submit button doesn't sit flush against the site footer.
   Excludes alignfull blocks so colored CTA sections remain flush. */
.wp-block-post-content > :last-child:not(.alignfull) {
	margin-bottom: var(--wp--preset--spacing--60, 3rem);
}
.wpcf7 form,
.multistarter-contact-form {
	margin-bottom: var(--wp--preset--spacing--60, 3rem);
}
