/*
Theme Name: Symbol-Select-Theme
Theme URI: https://www.symbolselect.com/
Author: SymbolSelect.com
Author URI: https://www.symbolselect.com/
Description: A clean, minimal black and white theme for symbol finder websites.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: symbol-select-theme
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #f5f5f5;
    --header-height: 70px; /* New variable for consistent header height */
    --panel-width: 285px; /* New variable for consistent panel width */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    padding-top: var(--header-height); /* Prevents content under fixed header */
}

a {
    text-decoration: none;
    color: var(--black);
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space under images */
}

button {
  background: #444;
  border: 0;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid var(--black);
    z-index: 1000;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.site-branding {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.custom-logo {
    height: 40px;
    width: auto;
    max-width: 291px;
}

/* Menu and Search Toggle Icons */
.menu-toggle,
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
}

/* Panel Styles */
.main-navigation,
.search-form {
    position: fixed;
    top: 0;
    width: 90%;
    max-width: var(--panel-width);
    height: 100vh;
    background: var(--white);
    z-index: 1002;
    transition: transform 0.3s ease;
    padding: 1rem .5rem;
    overflow-y: auto;
}

.main-navigation {
    left: 0;
    transform: translateX(-100%);
}

.search-form {
    right: 0;
    transform: translateX(100%);
}

.main-navigation.active {
    transform: translateX(0);
}

.search-form.active {
    transform: translateX(0);
}

/* Panel Close Button */
.panel-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1;
}

.panel-close:hover path {
    stroke: red;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.no-scroll {
    overflow: hidden;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin-top: 40px; /* Space for close button */
}

.main-navigation li {
    margin-bottom: .5rem;
}

.main-navigation a {
    display: block;
    padding: 0.0rem 0 0.5rem 0;
    font-size: .85rem;
    border-bottom: 1px solid #dee4e7;
}

/* Search Form */
.search-form .search-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--black);
    font-size: 1rem;
    margin-top: 40px; /* Space for close button */
}

.search-form .search-submit {
    display: none;
}

/* Main Content */
.site-content {
    padding: 2rem 2rem 0 2rem;
}

/* Sidebar Layout */
.with-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-content {
    width: 100%;
}

#sidebar {
    width: 100%;
}

/* Desktop Layout */
@media (min-width: 768px) {
    .with-sidebar {
        flex-direction: row;
    }
    
    .main-content {
        flex: 1;
    }
    
    #sidebar {
        flex: 0 0 30%;
        padding-left: 2rem;
    }
}

/* Grid Layout */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    padding: 1rem;
    text-align: center;
    border-radius: 10px;
    background: var(--gray);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    margin: 0 auto 0.75rem;
    max-height: 60px;
}

