/* ===== RESET E ESTILOS GLOBAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: #1a1a1a;
    padding: 0.5rem 0;
    border-bottom: 2px solid #c49a1f;
    font-size: 0.85rem;
    position: relative;
    z-index: 101;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    color: #c49a1f;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.player-link {
    cursor: pointer;
    transition: all 0.3s;
    color: #c49a1f;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    background: rgba(196, 154, 31, 0.1);
    border: 1px solid #c49a1f;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.player-link:hover {
    background: #c49a1f;
    color: #000;
    transform: scale(1.05);
}

.master-link {
    cursor: pointer;
    transition: all 0.3s;
    color: #c49a1f;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    background: rgba(196, 154, 31, 0.1);
    border: 1px solid #c49a1f;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.master-link:hover {
    background: #c49a1f;
    color: #000;
    transform: scale(1.05);
}

/* ===== HEADER PRINCIPAL COM BANNER ===== */
.main-header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-banner {
    background-image: url('../images/banners/header-banner.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 5rem;
}

.logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-image {
    width: 280px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.logo-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: radial-gradient(circle at 40% 40%, 
        rgba(138, 43, 226, 0.8) 0%,
        rgba(75, 0, 130, 0.6) 30%,
        rgba(148, 0, 211, 0.4) 60%,
        rgba(106, 13, 173, 0.2) 85%,
        transparent 100%);
    filter: blur(8px);
    opacity: 0.6;
    animation: smokePulse 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

.logo-image::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 3px;
    background: radial-gradient(circle at 60% 60%,
        rgba(186, 85, 211, 0.7) 0%,
        rgba(139, 0, 139, 0.5) 35%,
        rgba(153, 50, 204, 0.3) 65%,
        rgba(128, 0, 128, 0.1) 85%,
        transparent 100%);
    filter: blur(6px);
    opacity: 0.5;
    animation: smokeDrift 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    border-radius: 50%;
}

.logo-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes smokePulse {
    0% {
        opacity: 0.5;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.98);
    }
}

@keyframes smokeDrift {
    0% {
        opacity: 0.4;
        transform: translate(0, 0) scale(1);
    }
    33% {
        opacity: 0.7;
        transform: translate(-3px, -3px) scale(1.01);
    }
    66% {
        opacity: 0.6;
        transform: translate(3px, 3px) scale(0.99);
    }
    100% {
        opacity: 0.4;
        transform: translate(0, 0) scale(1);
    }
}

.header-categories-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
}

.category-dropdown {
    position: relative;
    display: inline-block;
}

.category-item {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 1.2rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid #c49a1f;
    border-radius: 30px;
    transition: all 0.3s;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    opacity: 0.9;
    display: block;
    cursor: pointer;
}

.category-item:hover {
    background: #c49a1f;
    color: #000;
    border-color: #e5b82b;
    opacity: 1;
    transform: translateY(-2px);
}

.category-dropdown > .category-item.has-submenu::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.3rem;
    opacity: 0.8;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #1a1a1a;
    border: 2px solid #c49a1f;
    border-radius: 15px;
    margin-top: 0;
    padding: 0.8rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(196, 154, 31, 0.3);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.15s ease;
}

.category-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.dropdown-content a:hover {
    background: rgba(196, 154, 31, 0.2);
    color: #c49a1f;
    border-left: 3px solid #c49a1f;
    padding-left: 1.8rem;
}

.dropdown-content a:first-child {
    font-weight: 600;
    color: #c49a1f;
    border-bottom: 1px solid #333;
    margin-bottom: 0.3rem;
}

