
/* #EFBE7D (239, 190, 125) - Pastel Orange */

@import url('https://fonts.cdnfonts.com/css/mantinia');

body {
    min-height: 100vh;
    max-height: 100vh;
    background: grey;
}

main {
    background: #fffdfb;
    color: black;
    max-width: 45%;
    padding: 35px;
    border: 5px solid #EFBE7D;
    font-size: 0.90em;
    margin: 80px 0 0 270px;
    position: relative;
    z-index: 0;
}

h1 {
    font-family: 'Mantinia', sans-serif;
    font-size: 2em;
    color: #EFBE7D;
}

h2 {
    font-family: 'Mantinia', sans-serif;
    font-size: 1.5em;
    text-align: center;
    width: 100%;
    margin: 0 0 25px 0;
    color: #FFEFD9;
    text-shadow: 0 0 8px rgba(240, 173, 70, 0.6);
    position: relative;
}

.container {
    width: auto;
    height: auto;
}

.sidebar {
    position: fixed;
    right: 76.5%;
    top: 20%;
    padding: 10px 5px;
    z-index: 1;
}

.sidebar-btn {
    font-family: 'Mantinia', sans-serif;
    display: flex;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 10px 0 10px auto;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #EFBE7D;
    border: 5px solid #EFBE7D;
    color: #fffdfb;
}

.sidebar-btn:hover, 
.sidebar-btn.active {
    width: 120px;
    padding: 10px;
}






.characters-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
  width: 100%;
}

.charbox {
  width: 80px;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease;
}

.charbox:hover {
  transform: translateY(-3px);
}

.char-portrait {
  display: block;
  text-decoration: none;
  color: #FFEFD9;
}

.char-portrait img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border: 1px solid rgba(240, 173, 70, 0.3);
  transition: all 0.2s ease;
  display: block;
}

.char-portrait:hover img {
  border-color: rgba(240, 173, 70, 0.8);
  box-shadow: 0 2px 6px rgba(240, 173, 70, 0.2);
}

.char-name {
  display: block;
  margin-top: 6px;
  font-family: 'Mantinia', sans-serif;
  font-size: 0.7em;
  transition: color 0.2s ease;
  padding: 2px 0;
  color: #FFEFD9;
  text-shadow: 0 0 4px rgba(240, 173, 70, 0.6);
}

.char-portrait:hover .char-name {
  color: #FFEFD9;
  text-shadow: 0 0 8px rgba(240, 173, 70, 0.9);
}

        .newspaper-header {
            text-align: center;
            margin-bottom: 20px;
            border-bottom: 2px solid rgba(240, 173, 70, 0.4);
            padding-bottom: 15px;
            position: relative;
        }

        .newspaper-header::after {
            content: "";
            position: absolute;
            bottom: -3px;
            left: 25%;
            right: 25%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(240, 173, 70, 0.7), transparent);
        }

        .newspaper-header h2 {
            font-family: 'Mantinia', sans-serif;
            font-size: 2.4em;
            margin-bottom: 5px;
            text-shadow: 0 0 15px rgba(240, 173, 70, 0.9);
            letter-spacing: 2px;
            background: linear-gradient(to right, #f0ad46, #ffefd9, #f0ad46);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-weight: bold;
        }

        .edition {
            font-style: italic;
            color: rgba(255, 239, 217, 0.8);
            font-size: 0.9em;
            letter-spacing: 1px;
        }

        .missions-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
            gap: 8px;
            flex-wrap: wrap;
        }

        .tab-button {
            background: rgba(20, 18, 16, 0.4);
            border: 1px solid rgba(240, 173, 70, 0.3);
            color: #FFEFD9;
            padding: 8px 16px;
            cursor: pointer;
            font-family: 'Mantinia', sans-serif;
            transition: all 0.3s ease;
            text-shadow: 0 0 4px rgba(240, 173, 70, 0.6);
            border-radius: 4px;
            font-size: 0.8em;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
        }

        .tab-button::before {
            content: "";
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(240, 173, 70, 0.2), transparent);
            transition: 0.5s;
        }

        .tab-button:hover::before {
            left: 100%;
        }

        .tab-button:hover {
            background: rgba(240, 173, 70, 0.15);
            border-color: rgba(240, 173, 70, 0.6);
            text-shadow: 0 0 8px rgba(240, 173, 70, 0.9);
            transform: translateY(-2px);
        }

        .tab-button.active {
            background: rgba(240, 173, 70, 0.25);
            border-color: rgba(240, 173, 70, 0.8);
            box-shadow: 0 0 12px rgba(240, 173, 70, 0.5);
            text-shadow: 0 0 10px rgba(240, 173, 70, 1);
        }

        .mission-item {
            background: linear-gradient(to right, rgba(30, 28, 26, 0.5) 0%, rgba(40, 36, 32, 0.5) 100%);
            border-left: 3px solid rgba(240, 173, 70, 0.5);
            padding: 15px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
            cursor: pointer;
            border-radius: 0 4px 4px 0;
            position: relative;
            overflow: hidden;
        }

        .mission-item::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 30px;
            height: 30px;
            background: linear-gradient(135deg, rgba(240, 173, 70, 0.1) 0%, transparent 70%);
            pointer-events: none;
        }

        .mission-item:hover {
            background: linear-gradient(to right, rgba(40, 38, 36, 0.7) 0%, rgba(50, 46, 42, 0.7) 100%);
            border-left-color: rgba(240, 173, 70, 0.9);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            transform: translateX(5px);
        }

        .mission-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .mission-item h3 {
            font-family: 'Mantinia', sans-serif;
            margin-top: 0;
            margin-bottom: 8px;
            color: #FFEFD9;
            text-shadow: 0 0 6px rgba(240, 173, 70, 0.7);
            font-size: 1.3em;
            flex: 1;
        }

        .mission-brief {
            display: flex;
            gap: 20px;
            font-size: 0.85em;
            color: rgba(255, 239, 217, 0.8);
        }

        .mission-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8em;
            color: rgba(255, 239, 217, 0.7);
            border-top: 1px dashed rgba(240, 173, 70, 0.2);
            padding-top: 10px;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 10px;
        }

        .mission-level {
            background: rgba(240, 173, 70, 0.2);
            padding: 3px 8px;
            border-radius: 3px;
            font-weight: bold;
        }

        .mission-location::before {
            content: "📍 ";
        }

        .mission-reward::before {
            content: "💰 ";
        }

        .mission-desc {
            color: rgba(255, 239, 217, 0.9);
            line-height: 1.5;
            margin: 10px 0;
            font-size: 0.95em;
            position: relative;
        }

        .mission-details-container {
            margin: 15px 0;
        }

        .detail-section {
            background: rgba(20, 18, 16, 0.3);
            padding: 12px;
            border-radius: 4px;
            margin-bottom: 12px;
            border-left: 2px solid rgba(240, 173, 70, 0.3);
        }

        .detail-section h4 {
            margin-top: 0;
            color: #FFEFD9;
            border-bottom: 1px solid rgba(240, 173, 70, 0.3);
            padding-bottom: 5px;
            font-size: 0.95em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
        }

        .detail-section h4::before {
            content: "◆";
            margin-right: 8px;
            color: rgba(240, 173, 70, 0.8);
            font-size: 0.8em;
        }

        /* Estilo para conteúdo expandido */
        .mission-body {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s ease;
        }

        .mission-item[open] .mission-body {
            max-height: 2000px;
        }

        /* Remover marcador padrão do details */
        .mission-item summary {
            list-style: none;
            cursor: pointer;
        }

        .mission-item summary::-webkit-details-marker {
            display: none;
        }

        /* Indicador de expansão */
        .mission-item summary::after {
            content: "+";
            position: absolute;
            right: 15px;
            top: 15px;
            transition: transform 0.3s ease;
            color: rgba(240, 173, 70, 0.7);
            font-size: 1.2em;
        }

        .mission-item[open] summary::after {
            content: "-";
            transform: rotate(0deg);
        }

        /* Responsividade */
        @media (max-width: 768px) {
            .mission-head {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .mission-brief {
                flex-direction: column;
                gap: 5px;
            }
            
            .tab-button {
                font-size: 0.75em;
                padding: 6px 12px;
            }
            
            .mission-meta {
                flex-direction: column;
                gap: 8px;
            }
        }

        /* Animações */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.4s ease;
        }

        .tab-content.active {
            display: block;
        }

.character-profile {
    background: rgba(30, 28, 26, 0.5);
    border: 1px solid rgba(240, 173, 70, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-header {
    text-align: center;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(240, 173, 70, 0.3);
    padding-bottom: 15px;
}

.profile-header h2 {
    font-family: 'Mantinia', sans-serif;
    font-size: 2.2em;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(240, 173, 70, 0.8);
    letter-spacing: 1px;
    color: #FFEFD9;
}

.profile-content {
    display: flex;
    gap: 25px;
}

.profile-main {
    flex: 2;
}

.profile-details {
    flex: 1;
    background: rgba(20, 18, 16, 0.3);
    padding: 15px;
    border-radius: 4px;
    border-left: 3px solid rgba(240, 173, 70, 0.5);
}

.profile-section {
    background: rgba(240, 173, 70, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.profile-section h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    color: #FFEFD9;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(240, 173, 70, 0.7);
}

.profile-section p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: rgba(255, 239, 217, 0.9);
}

.details-category {
    margin-bottom: 20px;
}

.details-category h4 {
    background: rgba(240, 173, 70, 0.2);
    color: #000;
    padding: 8px 0;
    text-align: center;
    margin: 0 0 10px 0;
    font-size: 1.05em;
    font-weight: 600;
    border-radius: 3px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(240, 173, 70, 0.2);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #FFEFD9;
}

.detail-value {
    color: rgba(255, 239, 217, 0.9);
}

.abilities-section,
.relationships-section,
.trivia-section,
.gallery-section {
    background: rgba(30, 28, 26, 0.5);
    border: 1px solid rgba(240, 173, 70, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.section-header {
    background: rgba(240, 173, 70, 0.2);
    color: #000;
    padding: 12px 0;
    text-align: center;
    margin: -25px -25px 25px -25px;
    border-bottom: 1px solid rgba(240, 173, 70, 0.3);
}

.section-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ability-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(240, 173, 70, 0.2);
}

.ability-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ability-info {
    flex: 2;
}

.ability-info h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    color: #FFEFD9;
    text-shadow: 0 0 6px rgba(240, 173, 70, 0.7);
}

.ability-info p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: rgba(255, 239, 217, 0.9);
}

.ability-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    height: 140px;
    border: 1px solid rgba(240, 173, 70, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 42, 42, 0.7);
}

