/* ========================================
   PAGE
======================================== */
body.page-clan{
    visibility:hidden;
    background:#09090b;
    margin:0;
    padding:0;
    color:#e4e4e7;
    font-family:'Inter', Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body.page-clan.ready{
    visibility:visible;
}

/* ========================================
   WRAPPER
======================================== */
.clan-wrapper{
    max-width:650px;
    margin:0 auto;
    padding:10px 12px 100px;
    box-sizing:border-box;
}

/* ========================================
   HEADER
======================================== */
.statue-header{
    background: #111113;
    border:1px solid #27272a;
    border-radius:12px;
    padding:15px;
    margin-bottom:12px;
    text-align:center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.statue-icon{
    font-size:28px;
    margin-bottom:8px;
    filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.2));
}

.statue-title{
    font-size:16px;
    font-weight:800;
    margin-bottom:4px;
    color: #c4a760;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.statue-level{
    font-size:13px;
    color:#a1a1aa;
    margin-bottom:10px;
    font-weight: 600;
}

.statue-power{
    font-size:18px;
    font-weight:800;
    color:#6e9a44;
}

/* ========================================
   CARDS
======================================== */
.statue-card{
    background: #111113;
    border:1px solid #27272a;
    border-radius:12px;
    padding:15px;
    margin-bottom:10px;
    user-select: none;
    -webkit-user-select: none;
}

.upgrade-card {
    background: #111113;
}

.section-title{
    text-align:center;
    font-size:13px;
    font-weight:800;
    color:#a1a1aa;
    text-transform:uppercase;
    margin-bottom:12px;
    letter-spacing:1px;
    border-bottom: 1px solid #27272a;
    padding-bottom: 8px;
}

.statue-info{
    text-align:center;
    font-size:13px;
    line-height:1.6;
    color:#a1a1aa;
    margin-bottom:15px;
}

/* ========================================
   UPGRADE & TESOURARIA
======================================== */
.text-gold { color: #c4a760; font-weight: 700; }
.text-silver { color: #a1a1aa; font-weight: 700; }
.text-power { color: #6e9a44; font-weight: 700; }

.upgrade-stats { margin-bottom: 8px; color: #e4e4e7; }
.upgrade-cost { margin-bottom: 12px; color: #e4e4e7; }

.treasury-box {
    background: #09090b;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #27272a;
    margin-top: 10px;
}

.treasury-title {
    display: block;
    color: #71717a;
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 800;
}

.divider { color: #3f3f46; margin: 0 6px; }

/* ========================================
   BÔNUS (NOVO LAYOUT 3 COLUNAS)
======================================== */
.layout-3col {
    display: grid;
    grid-template-columns: 85px 1fr 90px;
    gap: 8px;
    align-items: center;
    padding: 12px;
}

.b-col-left { text-align: left; }
.b-col-mid { text-align: center; }
.b-col-right { text-align: center; }

.b-title {
    font-size: 11px;
    font-weight: 800;
    color: #a1a1aa;
    margin-bottom: 6px;
    line-height: 1.2;
}

.b-status {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 0;
    border-radius: 4px;
    background: #09090b;
    border: 1px solid #27272a;
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.b-value {
    font-size: 13px;
    font-weight: 800;
    color: #c4a760;
    margin-bottom: 6px;
}

.b-timer {
    font-size: 12px;
    font-family: monospace;
    color: #a1a1aa;
    background: #09090b;
    padding: 4px;
    border-radius: 4px;
    border: 1px solid #27272a;
}

.b-cost {
    font-size: 10px;
    font-weight: 700;
    color: #71717a;
    margin-top: 5px;
}

/* ========================================
   STATUS
======================================== */
.status-active{
    color: #6e9a44;
    border-color: #264016;
    background: #0a140b;
}

.status-inactive{
    color: #ef4444;
    border-color: #450a0a;
    background: #1a0505;
}

/* ========================================
   BOTÕES
======================================== */
.statue-btn{
    display:block;
    width:100%;
    height:42px;
    margin-top:5px;
    box-sizing:border-box;

    background: #18181b;
    border:1px solid #27272a;
    border-radius:6px;

    color:#e4e4e7;
    font-size:12px;
    font-weight:800;

    cursor:pointer;
    outline:none;
    
    transition: transform .12s ease, background .12s ease;
    
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    appearance:none;
    -webkit-appearance:none;
    -webkit-tap-highlight-color:transparent;
    touch-action: manipulation;
}

.layout-3col .statue-btn {
    height: 36px;
    font-size: 11px;
    margin-top: 0;
}

.btn-action {
    background: #1e3a8a;
    border-color: #1e40af;
    color: #e0e7ff;
}

.statue-btn * {
    pointer-events: none;
}

.statue-btn:focus{
    outline:none;
}

.statue-btn:active{
    transform:scale(.95);
    background: #27272a;
}

/* ESTADO PADRÃO DESATIVADO (Cinza/Carregando) */
.statue-btn:disabled{
    background: #09090b;
    border-color: #27272a;
    color: #71717a;
    pointer-events:none;
    opacity: 0.8;
}

/* ESTADO ATIVO DO BUFF (Verde Musgo) - Adicionado pelo JS */
.statue-btn.btn-active-buff {
    background: #0a140b !important;
    border-color: #264016 !important;
    color: #6e9a44 !important;
    opacity: 1 !important;
    pointer-events:none;
}

/* ========================================
   VOLTAR
======================================== */
.back-btn{
    display:block;
    text-align:center;
    text-decoration:none;
    background:#111113;
    border:1px solid #27272a;
    border-radius:8px;
    padding:14px;
    color:#a1a1aa;
    font-size:13px;
    font-weight:700;
    transition: transform 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:active{
    background:#18181b;
    color: #e4e4e7;
    transform:scale(.97);
}

/* ========================================
   MOBILE
======================================== */
@media(max-width:400px){
    .statue-title{ font-size:15px; }
    .statue-power{ font-size:16px; }
    .layout-3col { grid-template-columns: 80px 1fr 80px; gap: 6px; }
    .b-title { font-size: 10px; }
    .b-status { font-size: 9px; }
    .b-value { font-size: 11px; }
    .b-timer { font-size: 10px; }
    .layout-3col .statue-btn { font-size: 10px; height: 32px; }
    .b-cost { font-size: 9px; }
}
