/*
Theme Name: Iframe DFRC
Theme URI: https://jaydioficial.com
Author: Tu Nombre
Author URI: https://jaydioficial.com
Description: Theme personalizado con iframe responsive configurable desde el panel de administración de WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iframe-theme
*/

/* Reset básico */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.6;
	color: #333;
}

/* Contenedor del iframe responsive */
.iframe-container {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
}

.iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Fallback por si el iframe no carga o es bloqueado por el navegador */
.iframe-fallback {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: -1; /* Detrás del iframe, visible si el iframe falla o es transparente */
	text-align: center;
	padding: 2rem;
}

.iframe-fallback a {
	color: #0073aa;
	font-weight: bold;
	text-decoration: underline;
}

/* Estilos para el header si existe */
.site-header {
	background: #333;
	color: #fff;
	padding: 1rem;
	text-align: center;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

/* Mensaje cuando no hay URL configurada */
.no-url-message {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100vh;
	text-align: center;
	padding: 2rem;
	background: #f5f5f5;
}

.no-url-message-content {
	max-width: 600px;
}

.no-url-message h2 {
	color: #333;
	margin-bottom: 1rem;
}

.no-url-message p {
	color: #666;
	margin-bottom: 1.5rem;
}

.no-url-message .button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.3s ease;
}

.no-url-message .button:hover {
	background: #005177;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.site-title {
		font-size: 1.2rem;
	}
	.iframe-container {
		height: calc(100vh - 60px);
	}
}

@media screen and (max-width: 480px) {
	.site-header {
		padding: 0.75rem;
	}
	.site-title {
		font-size: 1rem;
	}
}