/**
 * ARSENAL PAGE - CSS
 * Estilos organizados e harmoniosos para a página Arsenal
 * 
 * @author Victor Oliveira
 * @version 2.0.0
 * @since 2024
 */

/* ===== VARIÁVEIS ESPECÍFICAS ===== */
:root {
    --arsenal-primary: #FFD700;
    --arsenal-primary-dark: #E6C200;
    --arsenal-primary-light: #FFF59D;
    --arsenal-accent: #FFA726;
    --arsenal-bg: #0A0A0A;
    --arsenal-card: #1A1A1A;
    --arsenal-border: #333333;
    --arsenal-text: #FFFFFF;
    --arsenal-text-muted: #B0B0B0;
    --arsenal-shadow: rgba(0, 0, 0, 0.3);
    --arsenal-glow: rgba(255, 215, 0, 0.3);
}

/* ===== RESET E BASE ===== */
.arsenal-page {
    background: var(--arsenal-bg);
    color: var(--arsenal-text);
    line-height: 1.6;
}

/* ===== HERO SECTION ===== */
.arsenal-hero {
    background: linear-gradient(135deg, var(--arsenal-bg) 0%, #1A1A1A 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.arsenal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, var(--arsenal-glow) 0%, transparent 50%);
    pointer-events: none;
}

.arsenal-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.arsenal-hero .hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--arsenal-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--arsenal-text) 0%, var(--arsenal-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.arsenal-hero .hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--arsenal-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--arsenal-primary);
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.125rem;
}

/* ===== TRANSPARENCY NOTE ===== */
.transparency-note {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    backdrop-filter: blur(10px);
}

.note-icon {
    font-size: 1.5rem;
    color: var(--arsenal-primary);
    flex-shrink: 0;
}

.note-content {
    font-size: 0.875rem;
    color: var(--arsenal-text-muted);
    line-height: 1.5;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 4rem 0;
    background: var(--arsenal-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-card {
    background: var(--arsenal-card);
    border: 1px solid var(--arsenal-border);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--arsenal-shadow);
    border-color: var(--arsenal-primary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--arsenal-primary);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--arsenal-text);
    margin-bottom: 0.75rem;
}

.category-card p {
    font-size: 0.875rem;
    color: var(--arsenal-text-muted);
    line-height: 1.5;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--arsenal-bg) 0%, #0F0F0F 50%, #111111 100%);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    align-items: start;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: #1E1E1E;
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(255, 167, 38, 0.02) 50%, 
        transparent 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--arsenal-primary), 
        var(--arsenal-accent), 
        var(--arsenal-primary));
    border-radius: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4), 
                0 0 0 1px rgba(255, 215, 0, 0.3);
    border-color: transparent;
}

/* ===== PRODUCT IMAGE ===== */
.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #2A2A2A;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.product-card:hover .product-image {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-image-overlay {
    opacity: 1;
}

/* ===== PRODUCT CONTENT ===== */
.product-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    background: #1E1E1E;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.product-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.affiliate-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FFD700;
    color: #000;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.affiliate-badge::before {
    content: '★';
    font-size: 0.5rem;
}

.product-description {
    font-size: 0.875rem;
    color: #CCCCCC;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    flex: 1;
}

.product-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 20px;
    background: linear-gradient(90deg, transparent, var(--arsenal-card));
}

/* ===== PRODUCT RATING ===== */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.stars {
    color: #FFD700;
    font-size: 1rem;
    display: flex;
    gap: 0.125rem;
}

.rating-text {
    font-size: 0.75rem;
    color: var(--arsenal-text-muted);
    font-weight: 500;
}

.rating-count {
    font-size: 0.625rem;
    color: var(--arsenal-text-muted);
    opacity: 0.7;
}

/* ===== PRODUCT PRICE ===== */
.product-price {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.price-note {
    font-size: 0.75rem;
    color: var(--arsenal-text-muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

.price-savings {
    display: inline-block;
    background: var(--arsenal-primary);
    color: #000000;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

/* ===== AFFILIATE LINK ===== */
.affiliate-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #FFD700;
    color: #000;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}

.affiliate-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.6s ease;
}

.affiliate-link::after {
    content: '→';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.affiliate-link:hover::before {
    left: 100%;
}

.affiliate-link:hover::after {
    transform: translateY(-50%) translateX(4px);
}

.affiliate-link:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.affiliate-link:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}


/* ===== CTA SECTION ===== */
.arsenal-cta {
    background: linear-gradient(135deg, #111111 0%, var(--arsenal-bg) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.arsenal-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 80%, var(--arsenal-glow) 0%, transparent 50%);
    pointer-events: none;
}

.arsenal-cta .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.arsenal-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--arsenal-text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.arsenal-cta p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--arsenal-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First - Base Styles */
@media (max-width: 768px) {
    .arsenal-hero {
        padding: 4rem 1rem 3rem;
    }
    
    .transparency-note {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        margin: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        max-width: 500px;
    }
    
    .product-card {
        margin: 0;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-content {
        padding: 1.25rem;
        min-height: 260px;
    }
    
    .product-title {
        font-size: 1rem;
        min-height: 2.25rem;
    }
    
    .product-description {
        font-size: 0.75rem;
        min-height: 3.375rem;
    }
    
    .affiliate-link {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile Extra Small */
@media (max-width: 480px) {
    .arsenal-hero {
        padding: 3rem 0.75rem 2rem;
    }
    
    .transparency-note {
        padding: 0.75rem;
        margin: 0.75rem;
        font-size: 0.75rem;
    }
    
    .categories-grid {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
    }
    
    .category-card p {
        font-size: 0.75rem;
    }
    
    .products-grid {
        gap: 1rem;
        padding: 0 0.75rem;
        max-width: 450px;
    }
    
    .product-image-container {
        height: 160px;
    }
    
    .product-content {
        padding: 1rem;
        min-height: 240px;
    }
    
    .product-title {
        font-size: 0.9375rem;
        min-height: 2rem;
    }
    
    .product-description {
        font-size: 0.6875rem;
        min-height: 3rem;
        line-height: 1.3;
    }
    
    .affiliate-link {
        padding: 0.5rem 1rem;
        font-size: 0.6875rem;
    }
    
    .products-grid {
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-content h3 {
        font-size: 1rem;
    }
    
    .product-description {
        font-size: 0.75rem;
    }
    
    .price {
        font-size: 1.25rem;
    }
    
    .affiliate-link {
        padding: 0.625rem 1rem;
        font-size: 0.75rem;
    }
    
    .arsenal-cta {
        padding: 4rem 0.75rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .product-card {
        max-width: 350px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }