/**
 * GrandScreen - Стили для новых компонентов
 *
 * Includes:
 * - Timeline (История обновлений)
 * - FAQ (Аккордеон)
 * - Мнение редактора
 * - Разрешения приложения
 *
 * @package GrandScreen
 * @since 1.0.0
 */

.app-section-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 24px;
	color: #111827;
}



.app-faq {
	margin: 40px 0;
	padding: 32px 0;
	border-top: 1px solid #e5e7eb;
}

.faq__accordion {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
}

.faq-item {
	border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
	border-bottom: none;
}

.faq-item__question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: #fff;
	border: none;
	text-align: left;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
}

.faq-item__question:hover {
	background: #f9fafb;
}

.faq-item__question[aria-expanded="true"] {
	background: #f3f4f6;
}

.faq-item__question-text {
	flex: 1;
	padding-right: 16px;
}

.faq-item__icon {
	flex-shrink: 0;
	transition: transform 0.3s ease;
	color: #6b7280;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
	transform: rotate(180deg);
	color: #3b82f6;
}

.faq-item__answer {
	background: #fafbfc;
	overflow: hidden;
	transition: all 0.3s ease;
}

.faq-item__answer-content {
	padding: 0 24px 20px 24px;
	font-size: 14px;
	line-height: 1.7;
	color: #4b5563;
}

.faq-item__answer-content p {
	margin: 0;
}



.app-editor-opinion {
	margin: 40px 0;
	padding: 32px 0;
}

.editor-opinion__container {
	display: flex;
	gap: 24px;
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border-radius: 16px;
	padding: 28px;
	border-left: 4px solid #f59e0b;
}

.editor-opinion__icon {
	flex-shrink: 0;
}

.editor-opinion__content {
	flex: 1;
}

.editor-opinion__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px 0;
	color: #92400e;
	display: flex;
	align-items: center;
	gap: 8px;
}

.editor-opinion__title::before {
	content: '✏️';
	font-size: 20px;
}

.editor-opinion__text {
	font-size: 15px;
	line-height: 1.7;
	color: #78350f;
}

.editor-opinion__text p {
	margin: 0 0 12px 0;
}

.editor-opinion__text p:last-child {
	margin-bottom: 0;
}



.app-permissions {
	margin: 40px 0 20px 0;
	padding: 32px 0 0 0;
	border-top: 1px solid #e5e7eb;
}

.app-permissions__description {
	font-size: 15px;
	color: #6b7280;
	margin-bottom: 20px;
}

.app-permissions__list {
	display: grid;
	gap: 16px;
}

.permission-item {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: #f9fafb;
	border-radius: 10px;
	border-left: 3px solid #d1d5db;
	transition: all 0.3s ease;
}

.permission-item:hover {
	background: #f3f4f6;
	border-left-color: #3b82f6;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.permission-item__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e5e7eb;
	border-radius: 8px;
	color: #6b7280;
}

.permission-item__content {
	flex: 1;
}

.permission-item__name {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 4px 0;
	color: #111827;
	text-transform: capitalize;
}

.permission-item__description {
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
	margin: 0;
}


.permission-camera .permission-item__icon {
	background: #dbeafe;
	color: #2563eb;
}

.permission-location .permission-item__icon {
	background: #dcfce7;
	color: #16a34a;
}

.permission-storage .permission-item__icon {
	background: #fef3c7;
	color: #f59e0b;
}

.permission-network .permission-item__icon {
	background: #e0e7ff;
	color: #6366f1;
}

.permission-microphone .permission-item__icon {
	background: #fce7f3;
	color: #ec4899;
}

.permission-contacts .permission-item__icon {
	background: #ddd6fe;
	color: #7c3aed;
}



@media (max-width: 768px) {
	.app-section-title {
		font-size: 20px;
	}

	.editor-opinion__container {
		flex-direction: column;
		padding: 20px;
	}

	.editor-opinion__icon {
		align-self: flex-start;
	}

	.faq-item__question {
		padding: 16px 20px;
		font-size: 15px;
	}

	.faq-item__answer-content {
		padding: 0 20px 16px 20px;
	}

	.permission-item {
		padding: 12px;
		gap: 12px;
	}

	.permission-item__icon {
		width: 36px;
		height: 36px;
	}
}

@media (max-width: 480px) {

}



.permissions-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	width: 100%;
	text-align: left;
	margin-bottom: 0;
}

.permissions-toggle:hover {
	background: #F3F4F6;
	border-color: #D1D5DB;
}

.permissions-toggle-icon {
	transition: transform 0.3s ease;
	font-size: 16px;
	color: #6B7280;
}

.permissions-toggle.is-expanded .permissions-toggle-icon {
	transform: rotate(180deg);
}


.permissions-list-wrapper {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.3s ease;
	opacity: 0;
}

.permissions-list-wrapper.is-expanded {
	max-height: 3000px;
	opacity: 1;
}
