/* ===================================
   FONTE CUSTOMIZADA
   =================================== */
@font-face {
    font-family: 'Minecraft Regular';
    font-style: normal;
    font-weight: normal;
    src: local('Minecraft Regular'), url('1_MinecraftRegular1.woff') format('woff');
}

/* ===================================
   RESET E CONFIGURAÇÕES GLOBAIS
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    cursor: url(''), auto;
    font-size: 112.5%;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Gideon Roman", serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.65em;
    color: #E8E8E8;
    background-image: url('img/032-P-02.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
    background-color: #755370;
}

/* ===================================
   SCROLLBAR CUSTOMIZADA
   =================================== */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #755370;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #ffb5f3; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #9b6e93; 
}

/* ===================================
   SELEÇÃO DE TEXTO
   =================================== */
::selection {
    background-color: #d8a0d1;
    color: #FFFFFF;
}

::-moz-selection {
    background-color: #dd3333;
    color: #FFFFFF;
}

/* ===================================
   TIPOGRAFIA
   =================================== */
h1, h2, h3, h4, h5, h6 {
    color: #dd3333;
    font-family: "Gideon Roman", monospace;
    line-height: 1.3em;
}

h1 {
    color: #ffb5f3;
    font-size: 38px;
    line-height: 1.4em;
    font-family: "Gideon Roman", monospace;
}

h2 {
    font-size: 25px;
}

h3 {
    font-size: 20px;
}

p {
    margin-bottom: 1.6em;
    color: #fdfdfd;
}

a {
    color: #da0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #ffffff;
}

hr {
    border: none;
    height: 2px;
    background-color: #00f821;
    margin: 20px 0;
}

/* ===================================
   LAYOUT PRINCIPAL
   =================================== */

#content {
    margin-top: 32px;
    padding: 20px;
}

.ast-container {
    max-width: 1070px;
    margin: 0 auto;
    background: #8d6b8a;
    border-style: outset;
    border-width: 5px;
    border-color: #ffb5f3;
    box-shadow: 0 3px 30px rgba(0, 0, 0, 0.685);
    padding: 40px;
}

.content-area {
    width: 100%;
}

.entry-content {
    text-align: center;
}

.entry-content img.capadodiario {
    max-width: 100%;
    height: auto;
    margin: 1px auto;
    display: block;
}

.entry-content img.capadodiario:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #92877b;
    filter: brightness(1.1);
}

/* Legenda da imagem de capa */
.entry-content p[style*="background-color: #103a2c"] {
    max-width: 45% !important;
    width: auto !important;
    padding: 10px 20px;
    margin: 0.2rem auto !important;
    box-shadow: 10px 5px 5px #000000;
    color: #085239;
    word-wrap: break-word;
    text-align: center;
}

