/*
Theme Name: Canvas LTI
Theme URI: https://getschooled.com
Author: Get Schooled
Author URI: https://getschooled.com
Description: Minimal theme for Canvas/LTI embedding. No headers, no footers, just clean content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: canvas-lti
Tags: minimal, canvas, lti, embed, clean
*/

/* Reset and base styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	height: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.4;
	letter-spacing: -0.01em;
	color: #111111;
	background: #fff;
}

/* Hide WordPress admin bar */
#wpadminbar {
	display: none !important;
}

/* Main content container */
.site-content {
	max-width: 1000px;
	margin: 0 auto;
	padding: 20px;
	width: 100%;
}

/* Entry content - for proper block rendering */
.entry-content {
	max-width: 100%;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content > * + * {
	margin-top: 1.2em;
}

.entry-content > * + h1,
.entry-content > * + h2,
.entry-content > * + h3,
.entry-content > * + h4,
.entry-content > * + h5,
.entry-content > * + h6 {
	margin-top: 1.5em;
}

.entry-header {
	margin-bottom: 1.5em;
}

.entry-title {
	margin: 0;
}

/* Typography - improved from Twenty Twenty-Five */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
	margin: 1.2em 0 0.6em;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
	font-size: clamp(1.75rem, 3.5vw, 2.15rem);
}

h3 {
	font-size: clamp(1.5rem, 3vw, 1.75rem);
}

h4 {
	font-size: clamp(1.25rem, 2.5vw, 1.38rem);
}

h5 {
	font-size: clamp(1.125rem, 2vw, 1.25rem);
}

h6 {
	font-size: clamp(1rem, 1.5vw, 1.125rem);
}

p {
	margin: 0 0 1.2em;
}

/* Link styles - from Twenty Twenty-Five */
a {
	color: #0066cc;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.1em;
}

a:hover {
	color: #0052a3;
}

/* Focus styles for accessibility */
*:focus {
	outline-width: 2px;
	outline-style: solid;
	outline-color: currentColor;
}

/* Lists */
ul, ol {
	margin: 0 0 1.2em 2em;
	padding-left: 1.5em;
}

li {
	margin: 0.6em 0;
	line-height: 1.5;
}

/* Images */
img {
	max-width: 100%;
	height: auto;
}

/* Videos */
iframe[src*="youtube"],
iframe[src*="vimeo"] {
	max-width: 100%;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* WordPress blocks */
.wp-block-group {
	margin: 0;
}

.wp-block-post-content {
	margin: 0;
}

/* Block editor styles - improved spacing and typography */
.wp-block-heading {
	margin: 1.2em 0 0.6em;
	line-height: 1.2;
}

.wp-block-paragraph {
	margin: 0 0 1.2em;
	line-height: 1.6;
}

.wp-block-image {
	margin: 1.2em 0;
}

.wp-block-video {
	margin: 1.2em 0;
}

.wp-block-embed {
	margin: 1.2em 0;
}

.wp-block-list {
	margin: 0 0 1.2em;
	padding-left: 1.5em;
}

.wp-block-list li {
	margin: 0.6em 0;
}

.wp-block-quote {
	margin: 1.2em 0;
	padding: 1em 1.5em;
	padding-left: 1.5em;
	border-left: 4px solid #ccc;
	font-style: italic;
	background: #f9f9f9;
}

.wp-block-quote p {
	margin: 0.5em 0;
}

.wp-block-quote cite {
	display: block;
	margin-top: 0.5em;
	font-size: 0.9em;
	font-style: normal;
	color: #666;
}

.wp-block-button {
	margin: 1.2em 0;
}

.wp-block-button__link {
	display: inline-block;
	padding: 0.75em 1.5em;
	background: #0066cc;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.wp-block-button__link:hover {
	background: #0052a3;
	color: #fff;
}

.wp-block-code {
	background: #f5f5f5;
	padding: 1em;
	border-radius: 4px;
	font-family: "Courier New", Courier, monospace;
	font-size: 0.9em;
	overflow-x: auto;
}

.wp-block-table {
	margin: 1.2em 0;
	width: 100%;
	border-collapse: collapse;
}

.wp-block-table th,
.wp-block-table td {
	padding: 0.75em;
	border: 1px solid #ddd;
}

.wp-block-table th {
	background: #f5f5f5;
	font-weight: 600;
}

.wp-block-separator {
	margin: 2em 0;
	border: none;
	border-top: 1px solid #ddd;
}

.wp-block-group {
	margin: 1.2em 0;
}

/* Better spacing for block gaps */
.wp-block-group > * {
	margin-top: 0;
	margin-bottom: 0;
}

.wp-block-group > * + * {
	margin-top: 1.2em;
}

/* Course page - Remove grey from WP iframe inside Canvas */
#content.ic-Layout-contentMain .ui-listview {
	box-shadow: none;
}

#content.ic-Layout-contentMain .ui-listview li {
	background: none;
	border: none;
	outline: none;
}

#content.ic-Layout-contentMain .ui-listview li iframe {
	border: none;
	outline: none;
}

/* Responsive */
@media (max-width: 1040px) {
	.site-content {
		max-width: 100%;
		padding: 20px;
	}
}

@media (max-width: 768px) {
	.site-content {
		padding: 15px;
	}
	
	h1 {
		font-size: 1.75em;
	}
	
	h2 {
		font-size: 1.5em;
	}
}

@media (max-width: 480px) {
	.site-content {
		padding: 12px;
	}
	
	h1 {
		font-size: 1.5em;
	}
	
	h2 {
		font-size: 1.25em;
	}
}

