@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100..900&display=swap');

/* =========================
   🎨 DESIGN SYSTEM
========================= */
:root {
    --bg-main: #047cc3;
    --bg-card: #ffffff;
    --bg-soft: #fff6ef;

    --text-primary: #111827;
    --text-secondary: #6b7280;

    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-soft: #e0e7ff;

    --danger: #ef4444;
    --border: #e5e7eb;
}

/* =========================
   🌍 BASE
========================= */
body {
    margin: 0;
    font-family: "Noto Sans", sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
    transition: all 0.15s ease-in-out;
}

/* =========================
   📦 CONTAINER
========================= */
.main-perfil {
    width: 90%;
    max-width: 1200px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.08);
}

/* =========================
   🧾 TITLE
========================= */
.title {
    text-align: center;
    font-size: 2.5vw;
    margin: 60px 0 20px;
}

/* =========================
   📐 LAYOUT
========================= */
.content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.left-perfil, .right-perfil {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================
   👤 IMAGE
========================= */
.image-preview {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
}

/* =========================
   🪪 INFO CARD
========================= */
.info {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
}

.info strong {
    display: block;
    margin: 10px 0 5px;
}

.quantity-group strong {
    display: inline;
    margin: 0;
}

/* =========================
   📄 INFO CONTENT
========================= */
.info-content {
    margin: 15px 0;
    padding: 12px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 14pt;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.info-content:hover {
    transform: translateY(-2px);
}

.info-content img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}





.image-preview {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}


img {
    max-width: 100%;
    height: auto;
}

/* =========================
   🏆 ACHIEVEMENTS
========================= */
.achievement-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.achievement-icons img {
    width: 40px;
    margin: 5px;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.achievement-grid img {
    width: 45px;
    height: 45px;
    cursor: pointer;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.5;
    transition: 0.2s;
}

.achievement-grid img.active {
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

   .ach-button {
    text-decoration: none;
    color: #4f46e5;
    font-size: 16px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
   display: inline-block;
}

/* hover elegante */
.ach-button:hover {
/*   background-color: #e0e7ff;*/
 background-color: white;
    color: #4338ca;
}

/* feedback de clique */
.ach-button:active {
    transform: scale(0.97);
}

/* =========================
   ✏️ INPUTS
========================= */
.info .update {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14pt;
    font-family: inherit;
    background: var(--bg-card);
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.radio-group label {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11pt;
    display: flex;
    align-items: center;
    gap: 5px;
}

.radio-group label:has(input:checked) {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11pt;
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-group label:has(input:checked) {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14pt;
    background: var(--bg-card);
}

.quantity-group img {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.estrela {
     width: 30px;
     height: 30px;
}

.info .update:focus,
.quantity-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* =========================
   🔢 QUANTITY
========================= */
.quantity-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    width: 100%;
}

.quantity-btn {
    background: var(--accent-soft);
    color: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
}



/* =========================
   🔘 BUTTONS
========================= */
.update-btn-container {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.update-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    color: white;
    background: var(--accent);
    cursor: pointer;
    font-weight: 600;
    width: 260px;
    margin: 10px;
}

.update-btn:hover {
    background: var(--accent-hover);
}

.delete-btn {
    padding: 10px 15px;
    font-size: 14px;
    background-color: var(--danger);
    color: white;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin: 10px;
}

.delete-btn:hover {
    opacity: 0.9;
}

/* =========================
   🖼️ IMAGE GRID
========================= */
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.image-grid img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
}

.image-grid img:hover {
    border-color: var(--accent);
}

.icon {
    width: 30px; 
    vertical-align: middle;
    margin-right: 5px;
}

.cvs-image,
.stars-image {
    width: 25px;
    height: 25px;
    object-fit: contain;
}




 .ach-title-btn {
        background-color: #4f46e5;
        color: white;
        padding: 8px 16px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: 0.2s;
        display: inline-block;
        margin: 25px;
    }



/* =========================
   ⚙️ UTILS
========================= */
.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* =========================
   📱 RESPONSIVO
========================= */
@media (max-width: 800px) {

    .title {
        font-size: 6vw;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .left-perfil, .right-perfil {
        width: 100%;
    }

    .info {
        padding: 20px;
    }

    .achievement-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .update-btn {
        width: 90%;
    }
}