@media (max-width: 768px) {
    .entry-content p[style*="background-color: #103a2c"] {
        max-width: 95% !important;
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .entry-content p[style*="background-color: #103a2c"] {
        max-width: 100% !important;
        font-size: 0.85rem;
        padding: 8px 10px;
        margin: 0.5rem auto !important;
    }
}

/* Link de Retornar e Prosseguir */
        .return-link {
            display: inline-block;
            color: #ffffff;
            text-decoration: none;
            font-size: 16px;
            margin-bottom: 50px;
            padding: 8px 16px;
            border: 1px solid #d45dc1;
            background: #ffb5f3;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            font-family: 'Courier New', monospace;
            letter-spacing: 1px;
            text-shadow: 0 0 10px #aa4a9a;
        }

        .return-link:hover {
            background: #aa4a9a;
            box-shadow: 0 0 20px #645749;
            transform: translateX(-5px);
        }

        .prosseguir-link {
            display: inline-block;
            color: #92877b;
            text-decoration: none;
            font-size: 16px;
            margin-bottom: 50px;
            padding: 8px 16px;
            border: 1px solid #645749;
            background: #332c24;
            backdrop-filter: blur(10px);
            transition: all 0.3s ease;
            font-family: 'Courier New', monospace;
            letter-spacing: 1px;
            text-shadow: 0 0 10px #645749;
        }

        .prosseguir-link:hover {
            background: #2b2620;
            box-shadow: 0 0 20px #645749;
            transform: translateX(5px);
        }

/* ===================================
   CONTROLE DE ÁUDIO
   =================================== */
.audio-controls {
            margin: 20px 0;
        }

        details {
            margin: 20px 0;
        }

        summary {
            color: #a8a8a8;
            cursor: pointer;
            padding: 10px;
            background: #d89ace;
            border-radius: 5px;
        }

        summary:hover {
            background: #b682ad;
        }

        audio {
            width: 100%;
            margin-top: 10px;
        }

/* ===================================
   CHAT
   =================================== */

   .chat-box {
            background: #232727;
            padding: 20px;
            margin: 30px 0;
            border-radius: 10px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        .chat-header {
            background: #1f3328;
            color: #d9d9d9;
            padding: 15px;
            margin: -20px -20px 20px -20px;
            border-radius: 10px 10px 0 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .chat-avatar {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }

        .chat-header-info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            min-width: 0;
        }

        .chat-header-name {
            font-weight: 600;
            font-size: 1.05em;
            line-height: 1.3;
            margin: 0;
        }

        .chat-status {
            color: #8696a0;
            font-size: 0.8em;
            line-height: 1.2;
            margin: 0;
            margin-top: 1px;
            text-align: justify;
        }

        .message {
            margin: 8px 0;
            padding: 8px 12px;
            max-width: 70%;
            position: relative;
            clear: both;
            word-wrap: break-word;
        }

        .message.received {
            background: #24331f;
            border-radius: 0 8px 8px 8px;
            float: left;
        }

        .message.sent {
            background: #161f13;
            border-radius: 8px 0 8px 8px;
            float: right;
            margin-left: auto;
        }

        .message-content {
            color: #e9edef;
            font-size: 0.95em;
            line-height: 1.4;
            text-align: justify;
        }

        .message-time {
            color: #8696a0;
            font-size: 0.7em;
            text-align: right;
            margin-top: 4px;
            display: block;
        }

        .offline-status {
            color: #8696a0;
            font-style: italic;
            text-align: center;
            margin-top: 15px;
            font-size: 0.85em;
            clear: both;
            padding-top: 10px;
        }

        .clearfix::after {
            content: "";
            display: table;
            clear: both;
        }

/* ===================================
   GRID DE FOLHAS PRINCIPAL
   =================================== */
.grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      width: 90%;
      max-width: 1400px;
      margin: 0 auto 50px;
    }

/* Cards Padrão (Verde) */
.card {
    background-color: #001c0b;
    border: 1px solid #00ff80;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #00ff80;
}

.card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #00ff80;
}

.card p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: rgba(0, 255, 128, 0.05);
    margin: 0;
    color: inherit;
}

/* Card 2 (Branco/Cinza) */
.card2 {
    background-color: #c7c7c7;
    border: 1px solid #c7c7c7;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card2:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #c7c7c7;
}

.card2 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgb(107, 107, 107);
}

.card2 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: #c7c7c7;
    margin: 0;
    color: inherit;
}

/* Card 3 (Cinza Médio) */
.card3 {
    background-color: rgb(133, 133, 133);
    border: 1px solid rgb(133, 133, 133);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card3:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgb(133, 133, 133);
}

.card3 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgb(133, 133, 133);
}

.card3 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: rgb(133, 133, 133);
    margin: 0;
    color: inherit;
}

/* Card 4 (Roxo) */
.card4 {
    background-color: rgb(95, 3, 80);
    border: 1px solid rgb(156, 6, 131);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card4:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgb(156, 6, 131);
}

.card4 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgb(156, 6, 131);
}

.card4 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: rgb(156, 6, 131);
    margin: 0;
    color: inherit;
}

/* Card 5 (Marrom/Amarelo) */
.card5 {
    background-color: rgb(94, 81, 40);
    border: 1px solid rgb(145, 125, 59);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card5:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgb(145, 125, 59);
}

.card5 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgb(145, 125, 59);
}

.card5 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: rgb(145, 125, 59);
    margin: 0;
    color: inherit;
}

/* Card 6 (Vermelho Escuro) */
.card6 {
    background-color: rgb(66, 0, 0);
    border: 1px solid rgb(131, 2, 2);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card6:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgb(131, 2, 2);
}

.card6 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgb(131, 2, 2);
}

.card6 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: rgb(131, 2, 2);
    margin: 0;
    color: inherit;
}

/* Card 7 (Preto) */
.card7 {
    background-color: #1b1d1f;
    border: 1px solid #494949;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card7:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #494949;
}

.card7 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #494949;
}

.card7 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: #141618;
    margin: 0;
    color: inherit;
}

