﻿/***********************************************************
  CSS com classes para serem utilizadas em outros projetos.
  versão: 3-2025 - Diógenes de Oliveira
***********************************************************/

* {
    -webkit-box-sizing: border-box !important; /* Safari/Chrome */
    -moz-box-sizing: border-box !important; /* Firefox */
    box-sizing: border-box !important; /* IE8+/ Opera */
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    text-align: left;
    line-height: 150%; /* altura da linha de texto */
    color: white;
    background-color: var(--dark-bg);
}

a {
    color: #3d7dc6;
    text-decoration: none;
}

a:hover {
    color: #4a35c6;
}


hr {
    height: 1px;
    border-width: 0;
    border-top: 1px solid;
    border-top-color: #bbbbbb;
    width: 100%;
    display: inline-block;
}


/* Instala a fonte open sans */
/*@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    src: url('../fonts/open-sans/OpenSans-Light.ttf');
}
*/

/**************************************** 
 RECURSOS PARA LAYOUT EM COLUNAS 
*****************************************/
/* Linha para criar as colunas */
.row {
    display: flex;
    display: -webkit-flex; /* Safari */
    flex-wrap: wrap;
    flex-direction: row;
    align-items: initial;
    justify-content: center;
    /* Para permitir que todas as colunas tenham internamente a mesma largura.
      este recurso combinado com as declarações para todas as colunas:
        padding-left: 12px;
        padding-right: 12px;
    */
    margin-left: -12px;
    margin-right: -12px;
}

[class^="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 16px;
}

.col-12 {
    width: 100%;
}

.col-11 {
    width: 91.66666666%;
}

.col-10 {
    width: 83.3333333%;
}

.col-9 {
    width: 75%;
}

.col-8 {
    width: 66.66666667%;
}

.col-7 {
    width: 58.33333333%;
}

.col-6 {
    width: 50%;
}

.col-5 {
    width: 41.66666667%;
}

.col-4 {
    width: 33.33333333%;
}

.col-3 {
    width: 25%;
}

.col-2 {
    width: 16.66666667%;
}

.col-1 {
    width: 8.33333333%;
}

/**************************************** 
  box
*****************************************/

.box {
    height: 100%;
    position: relative;
}

.box-shadow {
    box-shadow: 2px 2px 4px #bbbbbb;
}

.box-footer {
    position: absolute;
    bottom: 14px;
}

.box-hover:hover {
    background-color: #eeeeee;
}

.padding-14 {
    padding: 14px;
}

.min-height-300px {
    min-height: 300px;
}

.border {
    border: 1px solid #c0c0c0;
    border-radius: 5px;
    height: 100%;
}

.margin-right-20 {
    margin-right: 20px;
}

.margin-top-60 {
    margin-top: 60px;
}

.margin-top-60 {
    margin-top: 60px;
}

.margin-top-120 {
    margin-top: 120px;
}

.margin-bottom-120 {
    margin-bottom: 120px;
}

.text-align-right {
    text-align: right;
}

/***********************************************************
CONTROLES DE FORMULÁRIOS
************************************************************/

label {
    margin-top: 20px;
    display: block;
    max-width: 100%;
    font-size: 12px;
    text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
textarea,
select {
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: transparent;
    color: white;
    font-size: 16px;
    padding: 10px;
    width: 100%;
    resize: none;
    outline: none;
}

input[type="submit"],
input[type="button"],
button {
    margin-top: 30px;
    border: 1px solid #c0c0c0;
    border-radius: 4px;
    color: white;
    background-color: #355bc6;
    font-size: 16px;
    padding: 10px 20px;
}

    input[type="submit"]:hover,
    input[type="button"]:hover,
    button:hover {
        background-color: #293b90;
        color: white;
    }

.botao {
    margin-top: 20px;
    background-color: #3d7dc6 !important;
    border: 1px solid #bbbbbb;
    border-radius: 5px;
    height: 40px;
    padding: 8px;
    color: white;
}

    .botao:hover {
        background-color: #355bc6 !important;
        color: white;
    }


.botao-delete {
    background-color: #ff6a00 !important;
}

    .botao-delete:hover {
        background-color: #ff4500 !important;
    }

.botao-editar {
    background-color: #498b47 !important;
}

    .botao-editar:hover {
        background-color: #37a533 !important;
    }

.botao-inserir {
    background-color: #355bc6 !important;
}

    .botao-inserir:hover {
        background-color: #293b90 !important;
    }

/**************************************************************
LAYOUT DE MíDIAS
tem que ser as ultimas definições
**************************************************************/
@media only screen and (max-width: 768px) {

    /* 
        SELETORES DE ATRIBUTOS [] 
        https://www.w3schools.com/css/css_attribute_selectors.asp 
    */
    body {
        margin-left: 18px;
        margin-right: 18px;
    }

    .margin-right-20 {
        margin: 0;
    }

    .border {
        border: 0;
    }

    .box-shadow {
        box-shadow: 0 0 0;
    }

    [class^="col-"] {
        width: 100%;
    }

    content-wrapper {
        padding: 0px;
        margin: 6px;
    }

    .padding-14 {
        border: 0px;
        padding: 0px;
    }

    .dp-hr {
        display: inline-block;
    }

    /* FORMS ****************/

    .form-input {
        border: 0px;
        padding: 0px;
        padding-top: 20px;
        /*border-radius: 0;*/
    }

    .form-view {
        border: 0px;
        padding: 0px;
        padding-top: 1px;
        /*border-radius: 0;*/
    }

        .form-view .ht {
            display: none;
        }

    .side-panel {
        padding-left: 0 !important;
    }

    /* MENU RESPONSIVO ****************/
    .menu {
        display: none;
    }

    .menu-mobile-buttons {
        display: inline-block;
    }

    .logotype {
        float: right;
    }

    [class=logotype-img] {
        max-width: 240px;
    }
}

/* CONFIGURAÇÃO DA IMPRESSÃO */
@media print {
    body * {
        visibility: hidden;
    }

    #Printable * {
        visibility: visible;
    }
}

