/*
Theme Name: Holo Theme
Theme URI: 
Author: Javier Pachón Guerra
Author URI: https://jpachonguerra.ieti.site
Description: Custom theme for the Holo TCG Shop.
Tags: Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: holotheme is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others.
*/

/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

/* Paleta de colores Hololive */
:root {
    --primary-color: #6faefb; /* Azul Hololive */
    --secondary-color: #f49ac2; /* Rosa pastel */
    --background-light: #ffffff; /* Blanco */
    --background-dark: #2e3b4e; /* Azul oscuro */
    --text-color: #2e3b4e; /* Azul oscuro */
    --accent-color: #f2d5f8; /* Púrpura pastel */
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
/* ******************************************
		css general	
******************************************* */
main,
div > header,
div > footer,
aside,
nav#navigation {
	padding: 20px;
	margin-bottom: 15px;
	  /* Safari 3-4, iOS 1-3.2, Android 1.6- */
	  -webkit-border-radius: 12px; 

	  /* Firefox 1-3.6 */
	  -moz-border-radius: 12px; 
	  
	  /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */
	  border-radius: 12px; 
      

}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--background-light);
    color: var(--text-color);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    line-height: 1.6;
}

a {
    color: var(--text-color);
    text-decoration-color: var(--primary-color);
}

header#header{
    display: flex;
    justify-content: center;
}
.site-logo{
 
}
.site-logo>a>img,
.site-logo>img{
    max-width: 80px;
    margin-right: 25px;
    opacity: 0;
    animation: logo-left ease 1s forwards;
}

#headerimg {
    text-align: left;
    /* transform: scaleX(0);
    transform-origin: left;
    animation: fade-in-left ease 1s forwards;
    animation-delay: 0.4s; */


}

#header .site-title
 {
    margin-top: 18px;
    font-size: 24px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0; /* Comienza invisible */
    clip-path: inset(0 0 0 100%); /* Ocultamos todo el texto desde el lado derecho */
    animation: reveal 1s forwards;
    
}
#header .site-title>a {
    text-decoration: none;
    color: white;
}
#header .site-description{
    overflow: hidden;
    white-space: nowrap;
    opacity: 0; /* Comienza invisible */
    clip-path: inset(0 0 0 100%); /* Ocultamos todo el texto desde el lado derecho */
    animation: reveal 1s forwards;
}
/* Cabecera y navegación */
div > header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 20px;

}

code {
	color: white;
	background: purple;
	border: 1px solid yellow;
}

nav#navigation ul {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background: var(--primary-color);
    border-radius: 12px;

}

nav#navigation ul li a {
    padding: 5px 10px 5px 10px;
    color: var(--background-light);
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
	display: block;
}
nav#navigation ul li a:hover {
    background-color: var(--secondary-color);
    color: var(--background-dark);
}

/* Contenedor principal */
div.container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

div.container main {
	width: 70%;
    border: 1px solid var(--accent-color);
}

div.container main#sidebarless {
    width: 100%;
}
div.container aside {
    width: 30%;
    background: var(--accent-color);
    padding: 15px;
}

main h1{
    font-size: 32px;
    font-weight: bold;
}

main h2{
    font-size: 24px;
    font-weight: bold;
}

main h3{
    font-size: 20px;
    font-weight: bold;
}

main strong, main b{
    font-weight: bold;
}

main ul{
    list-style: square;
}

/* Artículos */
article {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

article:hover {
    transform: scale(1.02);
}

#index article {
    margin-bottom: 20px;
}
#index article:last-child {
    margin-bottom: 0;
}


section {
    display: block;
    
}

section h3 {
    margin-top: 15px;
	font-weight: bold;
}

section ul{
	display: flex;
	padding: 20px;

}

section ul li {
    margin: 10px;
    width: 33.33%;
    background: var(--background-dark);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: stretch;
}

section ul li:hover {
    background: var(--primary-color);
}

section ul li article{
	color: var(--text-color);
}

article img.wp-post-image{
	max-width: 100%;
	height: auto;

	border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

article:last-child {
	margin-bottom: 0;
}

.error404 main {
    text-align: center;
}

aside h2,
aside ul,
aside ol{
	margin-bottom: 15px;
}
aside h2 {
	font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    background: var(--background-dark);
    color: var(--background-light);
    padding: 10px;
    border-radius: 12px;
    margin-top: 20px;
}
footer a{
    color:var(--background-light);
}

footer ul li a {
    opacity: 30%;
    font-size: 15px;
}

/* Sección de comentarios */
#comments {
    background: var(--background-light);
    padding: 20px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#comments h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

/* Navegación entre comentarios (estilo botón) */
.navigation > .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 20px 0;}

.nav-links > .nav-previous,
.nav-links > .nav-next {
    display: inline-block;
    max-width: 30%;
    max-height: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: var(--background-light);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.nav-links > .nav-previous:hover,
.nav-links > .nav-next:hover{
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--background-dark);
}

.nav-next > a,
.nav-previous > a {
    text-decoration: none;
    color: var(--background-light);
    font-size: 1rem;
    font-weight: bold;
    text-align: center;

}

.meta-nav {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;


}
.post-title {
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

}
/* Lista de comentarios */
.commentlist {
    list-style: none;
    padding: 0;
}

.commentlist li {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--accent-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.commentlist li:before {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    width: 5px;
    height: 90%;
    background: var(--primary-color);
    border-radius: 4px;
}

/* Autor del comentario */
.comment-author {
    font-weight: bold;
    color: var(--background-dark);
    margin-bottom: 5px;
}

.comment-meta {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.comment-content {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.4;
}

/* Formulario de comentarios */
.comment-respond {
    background: var(--background-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.comment-respond h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.comment-respond form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-respond input,
.comment-respond textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 20px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--background-light);
    resize: none;
}

.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.comment-respond input[type="checkbox"]{
    width: 5%;    
}

.comment-respond input[type="submit"] {
    background: var(--primary-color);
    color: var(--background-light);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-respond input[type="submit"]:hover {
    background: var(--secondary-color);
}

@keyframes logo-left {
    0% {
      opacity: 1;
      transform: translateX(200%);
    }
    20% {
        opacity: 1;
        transform: translateX(200%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
      }
  }
  
  @keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
  }
  
  @keyframes reveal {
    0% {
      opacity: 0;
      clip-path: inset(0 0 0 100%); /* Oculto */
    }
    100% {
      opacity: 1;
      clip-path: inset(0 0 0 0); /* Se revela completamente */
    }
  }