.image-placeholder p {
    color: rgba(255, 239, 217, 0.5);
    font-size: 0.9em;
}

.relationship-item {
    display: flex;
    min-height: 50px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(240, 173, 70, 0.2);
    align-items: center;
}

.relationship-item:last-child {
    border-bottom: none;
}

.relationship-name {
    flex: 0 0 120px;
}

.relationship-name h5 {
    margin: 0;
    font-size: 0.95em;
    color: #FFEFD9;
    font-weight: 600;
}

.relationship-name p {
    margin: 3px 0 0 0;
    font-size: 0.85em;
    color: rgba(255, 239, 217, 0.8);
}

.relationship-description {
    flex: 1;
    padding-left: 15px;
    position: relative;
}

.relationship-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(240, 173, 70, 0.2);
}

.relationship-description p {
    margin: 0;
    font-size: 0.95em;
    color: rgba(255, 239, 217, 0.9);
    padding-left: 10px;
}

.trivia-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(240, 173, 70, 0.2);
}

.trivia-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trivia-bullet {
    width: 14px;
    height: 14px;
    background: rgba(240, 173, 70, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.trivia-bullet::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #2a2a2a;
    border-radius: 50%;
}

.trivia-item p {
    margin: 0;
    font-size: 0.95em;
    color: rgba(255, 239, 217, 0.9);
    flex: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    border: 1px solid rgba(240, 173, 70, 0.3);
    background: rgba(20, 18, 16, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.gallery-caption {
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid rgba(240, 173, 70, 0.2);
}

.gallery-caption p {
    margin: 0;
    color: rgba(255, 239, 217, 0.9);
}

@media (max-width: 768px) {
    .profile-content {
        flex-direction: column;
    }
    
    .ability-item {
        flex-direction: column;
    }
    
    .relationship-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .relationship-description {
        padding-left: 0;
        padding-top: 10px;
        width: 100%;
    }
    
    .relationship-description::before {
        display: none;
    }
}

.selection-container {
    width: 100%;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 40px;
}

.category-title {
    font-family: 'Mantinia', sans-serif;
    font-size: 1.5em;
    color: #FFEFD9;
    text-shadow: 0 0 10px rgba(240, 173, 70, 0.8);
    margin-bottom: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 300;
}

.category-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(240, 173, 70, 0.6), 
        transparent);
    margin: 0 auto 24px;
    border: none;
    width: 70%;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.icon-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.icon-item {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    background: rgba(15, 15, 15, 0.2);
}

.icon-link:hover .icon-item {
    background: rgba(240, 173, 70, 0.1);
    transform: translateY(-2px);
}

.icon-wrapper {
    width: 75px;
    height: 75px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: none;
    background: transparent;
}

.icon-link:hover .icon-wrapper {
    transform: translateY(-5px) scale(1.05);
}

.icon-image {
    font-size: 2.4em;
    color: #FFEFD9;
    text-shadow: 0 0 12px rgba(240, 173, 70, 0.7);
    filter: drop-shadow(0 0 6px rgba(240, 173, 70, 0.5));
    transition: all 0.3s ease;
}

.icon-link:hover .icon-image {
    filter: drop-shadow(0 0 10px rgba(240, 173, 70, 0.8));
}

.icon-name {
    font-family: 'Mantinia', sans-serif;
    font-size: 0.85em;
    color: #FFEFD9;
    text-shadow: 0 0 5px rgba(240, 173, 70, 0.7);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 300;
}

.icon-link:hover .icon-name {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(240, 173, 70, 0.9);
    letter-spacing: 1px;
}

.icon-placeholder {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, 
        rgba(240, 173, 70, 0.25), 
        rgba(210, 150, 50, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(240, 173, 70, 0.4);
}

.icon-placeholder::before {
    content: "⚪";
    font-size: 1.6em;
    color: rgba(240, 173, 70, 0.8);
}