/*
 Theme Name:   Anagram
 Theme URI:    http://example.com/anagram
 Description:  Тема сайта "Anagram"
 Author:       Author
 Author URI:   http://example.com
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  anagram
*/

:root{
	--primary: #8A2BE2; /* Яркий фиолетовый */
	--primary-dark: #6A1B9A;
	--secondary: #00D8FF; /* Яркий циан */
	--accent: #FF4081; /* Яркий розовый */
	--dark: #1A1A2E;
	--light: #F8F9FA;
	--gray: #E2E3E5;
	--sidebar-width: 275px;

}


* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background-color: var(--light);
	color: var(--dark);
	line-height: 1.6;
	display: flex;
	min-height: 100vh;
}

#sidebar {
	width: var(--sidebar-width);
	background: linear-gradient(180deg, var(--primary), var(--primary-dark));
	color: white;
	padding: 1.5rem 0;
	position: fixed;
	height: 100vh;
	box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
	z-index: 100;
	transition: all 0.3s ease;
}

.sidebar-header {
	padding: 0 1.5rem 1.5rem;
	display: flex;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
	font-size: 1.8rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	color: #fff;
	text-decoration: none;
}

.logo-icon {
	margin-right: 10px;
	font-size: 2rem;
	color: var(--secondary);
}

.nav-menu {
	padding: 1.5rem 0;
}

.nav-item {
	padding: 0.8rem 1.5rem;
	margin: 0.2rem 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.nav-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
	background-color: rgba(255, 255, 255, 0.15);
}

.nav-item.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 4px;
	background-color: var(--secondary);
}

.nav-icon {
	margin-right: 10px;
	font-size: 1.2rem;
	width: 24px;
	text-align: center;
}

a.nav-item {
    color: #fff;
    text-decoration: none;
}

.page-content {
	flex: 1;
	margin-left: var(--sidebar-width);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

main#content {
    width: 100%;
	display: flex;
    flex-direction: row;
    align-items: stretch;
}

.container {
	max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.search-container {
	background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid var(--gray);
    transition: all 0.3s ease;
}

.search-container:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-title-icon {
    margin-right: 10px;
    color: var(--accent);
}

.search-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}



.search-box {
	display: flex;
	margin-bottom: 1.5rem;
}

.search-input {
	flex: 1;
	padding: 1rem 1.5rem;
	border: 2px solid var(--gray);
	border-radius: 8px 0 0 8px;
	font-size: 1rem;
	outline: none;
	transition: all 0.3s ease;
	background-color: var(--light);
}

.search-input:focus {
	border-color: var(--primary);
	background-color: white;
}

.search-btn {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
	border: none;
	padding: 0 2rem;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.search-btn:hover {
	background: linear-gradient(135deg, var(--primary-dark), var(--accent));
	transform: translateY(-1px);
}

.search-btn-icon {
	margin-left: 8px;
}

.results {
	margin-top: 2rem;
}

.result-group {
	margin-bottom: 2.5rem;
}

.result-title {
	font-size: 1.3rem;
	color: var(--primary);
	margin-bottom: 1.2rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--gray);
	display: flex;
	align-items: center;
}

.result-title-icon {
	margin-right: 10px;
	color: var(--accent);
}

.result-title h2 {
    font-size: 1.3rem;
}

.result-words {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.word {
	background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 216, 255, 0.1));
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
	font-weight: 500;
	border: 1px solid rgba(138, 43, 226, 0.2);
	text-decoration: none;
	min-width: 150px;
	text-align: center;
}

.word:hover {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: white;
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
	border-color: transparent;
}

.word a {
    color: #000;
    text-decoration: none;
    transition: all .3s ease;
	text-decoration: none;
	padding: 0.8rem 1.2rem;
    display: block;
}

.word:hover a {
    color: #fff;
}

.symbol-categories a.word {padding: 0.8rem 1.2rem;}

.categories-list,
.symbols-list {
	list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
	gap: 0.8rem;
}

span#symbol-text {
    font-size: 120px;
    width: 250px;
    height: 250px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray);
}

button#copy-symbol-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 0.5rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    width: 250px;
	margin-top: auto;
	position: relative;
}

.symbol-display .word {
	text-decoration: none;
	color: #000;
}

.symbol-display .word:hover {
	color: #fff;
}

.symbol-display strong {
    padding-right: 1rem;
}

.hero {
    padding: 2rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 216, 255, 0.1));
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero .h1 {
    font-size: 2.4rem;
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
	font-weight: bold;
}

.hero-letters {
    position: absolute;
    inset: 0;
}

.hero-letters span:nth-child(1) {
    position: absolute;
    left: 2%;
    top: -10%;
    font-size: 90px;
    color: #992ed5;
    font-weight: 700;
    transform: rotate(-35deg);
    opacity: .3;
}


.hero-letters span:nth-child(2) {
    position: absolute;
    left: 75%;
    top: 37%;
    font-size: 90px;
    color: #992ed5;
    font-weight: 700;
    transform: rotate(30deg);
    opacity: .3;
}


