@import "../../common";
@import "./Pane";

.levellingarea-info-pane {
	.pane--header {
		background-color: #ff8200;
	}

	.section-image {
		img {
			width: 100%;
		}
	}

	.details {
		align-items: center;
		dt {
			flex: 1 0 45%;
			margin: 0.25rem 0;
		}
		dd {
			flex: 1 0 55%;
		}
	}

	.area-list {
		margin: $menu-padding 0;
		padding: 0;

		li {
			display: flex;
			align-items: center;
			align-content:stretch;
			cursor: pointer;

			padding: 0.2rem $menu-padding;

			span {
				opacity: 0.8;
			}

			&:hover {
				background: transparentize($color-divider, 0.1);
				span {
					opacity: 1;
				}
			}

			&.area-list--earlier-level {
				span {
					opacity: 0.4;
				}
			}
			&.area-list--current {
				background: $color-divider;
			}

			span.icon {
				flex: 0;
				margin-right: 0.2rem;
			}
			span.name {
				flex-grow: 1;
				flex-shrink: 1;
				flex-basis: 60%;
			}
			span.rating {
				flex-grow: 1;
				flex-shrink: 0;
				flex-basis: 20%;
				color: $color-text-3;
				font-size: 0.9rem;
			}
			span.level {
				flex-grow: 1;
				flex-shrink: 0;
				flex-basis: 20%;
			}
		}
	}
}
