/*========================================
= GLOBAL
=========================================*/
* {
    cursor: url("img/cursor.png"), auto;
    box-sizing: border-box;
}

body {
    background-image: url("img/bg.png");
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

main {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: rgba(49, 49, 49, 0.3);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}


/*========================================
= HEADER
=========================================*/
#themeToggle {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid #fff;
    background: rgba(0,0,0,0.4);
    color: white;
    font-family: "Press Start 2P", monospace;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 9999;
}

#themeToggle:hover {
    background: rgba(255,255,255,0.1);
}

header {
    padding: 20px 0;
}

.header-images {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Apenas ESTA regra controla os GIFs */
.header-images img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
}

header a img:hover {
    transition: 0.3s;
    transform: scale(1.05);
    cursor: url("img/cursor_point.png"), auto;
}


/*========================================
= NAV BAR
=========================================*/
nav {
    margin: 20px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #333;
    border-radius: 12px;
    overflow: hidden;
}

nav li {
    flex: 1;
    min-width: 120px;
}

nav li a {
    display: block;
    padding: 14px 20px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

nav li a:hover {
    background-color: #111;
    cursor: url("img/cursor_point.png"), auto;
}


/*========================================
= GRID PRINCIPAL
=========================================*/
.main-grid {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 340px);
    gap: 20px;
}


/*========================================
= BLOG AREA
=========================================*/
.blog-area {
    background-color: rgba(49, 49, 49, 0.50);
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.blog-area iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 3px solid rgba(0,0,0,0.5);
}


/*========================================
= COLUNA LATERAL
=========================================*/
.side-area {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/*========================================
= CHAT
=========================================*/
.chat-box {
    background-color: rgba(49, 49, 49, 0.50);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.chat-box iframe {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    border: 3px solid rgba(0,0,0,0.5);
}


/*========================================
= CONTADOR DE PEIXES
=========================================*/
.counter-box {
    margin-top: auto;
    padding-top: 20px;
}

.lontra-wrapper {
    background-image: url("img/lontrabackground.png");
    background-repeat: repeat;
    background-size: 200px auto;
    background-position: center;
    background-color: rgba(49, 49, 49, 0.78);
    border: 3px solid #000;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: inset 0 0 0 2px #ffcc0050,
                0 0 8px #ffcc0099,
                0 0 14px #ff990066;
    color: rgb(235, 255, 57);
}

.contador-titulo {
    background: #000;
    color: #fff066;
    padding: 6px 12px;
    font-family: "Press Start 2P", monospace;
    font-size: 0.85rem;
    border: 3px solid #000;
    outline: 3px solid #fff066;
    margin-bottom: 16px;
    image-rendering: pixelated;
}

.contador-conteudo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.placa-numero {
    width: 110px;
    height: 110px;
    position: relative;
    image-rendering: pixelated;
}

.placa-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.numero-placa {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -70%);
    font-family: "Press Start 2P", monospace;
    font-size: 1.4rem;
    color: #fff066;
    text-shadow: 
        -1px -1px 0 #000,
         0   -1px 0 #000,
         1px -1px 0 #000,
        -1px  0   0 #000,
         1px  0   0 #000,
        -1px  1px 0 #000,
         0    1px 0 #000,
         1px  1px 0 #000,
        -2px -2px 0 #000,
         0   -2px 0 #000,
         2px -2px 0 #000,
        -2px  0   0 #000,
         2px  0   0 #000,
        -2px  2px 0 #000,
         0    2px 0 #000,
         2px  2px 0 #000;
    image-rendering: pixelated;
}

#lontra-btn {
    width: 156px;
    cursor: url("img/cursor_point.png"), pointer;
    transition: transform 0.1s ease;
}

#lontra-btn:hover {
    transform: scale(1.05);
}

#lontra-btn:active {
    transform: scale(0.90) rotate(-2deg);
    filter: brightness(1.4) saturate(1.5);
}

.texto-contador {
    background: #000;
    color: #fff066;
    padding: 8px 12px;
    font-family: "Press Start 2P", monospace;
    font-size: 0.75rem;
    border: 3px solid #000;
    outline: 3px solid #fff066;
    margin-top: 14px;
    image-rendering: pixelated;
}


/*========================================
= INSTAGRAM
=========================================*/
.social-box {
    background-color: #333;
    padding: 10px;
    border-radius: 12px;
    margin-top: 20px;
    text-align: center;
}

.social-box a.insta {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 14px 20px;
    border-radius: 12px;
    background-color: #333;
    display: inline-block;
    transition: background 0.3s;
}

.social-box a.insta:hover {
    background-color: #111;
    cursor: url("img/cursor_point.png"), auto;
}


/*========================================
= RESPONSIVIDADE
=========================================*/
@media (max-width: 1024px) {
    main {
        width: 90%;
        padding: 15px;
    }

    nav li a {
        padding: 12px;
    }

    .main-grid {
        grid-template-columns: 1fr 250px;
    }

    .numero-placa {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    main {
        width: 95%;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }

    .main-grid {
        grid-template-columns: 1fr;
    }

    .side-area {
        max-width: 400px;
        margin: 0 auto;
    }

    .blog-area iframe {
        height: 600px;
    }

    #lontra-btn {
        width: 100px;
    }

    .placa-numero {
        width: 95px;
        height: 95px;
    }
}

@media (max-width: 480px) {

    .header-images img {
        width: 100px;
        height: 100px;
    }

    .blog-area iframe {
        height: 500px;
    }

    .numero-placa {
        font-size: 1.3rem;
    }

    #themeToggle {
        top: 8px;
        right: 8px;
        padding: 6px 10px;
        font-size: 0.45rem;
    }
}
