/*
 * Copyright (c) 2022 Ford Motor Company
 * All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use '../../../../Styles/main';

.action-item-archives {
	max-width: 1146px;
	margin: 0 auto;

	text-align: center;

	@include main.breakpoint-large {
		text-align: left;
	}
}

.action-item-archives-header {
	display: flex;
	justify-content: space-between;

	.actions-container {
		display: flex;
		gap: 1rem;
		align-items: flex-start;
		margin: 1.5rem 0;
	}

	.delete-selected-button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		width: 4.5rem;
		margin-top: 0.5rem;

		color: main.$red;

		&:focus,
		&:hover {
			color: main.$dark-red;
		}

		.delete-selected-text {
			font-weight: 600;
			font-size: 0.625rem;
			line-height: 0.75rem;
		}

		.trashcan-icon {
			width: 1.25rem;
			height: 1.25rem;
		}
	}

	.action-item-archives-title {
		margin-bottom: 0;

		font-weight: 600;
		font-size: 1.5rem;
	}

	.action-item-archives-description {
		margin-top: 0.5rem;
		margin-bottom: 2rem;

		color: main.$dark-gray;

		font-weight: 600;
		font-size: 1.1rem;
	}
}

.archived-action-items {
	display: grid;
	grid-gap: 2rem;
	grid-template-columns: repeat(auto-fill, 80%);
	justify-content: center;

	@include main.breakpoint-medium {
		grid-template-columns: repeat(auto-fill, 350px);
	}

	@include main.breakpoint-large {
		grid-gap: 3rem;
		grid-template-columns: repeat(auto-fill, 350px);
		justify-content: left;
	}
}

@include main.dark-theme {
	.action-item-archives-header {
		.delete-selected-button {
			color: main.$light-red;

			&:focus,
			&:hover {
				color: main.$dark-red;
			}
		}

		.action-item-archives-title {
			color: main.$off-white;
		}

		.action-item-archives-description {
			color: main.$light-gray;
		}
	}
}