/* Card 8 (Rosa Escuro) */
.card8 {
    background-color: rgb(100, 0, 95);
    border: 1px solid rgb(206, 5, 196);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card8:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgb(206, 5, 196);
}

.card8 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgb(206, 5, 196);
}

.card8 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: rgb(206, 5, 196);
    margin: 0;
    color: inherit;
}

/* Card 9 (Dourado) */
.card9 {
    background-color: rgb(112, 89, 13);
    border: 1px solid rgb(170, 135, 18);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card9:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgb(170, 135, 18);
}

.card9 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgb(170, 135, 18);
}

.card9 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: rgb(170, 135, 18);
    margin: 0;
    color: inherit;
}

/* Card 10 (Roxo Escuro) */
.card10 {
    background-color: #1a1a2e;
    border: 1px solid #47476e;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card10:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(120, 122, 192, 0.4);
}

.card10 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(120, 122, 192, 0.4);
}

.card10 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: rgba(49, 51, 80, 0.4);
    margin: 0;
    color: inherit;
}

/* Card 11 (Cinza Escuro) */
.card11 {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card11:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px #2a2a2a;
}

.card11 img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #2a2a2a;
}

.card11 p {
    text-align: center;
    padding: 8px;
    font-size: 0.85rem;
    background-color: #2a2a2a;
    margin: 0;
    color: inherit;
}

/* ===================================
   GRID SECUNDÁRIO (OUTRAS HISTÓRIAS)
   =================================== */
.grid2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 90%;
    max-width: 1400px;
    margin: 40px auto 50px;
}

/* ===================================
   SEÇÃO DE ARTISTAS
   =================================== */
.artists-section {
            background: linear-gradient(135deg, #310000 0%, #1a0000 100%);
            border: 3px groove #df0000;
            padding: 0px;
            margin: 40px 19px;
            overflow: hidden;
        }

        .artists-section summary {
            cursor: pointer;
            list-style: none;
            padding: 20px;
            text-align: center;
            font-size: 1.5em;
            color: #6c00f8;
            user-select: none;
            transition: all 0.3s ease;
            position: relative;
        }

        .artists-section summary:hover {
            color: #9d4dff;
            text-shadow: 0 0 10px #6c00f8;
        }

        .artists-section summary::before {
            content: '▶';
            display: inline-block;
            margin-right: 10px;
            transition: transform 0.3s ease;
        }

        .artists-section[open] summary::before {
            transform: rotate(90deg);
        }

        .artists-content {
            animation: slideDown 0.5s ease-out;
            padding: 20px;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
                max-height: 0;
            }
            to {
                opacity: 1;
                transform: translateY(0);
                max-height: 2000px;
            }
        }

        .artist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
             gap: 34px;
            margin-top: 30px;
        }

        .artist-card {
            text-align: center;
            transition: transform 0.3s;
        }

        .artist-card:hover {
            transform: scale(1.05);
        }

        .artist-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border: 3px solid;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
        }

        .artist-card .caption {
            padding: 1px;
            margin-top: 2px;
            font-weight: bold;
            font-size: 14px;
            border: 3px solid;
        }

/* ===================================
   CAIXA DE PREVIEW
   =================================== */
#preview-box {
    position: fixed;
    display: none;
    background: rgba(4, 24, 17, 0.95);
    border: 3px solid #00f821;
    padding: 15px;
    max-width: 300px;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(0, 248, 33, 0.5);
    backdrop-filter: blur(10px);
}

#preview-box.active {
    display: block;
}

#preview-box h3 {
    color: #00f821;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #085239;
    padding-bottom: 5px;
}

#preview-box .preview-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border: 2px solid #085239;
    margin-bottom: 10px;
}

#preview-box .preview-text {
    color: #0c9665;
    font-size: 13px;
    line-height: 1.6;
}

#preview-box .preview-status {
    color: #dd3333;
    font-size: 11px;
    margin-top: 8px;
    font-style: italic;
}

/* ===================================
   TEMAS DE PREVIEW
   =================================== */

/* Tema Cinza */
#preview-box.theme-gray {
    background: rgb(133, 133, 133);
    border-color: #2e2e2e;
    box-shadow: 0 0 30px rgba(46, 46, 46, 0.5);
}

#preview-box.theme-gray h3 {
    color: #2e2e2e;
    border-bottom-color: #1a1a1a;
}

#preview-box.theme-gray .preview-text {
    color: #2e2e2e;
}