.hero-letters span:nth-child(3) {
    position: absolute;
    left: 25%;
    top: 57%;
    font-size: 90px;
    color: #992ed5;
    font-weight: 700;
    transform: rotate(30deg);
    opacity: .3;
}

footer.site-footer {
    padding: 3rem 0;
	margin-top: auto;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
	position: relative;
	z-index: 1;
}

.mainpage-features {
	margin-bottom: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.feature-card {
	background-color: white;
	padding: 2rem;
	border-radius: 12px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border: 1px solid var(--gray);
}

.feature-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
	border-color: var(--primary);
}

.feature-icon {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.feature-card h3 {
	margin-bottom: 1rem;
	color: var(--primary);
	font-size: 1.3rem;
}

a.feature-card {
    text-decoration: none;
    color: #000;
}

#menu-trigger {
    display: none;
}

#menu-trigger-close {
	display: none;
}

.single-symbols .search-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.symbol-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.symbol-card {
	display: grid;
	gap: 2rem;
}

.symbol-card {
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"symbol content"
		"symbol content"
		"symbol content";
	align-items: start; /* чтобы элементы не растягивались по высоте */
}

#symbol-text {
	grid-area: symbol;
	font-size: 2.5rem;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 60px; /* или как нужно */
}

.search-title,
.symbol-categories,
#copy-symbol-btn {
	grid-area: content;
}

.symbol-categories {
    margin-top: 5rem;
}

.symbols-archive ul.categories-list li.word {
    width: calc((100% / 3) - 0.6rem);
    background: #fff;
}

span.category-preview-symbol {
    display: block;
    font-size: 2rem;
    color: var(--primary);
}

.symbols-archive ul.categories-list li.word:hover a {
    color: #000;
}

.features-grid.features-symbols {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

footer.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

footer.site-footer .container a {
    color: #000;
    text-decoration: none;
}

@media screen and (max-width: 1000px) {
	div#menu-trigger {
		position: absolute;
		top: 10px;
		right: 20px;
		background: var(--primary);
		font-size: 36px;
		color: #fff;
		width: 50px;
		height: 50px;
		display: flex;
		line-height: 50px;
		align-items: center;
		justify-content: center;
		text-align: center;
		border-radius: 8px;
	}
	
	.hero {
		/*padding-top: 5rem;*/
		padding: 1rem 0;
	}
	
	.hero .h1 {
		font-size: 1.6rem;
        line-height: 1.4em;
        text-align: left;
        width: 85%;
	}

	#sidebar {
		position: fixed;
		left: 0;
		transform: translateX(-100%);
		width: 100%;
	}

	.page-content {
		margin-left: 0;
	}

	#sidebar.vis {
		transform: translateX(0%);
	}
	
	#menu-trigger-close {
		position: absolute;
		top: 20px;
		right: 30px;
		color: #fff;
		display: block;
		font-size: 36px;
	}
	
	.hero h1 {
		line-height: 1em;
		font-size: 1.6rem;
		width: 85%;
		text-align: left;
	}

	.search-title {
		line-height: 1em;
	}

	.search-input {
		width: 80%;
	}

	.search-btn {
		width: 20%;
		font-size: 0;
	}
	.search-btn .search-btn-icon {
		font-size: 14px;
		margin: 0
	}
	
	.search-container h1 {
		font-size: 1.6rem;
		line-height: 1em;
		margin-bottom: 2rem;
	}
	
	span#symbol-text {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
		order: 2;
	}

	button#copy-symbol-btn {
		width: 100%;
		order: 4
	}
	
	.symbol-card {
		grid-template-areas:
			"title"
			"symbol"
			"categories"
			"button";
		gap: 2rem 0;
		display: flex;
        flex-direction: column;
        width: 100%;
	}

	.search-title { grid-area: title; }
	#symbol-text { grid-area: symbol; }
	#copy-symbol-btn { grid-area: button; }
	.symbol-categories { grid-area: categories; margin-top: 0; order: 3; width: 100%;}

	.symbol-categories strong {
	    display: none;
	}
	
	.search-container.single-symbol h1.search-title {
		margin-bottom: 0;
		font-size: 1.2rem;
		order: 1;
	}
	
	.word {
		width: 100%;
		display: block;
		text-align: center;
	}
	
	.symbols-archive ul.categories-list li.word {
		width: 100%;
	}

	.symbols-archive ul.categories-list {
		margin-top: 2rem;
	}
	
	.search-title-icon {
		display: none;
	}
	
	.container {
		padding: 0 1rem;
	}

	.search-container {
		padding: 2rem 1rem;
	}
	
	footer.site-footer .container {
		flex-direction: column-reverse;
	}
	
	.feature-card {
		max-width: 100%;
	}

	.features-grid.mainpage-features {
		max-width: 100%;
		grid-template-columns: 1fr;
	}
}


















