﻿/* ==========================================================================
   Escudos Pops - CONFUSA.top Design Visual 2.0 (Light Theme)
   ========================================================================== */

/* 1. Global Page Background & High-Specificity Overrides */
html body {
    background-color: #f1f5f9 !important;
    background-image: 
      linear-gradient(135deg, rgba(248, 250, 252, 0.85) 0%, rgba(226, 232, 240, 0.95) 100%),
      url("/images/confusa-blue.png") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    background-attachment: fixed !important;
    color: #0f172a !important;
    font-family: 'Montserrat', sans-serif !important;
}

html body #logged-user {
    display: none !important;
}

html body #top-bar {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html body #bottom-bar {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-top: auto !important;
}

/* 2. Main Wrapper Layout */
#main-wrapper {
    max-width: 1380px;
    margin: 30px auto 50px auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 3. Header Card */
#escudos-pop-header {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 24px 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-sizing: border-box;
}

.header-title-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#escudos-pop-header h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
    font-size: 1.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.icon-header {
    font-size: 2rem;
    color: #0284c7;
    vertical-align: middle;
}

#escudos-pop-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    margin: 0;
    line-height: 1.45;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    font-weight: 700;
    padding: 1px 9px;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

/* 4. Filter Button */
.header-filter-container {
    display: flex;
    align-items: center;
}

#filter-pending {
    background: #0284c7;
    color: #ffffff;
    border: 1px solid rgba(2, 132, 199, 0.3);
    border-radius: 12px;
    padding: 12px 22px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.25), 0 2px 4px -1px rgba(2, 132, 199, 0.15);
    user-select: none;
    margin: 0;
}

#filter-pending:hover {
    background: #0369a1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(2, 132, 199, 0.35);
}

#filter-pending:active {
    transform: translateY(0);
}

.icon-toggle {
    font-size: 1.25rem;
}

#checkbox-21 {
    display: none;
}

/* 5. Grid of Shields */
#tabela-escudos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
}

.conjunto-escudo {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 22px 16px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s;
    box-sizing: border-box;
}

.conjunto-escudo:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 25px -5px rgba(56, 189, 248, 0.2), 0 8px 10px -6px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
}

.escudo-img-wrap {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.escudo-time {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.06));
}

.conjunto-escudo:hover .escudo-time {
    transform: scale(1.06);
}

/* 6. Guess Input Fields & States */
.adivinhador-nome {
    width: 100%;
    max-width: 185px;
    height: 42px;
    padding: 8px 12px;
    box-sizing: border-box;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.2s ease-in-out;
}

.adivinhador-nome::placeholder {
    color: #94a3b8;
    font-weight: 500;
    text-transform: none;
    font-size: 0.85rem;
}

.adivinhador-nome:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.smaller-font {
    font-size: 0.8rem !important;
}

.palpite-correto {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    box-shadow: 0 4px 8px -2px rgba(16, 185, 129, 0.3) !important;
    cursor: default !important;
    opacity: 0.95;
}

.palpite-incorreto {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 4px 8px -2px rgba(239, 68, 68, 0.3) !important;
    animation: shake 0.35s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

#copyright-text::after {
    content: " and Patrick Hegenbart";
}

/* 7. Mobile Responsiveness */
@media (max-width: 768px) {
    #main-wrapper {
        margin: 15px auto 40px auto;
        padding: 0 14px;
        gap: 16px;
    }
    
    #escudos-pop-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
    }
    
    #escudos-pop-header h2 {
        font-size: 1.5rem;
    }
    
    .header-filter-container {
        width: 100%;
    }
    
    #filter-pending {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    
    #tabela-escudos {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 12px;
    }
    
    .conjunto-escudo {
        padding: 16px 10px 14px 10px;
        border-radius: 14px;
        gap: 12px;
    }
    
    .escudo-img-wrap {
        width: 115px;
        height: 115px;
    }
    
    .adivinhador-nome {
        max-width: 135px;
        height: 38px;
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    
    .smaller-font {
        font-size: 0.72rem !important;
    }
}
