/* --- css/kaomoji.css --- */

/* Import shared variables and base styles if you have them in a separate file */
/* For this example, we'll define them here for consistency with the previous design */
:root {
    --primary-font: 'Poppins', sans-serif;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --primary-color: #00bcd4; /* A vibrant cyan is great for this page */
    --primary-hover-color: #0097a7;
    --text-color: #e0e0e0;
    --text-muted-color: #9e9e9e;
    --border-color: #333;
    --border-radius: 8px;
}

body {
    font-family: var(--primary-font);
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Header & Navbar Styling (Consistent with main.css) */
.navbar-brand { font-weight: 700; display: flex; align-items: center; }
.navbar-brand span { margin-left: 10px; }
.bg-dark-custom { background-color: var(--surface-color) !important; border-bottom: 1px solid var(--border-color); }
.nav-link { font-weight: 600; transition: color 0.3s ease; }
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* Main Title */
.main-title { color: var(--text-color); }

/* Search Bar */
#kaomoji-search {
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-color);
}
#kaomoji-search::placeholder { color: var(--text-muted-color); }
#kaomoji-search:focus {
    background-color: var(--surface-color);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}
#search-icon {
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    border-right: none;
    color: var(--text-muted-color);
}
#kaomoji-search:focus + #search-icon, #kaomoji-search:focus ~ #search-icon {
    border-color: var(--primary-color);
}


/* Kaomoji Category Navigation */
.kaomoji-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.nav-tab {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.nav-tab:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}
.nav-tab.active {
    background-color: var(--primary-color);
    color: #111;
    border-color: var(--primary-color);
}

/* Kaomoji Grid Styling */
.kaomoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.kaomoji-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 0.5rem;
    font-size: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
    user-select: none; /* Prevents text selection on click */
}
.kaomoji-card:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.4);
    z-index: 10;
}

/* Copied Feedback */
.copied-feedback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 188, 212, 0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows clicks to pass through if needed */
}
.copied-feedback.show {
    opacity: 1;
}


/* Content Section Styling (Consistent) */
.content-section .content-wrapper { background-color: var(--surface-color); border-radius: var(--border-radius); border: 1px solid var(--border-color); }
.content-section h2, .content-section h3 { color: var(--primary-color); font-weight: 700; margin-top: 1.5rem; margin-bottom: 1rem; }
.content-section ul, .content-section ol { padding-left: 2rem; }
.content-section li { margin-bottom: 0.5rem; }
.content-section i { color: var(--primary-color); }

/* Footer Styling (Consistent) */
footer { background-color: #000 !important; }
footer a { color: var(--text-muted-color); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--primary-color); }