.dropdown-content a:first-child:hover {
    background: rgba(196, 154, 31, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0 4rem;
}

.how-card {
    background: #111;
    border: 1px solid #222;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
}

.how-card:hover {
    border-color: #c49a1f;
    transform: translateY(-5px);
}

.how-icon {
    font-size: 2.5rem;
    color: #c49a1f;
    margin-bottom: 1rem;
}

.how-card h3 {
    color: #c49a1f;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.how-card p {
    color: #888;
    font-size: 0.95rem;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3rem 0 2rem;
}

.section-title h2 {
    color: #c49a1f;
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.section-title a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.section-title a:hover {
    color: #c49a1f;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #c49a1f;
    box-shadow: 0 10px 20px rgba(196, 154, 31, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c49a1f;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1;
}

.product-image {
    height: 200px;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image .image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #c49a1f;
    font-size: 3rem;
}

.product-info {
    padding: 1rem;
}

.product-category {
    color: #c49a1f;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #fff;
}

.product-price {
    color: #c49a1f;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.product-old-price {
    color: #666;
    font-size: 0.85rem;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-installments {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.product-link {
    display: block;
    background: #c49a1f;
    color: #000;
    text-decoration: none;
    padding: 0.8rem;
    text-align: center;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    width: 100%;
    cursor: pointer;
}

.product-link:hover {
    background: #e5b82b;
}

.no-products-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1.2rem;
    background: #111;
    border: 2px dashed #333;
    border-radius: 15px;
    font-style: italic;
}

footer {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #c49a1f;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: #c49a1f;
}

.admin-footer-link {
    margin-top: 0.5rem;
}

.admin-footer-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
    display: inline-block;
}

.admin-footer-link a:hover {
    color: #c49a1f;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #666;
    font-size: 0.85rem;
}

.rpg-description {
    background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
    border: 2px solid #c49a1f;
    border-radius: 30px;
    padding: 2.5rem;
    margin: 2rem 0 3rem;
    position: relative;
    box-shadow: 0 0 30px rgba(196, 154, 31, 0.2);
}

.description-scroll {
    position: relative;
    padding: 1rem 2rem;
}

.description-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.description-title {
    color: #c49a1f;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(196, 154, 31, 0.3);
    font-family: 'Inter', sans-serif;
}

.description-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.description-text p {
    margin-bottom: 1.5rem;
}

.description-text .highlight {
    color: #c49a1f;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(196, 154, 31, 0.3);
}

.description-climax {
    font-size: 1.2rem;
    font-style: italic;
    color: #c49a1f;
    border-top: 1px dashed #333;
    border-bottom: 1px dashed #333;
    padding: 1.5rem 0;
    margin: 1.5rem 0 0;
}

.description-icon-bottom {
    font-size: 2rem;
    text-align: center;
    margin-top: 1.5rem;
    opacity: 0.7;
}

.rpg-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0 2rem;
    position: relative;
}

.rpg-divider::before,
.rpg-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c49a1f, transparent);
}

.divider-icon-left,
.divider-icon-right {
    font-size: 2rem;
    animation: pulseIcon 2s ease-in-out infinite;
}

.divider-icon-left {
    animation-delay: 0s;
}

.divider-icon-right {
    animation-delay: 1s;
}

@keyframes pulseIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.divider-text {
    color: #c49a1f;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    padding: 0 1rem;
}