#preview-box.theme-gray .preview-image {
    border-color: #2e2e2e;
}

/* Tema Preto */
#preview-box.theme-black {
    background: rgba(0, 0, 0, 0.95);
    border-color: #000000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

#preview-box.theme-black h3 {
    color: #ffffff;
    border-bottom-color: #333333;
}

/* Tema Roxo Escuro */
#preview-box.theme-dark-purple {
    background: #1a1a2e;
    border-color: #47476e;
    box-shadow: 0 0 30px #575785;
}

#preview-box.theme-dark-purple h3 {
    color: #f3f3f3;
    border-bottom-color: #041156;
}

#preview-box.theme-dark-purple .preview-text {
    color: #f3f3f3;
}

#preview-box.theme-dark-purple .preview-image {
    border-color: #47476e;
}

/* Tema Marrom */
#preview-box.theme-brown {
    background: rgba(41, 35, 16, 0.95);
    border-color: #292310;
    box-shadow: 0 0 30px rgba(41, 35, 16, 0.5);
}

#preview-box.theme-brown h3 {
    color: #d4a574;
    border-bottom-color: #1a1709;
}

/* Tema Branco */
#preview-box.theme-white {
    background: #c7c7c7;
    border-color: rgb(107, 107, 107);
    box-shadow: 0 0 30px #c7c7c7;
}

#preview-box.theme-white h3 {
    color: #000000;
    border-bottom-color: #cccccc;
}

#preview-box.theme-white .preview-text {
    color: #333333;
}

#preview-box.theme-white .preview-image {
    border-color: rgb(107, 107, 107);
}

/* Tema Amarelo */
#preview-box.theme-yellow {
    background: rgb(145, 125, 59);
    border: 3px solid rgb(94, 81, 40);
    box-shadow: 0 0 30px rgba(255, 196, 0, 0.5);
}

#preview-box.theme-yellow h3 {
    color: #4a2f00;
    border-bottom-color: #cc9d00;
}

#preview-box.theme-yellow .preview-text {
    color: #4a2f00;
}

#preview-box.theme-yellow .preview-image {
    border-color: #4a2f00;
}

/* Tema Rosa */
#preview-box.theme-pink {
    background: rgb(156, 6, 131);
    border: 3px solid rgb(92, 4, 77);
    box-shadow: 0 0 30px rgb(206, 5, 196);
}

#preview-box.theme-pink h3 {
    color: #081b86;
    border-bottom-color: #cc9d00;
}

#preview-box.theme-pink .preview-text {
    color: #f7f7f7;
}

#preview-box.theme-pink .preview-image {
    border-color: rgb(92, 4, 77);
}

/* Tema Vermelho */
#preview-box.theme-red {
    background: rgb(66, 0, 0);
    border: 3px solid rgb(131, 2, 2);
    box-shadow: 0 0 30px rgb(131, 2, 2);
}

#preview-box.theme-red h3 {
    color: #f7f7f7;
    border-bottom-color: rgb(131, 2, 2);
}

#preview-box.theme-red .preview-text {
    color: #f7f7f7;
}

#preview-box.theme-red .preview-image {
    border-color: #f7f7f7;
}

/* Tema Cinza Escuro */
#preview-box.theme-dark-gray {
    background: #1a1a1a;
    border: 3px solid #2a2a2a;
    box-shadow: 0 0 30px #2a2a2a;
}

#preview-box.theme-dark-gray h3 {
    color: #f7f7f7;
    border-bottom-color: #2a2a2a;
}

#preview-box.theme-dark-gray .preview-text {
    color: #f7f7f7;
}

#preview-box.theme-dark-gray .preview-image {
    border-color: #464646;
}

/* ===================================
   RESPONSIVIDADE
   =================================== */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .ast-container {
        padding: 30px;
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 102.6%;
    }
    
    body {
        font-size: 17px;
    }
    
    .ast-container {
        padding: 20px;
        border-width: 3px;
    }
    
    #preview-box {
        max-width: 90vw;
    }
    
    .artist-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 22px;
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 544px) {
    html {
        font-size: 112.5%;
    }
}

@media (max-width: 400px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .ast-container {
        padding: 15px;
    }
}

/* ===================================
   FOOTER (SE NECESSÁRIO)
   =================================== */
footer {
    text-align: center;
    font-size: 0.8rem;
    padding: 20px;
    color: #00cc66;
    border-top: 1px solid #003d1e;
    margin-top: 40px;
}