:root {
    --primary: #00a8ff;
    --primary-dark: #0090d9;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --border: #2a2a2a;
    --sale: #ff4757;
    --highlight: #ff9f43;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

li::marker {
    color:transparent;
    padding: -10px;
}

ul {
    padding-left: 0px;
}
/*HEAD DO DEFAULT*/

header {
    background-color: var(--darker-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

    .search-bar input {
        width: 100%;
        padding: 12px 45px 12px 15px;
        border-radius: 4px;
        border: 1px solid var(--border);
        background-color: var(--card-bg);
        color: var(--text);
        font-size: 14px;
    }

    .search-bar button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        color: var(--text-secondary);
        font-size: 16px;
    }

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .user-actions a {
        font-size: 14px;
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .user-actions a:hover {
            color: var(--text);
        }

.cart {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Menu principal */
.main-nav {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border);
    
}

    .main-nav ul {
        display: flex;
        padding: 0;
        margin: 0px;
        
    }

    .main-nav li {
        margin-right: 0;
    }

    .main-nav a {
        color: var(--text-secondary);
        font-size: 14px;
        padding: 15px 20px;
        display: block;
        border-bottom: 3px solid transparent;
    }

        .main-nav a:hover, .main-nav a.active {
            color: var(--text);
            border-bottom: 3px solid var(--primary);
        }

/* Menu hambúrguer e sidebar */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--text);
        border-radius: 2px;
        transition: all 0.3s;
    }

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background-color: var(--darker-bg);
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

    .sidebar.active {
        left: 0;
    }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.close-sidebar {
    background: none;
    color: var(--text);
    font-size: 28px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-menu ul {
    margin-bottom: 25px;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    color: var(--text-secondary);
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid transparent;
}

    .sidebar-menu a:hover {
        color: var(--text);
        border-bottom: 1px solid var(--border);
    }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
}

    .overlay.active {
        display: block;
    }

/*FOOTER*/
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text);
    font-weight: 600;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 14px;
    align-items: center;
    gap: 8px;
}

.footer-column a:hover {
    color: var(--text);
}

.footer-column a i {
    width: 16px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.payment-method {
    width: 40px;
    height: 25px;
    background-color: var(--card-bg);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
}
/*COISA PRO DEFAULT/HOME*/
.games-section {
    margin-top:50px;
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

.section-title {
    font-size: 28px;
    color: var(--text);
    font-weight: 700;
}

.view-all {
    color: var(--primary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border);
    position: relative;
}

    .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        border-color: var(--primary);
    }

.game-image {
    height: 180px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
}

.game-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--sale);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 600;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.game-platform {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.platform-icon {
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.game-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-container {
    display: flex;
    flex-direction: column;
}

.original-price {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.current-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

.discount {
    font-size: 14px;
    color: var(--sale);
    font-weight: bold;
}

.buy-btn {
    background-color: var(--primary);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.buy-btn:hover {
    background-color: var(--primary-dark);
}
/*DARK SOULS*/
.dark-souls-section {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

    .dark-souls-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(0,0,0,0.3)"/></svg>');
        background-size: cover;
    }

.dark-souls-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.dark-souls-title {
    font-size: 36px;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 700;
}

.dark-souls-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.dark-souls-highlight {
    color: var(--highlight);
    font-weight: 700;
}