@media (max-width: 1024px) {
    .header-container {
        gap: 2rem;
    }
    
    .logo-image {
        width: 220px;
    }
    
    .category-item {
        font-size: 0.7rem;
        padding: 0.3rem 1rem;
    }
    
    .categories-row {
        gap: 0.6rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo-image {
        width: 200px;
    }
    
    .categories-row {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .logo-image {
        width: 180px;
    }
    
    .category-item {
        font-size: 0.65rem;
        padding: 0.25rem 0.8rem;
    }
    
    .categories-row {
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .rpg-description {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .description-title {
        font-size: 1.4rem;
    }
    
    .description-text {
        font-size: 0.95rem;
    }
    
    .divider-text {
        font-size: 0.9rem;
        white-space: normal;
        text-align: center;
    }
    
    .rpg-divider {
        gap: 0.5rem;
        margin: 2rem 0;
    }
    
    .dropdown-content {
        position: static;
        width: 100%;
        margin-top: 0;
        display: none;
    }
    
    .category-dropdown.mobile-active .dropdown-content {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem;
    }

    .footer-section:nth-child(1),
    .footer-section:nth-child(3) {
        grid-column: 1 / 2;
    }

    .footer-section:nth-child(2),
    .footer-section:nth-child(4) {
        grid-column: 2 / 3;
    }

    .footer-section h4 {
        font-size: 0.9rem;
    }

    .footer-section ul li a {
        font-size: 0.8rem;
    }

    /* MOBILE: 3 LINHAS NO HEADER - CORRIGIDO */
    .header-categories-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .header-categories-wrapper .categories-row {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    
    /* Primeira linha: Grids e Miniaturas */
    .header-categories-wrapper .categories-row:nth-child(1) {
        order: 1;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-categories-wrapper .categories-row:nth-child(1) .category-dropdown:nth-child(1),
    .header-categories-wrapper .categories-row:nth-child(1) .category-dropdown:nth-child(2) {
        display: inline-block;
    }
    
    .header-categories-wrapper .categories-row:nth-child(1) .category-dropdown:nth-child(3) {
        display: none;
    }
    
    /* Segunda linha: Dados e Livros */
    .header-categories-wrapper .categories-row:nth-child(2) {
        order: 2;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(1),
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(2) {
        display: inline-block;
    }
    
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(3),
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(4) {
        display: none;
    }
    
    /* Terceira linha: Cenários, Acessórios e Boardgames */
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(3) {
        display: inline-block;
        order: 3;
    }
    
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(4) {
        display: inline-block;
    }
    
    /* Reorganizar os elementos para a terceira linha */
    .header-categories-wrapper .categories-row:nth-child(2) {
        display: flex;
        flex-wrap: wrap;
    }
    
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(3) {
        order: 1;
    }
    
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(4) {
        order: 2;
    }
    
    .header-categories-wrapper .categories-row:nth-child(2)::after {
        content: '';
        display: block;
        width: 100%;
        order: 3;
    }
    
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(3),
    .header-categories-wrapper .categories-row:nth-child(2) .category-dropdown:nth-child(4) {
        display: inline-block;
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-title {
        font-size: 0.85rem;
        min-height: 2.2rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-link {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .top-bar {
        padding: 0.3rem 0;
    }
    
    .top-bar-content > span:first-child {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
        white-space: nowrap;
    }
    
    .top-bar-right span:first-child {
        display: none;
    }
    
    .player-link, .master-link {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .category-item {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
    
    .logo-image {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-info {
        padding: 0.5rem;
    }
    
    .product-category {
        font-size: 0.55rem;
    }
    
    .product-title {
        font-size: 0.75rem;
        min-height: 2rem;
        line-height: 1.2;
    }
    
    .product-price {
        font-size: 0.9rem;
    }
    
    .product-old-price {
        font-size: 0.6rem;
    }
    
    .product-installments {
        font-size: 0.55rem;
        min-height: 1.5rem;
    }
    
    .product-link {
        padding: 0.4rem;
        font-size: 0.7rem;
    }
    
    .top-bar-content > span:first-child {
        font-size: 0.7rem;
    }
    
    .player-link, .master-link {
        padding: 0.15rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .category-item {
        font-size: 0.55rem;
        padding: 0.15rem 0.5rem;
    }
    
    .logo-image {
        width: 140px;
    }
    
    .description-title {
        font-size: 1.2rem;
    }
    
    .description-text {
        font-size: 0.85rem;
    }
    
    .description-climax {
        font-size: 0.9rem;
    }
    
    .dropdown-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px;
        max-height: 80vh;
        z-index: 10000;
    }
    
    .footer-content {
        gap: 1rem;
    }

    .footer-section h4 {
        font-size: 0.85rem;
    }

    .footer-section ul li a {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .logo-image {
        width: 120px;
    }
    
    .category-item {
        font-size: 0.5rem;
        padding: 0.1rem 0.4rem;
    }
    
    .player-link, .master-link {
        padding: 0.1rem 0.4rem;
        font-size: 0.6rem;
    }
    
    .top-bar-content > span:first-child {
        font-size: 0.65rem;
    }
}