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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-sidebar.open {
    right: 0;
}

.mobile-sidebar-header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.mobile-nav {
    padding: 20px;
}

.mobile-nav a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: #0066cc;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #999;
    font-size: 0.9rem;
}

.content-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-left: 4px solid #0066cc;
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
   .content-box {
        padding: 25px;
    }

.popular-words {
    grid-column: 1 / -1;
}

.popular-words p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.popular-words table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.popular-words th,
.popular-words td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.popular-words th {
    background: #0066cc;
    color: white;
    font-weight: 500;
}

.popular-words tr:hover {
    background: #f8f9fa;
}

.word-link a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.word-link a:hover {
    color: #0052a3;
    text-decoration: underline;
}
/* Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Search Section */
.search-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #e9ecef;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.search-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 300;
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 25px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-button {
    padding: 15px 25px;
    background: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.search-button:hover {
    background: #0052a3;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

/* Word Definition */
.word-definition {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.word-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.word-title {
    font-size: 3rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 300;
}

.word-pronunciation {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.word-type {
    background: #0066cc;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
}

.definition-section {
    margin-bottom: 40px;
}

.definition-number {
    background: #f8f9fa;
    color: #0066cc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.definition-text {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.examples-title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    font-weight: 500;
}

.examples-list {
    list-style: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.examples-list li {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #0066cc;
}

.examples-list li:last-child {
    margin-bottom: 0;
}

.example-text {
    font-style: italic;
    color: #333;
    line-height: 1.6;
}

.highlighted-word {
    color: #0066cc;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
}

.ask-editor {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ask-editor h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.ask-editor a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.ask-editor a:hover {
    text-decoration: underline;
}

.quiz-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.quiz-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.quiz-icon {
    width: 60px;
    height: 45px;
    background: #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.8rem;
    text-align: center;
}

.quiz-content h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1rem;
}

.quiz-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.quiz-content a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.quiz-content a:hover {
    text-decoration: underline;
}

.word-of-day {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.word-of-day img {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    display: inline-block;
}

.word-of-day h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.word-of-day p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.word-of-day a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .search-title {
        font-size: 2rem;
    }

    .word-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 15px;
    }

    .word-definition {
        padding: 25px;
    }

    .sidebar {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.4rem;
    }

    .logo-image {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .search-title {
        font-size: 1.8rem;
    }

    .word-title {
        font-size: 2rem;
    }

    .word-definition {
        padding: 20px;
    }

    .sidebar {
        padding: 20px;
    }
}
