import { css } from 'lit';

export default css`
	:host {
		display: flex;
		flex: 1;
		flex-direction: column;

		--text-color: inherit;
		--text-color-active: white;
		--headline-font-size: 22px;
		--caption-font-size: 13px;

		--inactive-background-color: inherit;
		--red-level-color: var(---error-color, #db4437);
		--orange-level-background-color: #ee5a24;
		--yellow-level-background-color: var(--warning-color, #ffa600);
	}

	ha-card {
		flex-direction: column;
		flex: 1;
		position: relative;
		padding: 0px;
		border-radius: var(--ha-card-border-radius, 12px);
		box-shadow: var(
			--ha-card-box-shadow,
			0px 2px 1px -1px rgba(0, 0, 0, 0.2),
			0px 1px 1px 0px rgba(0, 0, 0, 0.14),
			0px 1px 3px 0px rgba(0, 0, 0, 0.12)
		);
		overflow: hidden;
		transition: all 0.3s ease-out 0s;
		color: var(--text-color);
	}

	a {
		color: var(--secondary-text-color);
	}

	.container {
		background: var(--card-background-color);
		cursor: pointer;
		overflow: hidden;
		position: relative;
	}

	.content {
		display: flex;
		padding: 36px 28px;
		justify-content: center;
	}

	.main-icon {
		--mdc-icon-size: 50px;
		height: 50px;
		flex: 0;
	}

	.headline {
		flex: 1;
		font-size: var(--headline-font-size);
		line-height: normal;
		margin: auto;
		margin-left: 18px;
		text-align: center;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.caption {
		top: 0;
		right: 0;
		position: absolute;
		display: flex;
		align-items: center;
		margin: 10px 12px;
		font-size: var(--caption-font-size);
		line-height: normal;
	}

	.caption-icon {
		--mdc-icon-size: 19px;
		height: 19px;
		flex: 0;
		margin-left: 5px;
	}

	.headline-narrow,
	.headline-verynarrow {
		display: none;
	}

	.event-red {
		background-color: var(--red-level-color);
	}

	.event-orange {
		background-color: var(--orange-level-background-color);
	}

	.event-yellow {
		background-color: var(--yellow-level-background-color);
	}

	.event-red,
	.event-orange,
	.event-yellow {
		color: var(--text-color-active);
	}

	.event-none {
		background-color: var(--inactive-background-color);
	}

	.swiper {
		--swiper-pagination-bullet-size: 5px;
	}

	.swiper-pagination-bullet {
		background-color: #dfdfdf;
	}
	.swiper-pagination-bullet-active {
		background-color: #ffffff;
	}
`;
