/* Category Selection Modal */

#categoryselect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

#categoryselect-modal.hidden {
    display: none;
}

.categoryselect-container {
    /* BACKGROUND IMAGE FUNDO1 - padrão */
    background-image: url('../../../assets/images/home/fundo1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fdf6e3;

    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 4px solid #5d4037;
    /* Borda de madeira */
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

.categoryselect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid rgba(93, 64, 55, 0.2);
    flex-shrink: 0;
}

.categoryselect-header h2 {
    color: #ffffff;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    text-shadow:
        2px 0 0 #5d4037, -2px 0 0 #5d4037, 0 2px 0 #5d4037, 0 -2px 0 #5d4037,
        1px 1px 0 #5d4037, -1px -1px 0 #5d4037, 1px -1px 0 #5d4037, -1px 1px 0 #5d4037,
        0 3px 6px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    flex: 1;
    text-align: center;
}

.btn-back-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    transition: all 0.2s;
    display: none;
}

.btn-back-modal.visible {
    display: block;
}

.btn-back-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.categoryselect-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* Cycles List */
.cycles-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cycle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    /* White transparent */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cycle-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.cycle-btn:active {
    transform: translateX(2px);
}

/* Cores por ciclo */
.cycle-btn[data-cycle="saude_main"] {
    border-left: 4px solid #ef4444;
}

/* Red for Health */
.cycle-btn[data-cycle="natureza_main"] {
    border-left: 4px solid #22c55e;
}

/* Green for Nature */
.cycle-btn[data-cycle="tecnologia_main"] {
    border-left: 4px solid #3b82f6;
}

/* Blue for Tech */

.cycle-icon {
    width: 40px;
    height: 40px;
    background: rgba(139, 69, 19, 0.1);
    /* Darker icon bg */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cycle-info {
    flex: 1;
}

.cycle-info h3 {
    color: #5d4037;
    /* Dark brown */
    font-family: 'Luckiest Guy', cursive;
    /* Updated Font */
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0 0 2px 0;
    letter-spacing: 0.5px;
}

.cycle-info p {
    color: #8d6e63;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
}

.cycle-arrow {
    color: #8d6e63;
    font-size: 20px;
    font-family: 'Luckiest Guy', cursive;
}

/* Subcategories List */
.subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subcategories-list.hidden {
    display: none;
}

.subcategory-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    background: rgba(255, 255, 255, 0.6);
    /* Slightly more transparent */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.subcategory-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.02);
}

.subcategory-btn:active {
    transform: scale(0.98);
}

.subcategory-icon {
    font-size: 22px;
    width: 36px;
    text-align: center;
    flex-shrink: 0;
}

.subcategory-info {
    flex: 1;
}

.subcategory-info h4 {
    color: #5d4037;
    font-family: 'Luckiest Guy', cursive;
    /* Updated Font */
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.5px;
}

.subcategory-words {
    color: #8d6e63;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    margin-top: 2px;
    font-weight: 500;
}

.subcategory-play {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.subcategory-play:hover {
    filter: brightness(1.1);
}

/* Scrollbar styling */
.categoryselect-content::-webkit-scrollbar {
    width: 6px;
}

.categoryselect-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.categoryselect-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.categoryselect-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}