@import url('./fonts.css');

/* General body styling */
body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    margin: 0;
    text-align: center;
}

/* Heading styles */
h1 {
    font-size: 2.5em;
    color: #444;
    margin-bottom: 20px;
}

/* Search styles */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 30px;
}

#search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1.1em;
    transition: border-color 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #1a73e8;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    display: none;
}

.search-result {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result:hover {
    background-color: #f5f5f5;
}

/* List styling */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Link styling */
a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.2em;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px 0;
}

a:hover {
    background-color: #f0f0f0;
    color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.category-card p {
    margin: 0 0 15px 0;
    color: #666;
}

.term-count {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #666;
}

/* Terms grid */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.term-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.term-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.term-card h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.term-card p {
    margin: 0;
    color: #666;
}

/* Term details */
.term-details {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    text-align: right;
    display: none;
}

.term-details h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.term-details h3 {
    color: #666;
    margin-bottom: 20px;
}

.term-details .definition {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

.term-details .examples,
.term-details .related {
    margin-top: 20px;
}

.term-details h4 {
    color: #444;
    margin-bottom: 10px;
}

.term-details ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.term-details li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.term-details li:last-child {
    border-bottom: none;
}