/* Footer */
.site-footer {
    background-color: var(--white);
    padding: 1rem 0.3rem;
    margin-top: 3%;
    border-top: 1px solid var(--black);
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-widget {
    flex: 1;
    min-width: 250px;
}

/* Single Post/Page */
.entry-header {
    margin-bottom: 1rem;
    text-align: center;
	height: 45px;
}

.single-post .entry-title {
    font-size: 1.6rem;
    margin: 1rem 0;
    padding: 0.2rem;
    height: 44px;
    display: block;
	font-weight: bold;
    letter-spacing: 0.5px;
}
.page .entry-title {
    font-size: 1.6rem;
    margin: 1rem 0;
    padding: 0.2rem;
    height: 44px;
    display: block;
	font-weight: bold;
    letter-spacing: 0.5px;
}
.entry-content {
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .site-content {
        padding: 1.5rem;
    }
    
    .footer-widgets {
        flex-direction: column;
    }
    
    .single-post .entry-title {
        font-size: 1.5rem;
        padding: 1rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .site-content {
        padding: 1rem;
    }
    
    .custom-logo {
        max-height: 35px;
    }
    
    .single-post .entry-title {
        font-size: 1.25rem;
        border-radius: 25px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hide sidebar on archive/category/search pages */
.with-sidebar:not(.has-sidebar) #sidebar {
    display: none;
}

/* Make content full-width when no sidebar */
.with-sidebar:not(.has-sidebar) .main-content {
    width: 100%;
    max-width: 100%;
}

/* Desktop adjustments for full-width content */
@media (min-width: 768px) {
    .with-sidebar:not(.has-sidebar) .main-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
}



/*SYMBOL SITE */
h2.symbol-about {
    font-size: 15px;
}
.symbol-h3 {
  font-size: 14px;
  letter-spacing: 1px;
}
.symbolpost {
  text-align: center;
}
.symbol {
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  margin: 7px 3px;
  border-radius: 10px;
  width: 80px;
  padding: 7px 1px;
	border: 1px solid #dce1e3;
}
.symbol:hover {
  background-color: #f3f5f6;
	border:1px solid #bdc8ce;
}
.symbol::after {
  content: 'Copied!';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  background: black;
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.symbol.show-tooltip::after {
  opacity: 1;
}
.textarea-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}
textarea.enter-symbol{
  resize: none;
}
textarea.enter-symbol:focus {
    border: 1px solid #000;
    outline: none;
}
.enter-symbol {
  width: 100%;
	height: 75px;
  font-size: 1.5rem;
  padding: 5px 10px;
  resize: vertical;
  border-radius: 7px;
  border: 1px solid #aaa;
  box-shadow: inset 0 0 3px #d5d7d8;
}
.enter-symbol::placeholder {
  font-size: .8rem;
}
.symbols-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em;
    justify-content: center;
  	margin: 2.5% 0 2.5% 0;
}
/* Common icon style */
.icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  position: absolute;
  background: #eaeff2;
  padding: 4px;
  border-radius: 50%;
}
.icon.show {
  opacity: 1;
}
/* Clear icon top right */
.clear-icon {
  top: 6px;
  right: 8px;
}
/* Copy icon bottom right */
.copy-icon {
  bottom: 12px;
  right: 8px;
}

hr.line {
margin: 2.5% 0; 	
border: 0;
height: 1px;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

/*Table*/
table {
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    margin: 3% auto;
    max-width: 800px;
    color: #444;
}
th:first-child, td:first-child {
    border-left: none;
}
th {
    padding: 10px;
    text-align: center;
    vertical-align: middle;
    color: #f7f9fa;
    font-weight: 600;
    letter-spacing: 1px;
    background-color: #333;
    font-size: 13px;
}
th:last-child, td:last-child {
    border-right: none;
}
tr td:first-child {
    font-size: 25px;
}
tr:first-child td {
    border-top: none;
}
th:first-child, td:first-child {
    border-left: none;
}
td {
    padding: 3px 5px;
    text-align: center;
    vertical-align: middle;
    border-left: 1px solid #cbd0d4;
    border-top: 1px solid #cbd0d4;
    background-color: #f7f9fa;
    font-size: 13px;
  	width: 20%;
}
table a {
    text-decoration: underline;
}
.aboutsymbol {
	padding: 25px;
    border-radius: 12px;
    font-size: 14px;
    color: #444;
    border: 1px dashed #555;
}
.faq {
  border-top: 1px dashed;
  padding: 3% 0;
}
h2.intro {
    font-size: 15px;
    font-weight: normal;
    letter-spacing: 0.6px;
}
.symbol-h2 {
  font-size: 16px;
  word-spacing: 2px;
  text-align: center;
}
.symbol-h2 a {
  border-bottom: 1px solid;
  font-size: 17px;
  letter-spacing: 0.7px;
}
.rank-math-breadcrumb {
  font-size: 12px;
  margin-bottom: 15px;
  word-spacing: 3px;
}

/*category & Search Page */
.posts-grid article {
  background: #f3f5f6;
  text-align: center;
  padding: 10px 10px 7px 10px;
  border-radius: 15px;
  border-bottom: 4px solid #dee4e7;
}
.post-thumbnail {
  padding: 20px 25px;
  background: #fff;
  border-radius: 15px;
  margin-bottom: 10px;
  border: 1px solid #dee4e7;
}
article .entry-title {
  font-size: 13px;
  font-weight: normal;
  height: 25px;
  overflow: hidden;
}

.navigation.posts-navigation {
  display: none;
}

.postnav {
  background: #f1f5f7;
  padding: 5px 15px;
  border-radius: 50px;
  margin: 4px;
  font-size: 15px;
  width: 140px;
  display: inline-block;
}
.subposts {
  text-align: center;
  margin: 3% 0 0 0;
  background: #e4e9ec;
  border-radius: 10px;
  padding: 1px 4px;
}