:root {
    --primary-color: #ffaa00;
    --secondary-color: #e69500;
    --accent-color: #ffc04d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #28a745;
    --warning-color: #dc3545;
    --info-color: #17a2b8;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Header Styles */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-warning {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-warning:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-color);
}

/* Card Styles */
.card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Search Box Styles */
.search-container {
    margin: 2rem auto;
    max-width: 800px;
}

.search-box {
    border-radius: 50px;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-300);
    transition: all 0.3s ease;
}

.search-box:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 170, 0, 0.25);
    border-color: var(--primary-color);
}

.search-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-container .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-container .input-group:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-container .input-group-text {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    padding-left: 20px;
}

.search-container .form-control {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    padding-right: 20px;
}

/* Category Styles */
.category-container {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-item {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    margin: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background-color: white;
}

.category-item:hover {
    background-color: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-item.active {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Term Styles */
.term-container {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.term-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.term-item:last-child {
    border-bottom: none;
}

.term-item:hover {
    background-color: var(--gray-100);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.term-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.term-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.term-image:hover {
    transform: scale(1.05);
}

/* Footer Styles */
footer {
    background-color: white;
    padding: 2rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin-top: auto;
}

.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Back to Top Button */
#yukari {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--dark-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0.8;
}

#yukari:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    opacity: 1;
}

#yukari i {
    color: var(--dark-color);
    font-size: 20px;
}

/* Card styling for terms */
.content-card {
    border: none !important;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

.badge-warning {
    background-color: var(--primary-color) !important;
    color: var(--dark-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .search-box {
        padding: 1rem;
    }
    
    .category-item {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .term-container {
        padding: 1rem;
    }
}
