/*
Theme Name:   Nome Tema Child
Theme URI:    http://tuosito.com
Description:  Child theme di Nome Tema
Author:       Il Tuo Nome
Author URI:   http://tuosito.com
Template:     jadro
Version:      1.0.0
*/

/* Qui puoi aggiungere i tuoi stili personalizzati */

.category-cover, .tag-cover {
	width: 100%;       /* si adatta al contenitore */
	max-width: 200px;  /* non supera 200px sul desktop */
	height: auto;      /* mantiene proporzioni */
	display: block;    /* evita spazi indesiderati sotto l'immagine */
	margin: 0 auto; /* centra l'immagine */
	border: 2px solid #FFF;
	border-radius:10px;
}

@media (max-width: 768px) {
  .category-cover, .tag-cover{
    height: 180px;
  }
}

.game-table {
  margin: 20px 0;
  overflow-x: auto;
}

.game-table-grid {
  width: 100%;
  border-collapse: collapse;
  font-family: "Press Start 2P", monospace; /* font arcade */
  font-size: 12px;
  background: #111;
  color: #0f0;
  box-shadow: 0 0 10px #0f0;
}

.game-table-grid th,
.game-table-grid td {
  border: 1px solid #0f0;
  padding: 8px 12px;
  text-align: left;
}

.game-table-grid th {
  background: #222;
  text-transform: uppercase;
  font-size: 10px;
  color: #0ff;
}

.game-table-grid tr:nth-child(even) {
  background: rgba(0, 255, 0, 0.05);
}

.game-table-grid a {
  color: #ff0;
  text-decoration: none;
}

.game-table-grid a:hover {
  color: #f00;
  text-shadow: 0 0 5px #f00;
}

.no-posts {
  text-align: center;
  padding: 15px;
  color: #f66;
  font-weight: bold;
}

.game-cell-valore{text-align:right!important;}
#term-posts-pagination {
    text-align: center;
    margin: 10px 0;
}

#term-posts-pagination button {
    width: 28px;
    height: 28px;
    margin: 2px;
    padding: 0;
    background-color: #1a73e8; /* blu vivace */
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid #fff;
    border-radius: 4px; /* leggermente arrotondato */
    cursor: pointer;
    line-height: 25px; /* centra il numero verticalmente */
    transition: transform 0.1s ease, background-color 0.2s ease;
}

#term-posts-pagination button:hover {
    background-color: #ffa500; /* arancione da calcio */
    transform: scale(1.1); /* leggero ingrandimento al passaggio */
}

#term-posts-pagination button.active {
    background-color: #ff0000; /* rosso acceso per evidenziare */
    color: #fff;
    transform: scale(1.2);
}

/* Overlay */
.game-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

/* Animazioni */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Contenuto popup */
.game-popup-content {
    background: #111;
    border: 4px solid #00ff00;
    padding: 20px;
    color: #fff;
    font-family: "Press Start 2P", monospace;
    position: relative;
    text-align: center;
    box-shadow: 0 0 15px #00ff00;
    transform: scale(0.8);
    animation: popIn 0.2s forwards;
}

@keyframes popIn {
    to {transform: scale(1);}
}

/* Chiudi popup */
.game-popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #ff0000;
}

/* Pulsante popup stile videogame con icona */
.game-popup-button {
    background: linear-gradient(45deg, #00ff00, #00cc00);
    border: 3px solid #fff;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00 inset;
}

/* Effetto luce pulsante hover */
.game-popup-button:hover {
    background: linear-gradient(45deg, #00cc00, #00ff00);
    transform: scale(1.1);
    box-shadow: 0 0 20px #00ff00, 0 0 25px #00ff00 inset;
}

/* Icona interna (se vuoi usare fontawesome o SVG) */
.game-popup-button i,
.game-popup-button svg {
    font-size: 28px;
    color: #fff;
}

/* Effetto “glow” pulsante */
.game-popup-button::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    border: 2px solid #00ff00;
    border-radius: 10px;
    opacity: 0.5;

}


.user-avatar-wrapper {
    display: inline-block;
    cursor: pointer;
    border: 3px solid #00ff00;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    overflow: hidden;
    position: relative;
    transition: all 0.2s ease;
}

.user-avatar-wrapper:hover {
    box-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00 inset;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Colonna con bordo neon a destra */
.game-column {
    position: relative;
    padding-right: 20px; /* spazio per la linea */
}

/* Linea neon a destra */
.game-column::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;          /* spessore della linea */
    height: 100%;
    background: linear-gradient(180deg, #00ff00, #00ccff);
    box-shadow: 0 0 8px #00ff00, 0 0 15px #00ccff inset;

}
.game-username {
    display: flex;
    justify-content: center;   /* centra orizzontalmente */
    align-items: center;       /* centra verticalmente */
    font-family: 'Press Start 2P', monospace; /* font arcade stile videogame */
    font-size: 24px;
    text-transform: uppercase;
    color: #ffff	;
    width: fit-content;
    margin: 0 auto;            /* centra il contenitore */
}
/* --- Monete stile videogame --- */
.game-user-coins {
    display: inline-block;
    font-family: 'Press Start 2P', monospace;
    font-size: 20px;
    color: #ffd700; /* colore oro */
    text-shadow:
        0 0 1px #ffd700,
        0 0 2px #ffcc00,
        0 0 15px #ff9900;
    padding: 8px 16px;
}
