:root {
    --bg-color: #F5EBE9;
    --primary-orange: #EB5D3F;
    --border-orange: #EB5D3F;
    --tag-red: #EB5D3F;
    --tag-orange: #EF8F4A;
    --tag-yellow: #F3AF53;
    --text-dark: #333;
    --text-grey: #888;
    --white: #ffffff;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    padding: 40px;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
}

/* --- Search Bar --- */
.search-header {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 2px solid var(--border-orange);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    height: 55px;
    padding: 0 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    border-right: 1px solid #ddd;
    color: var(--primary-orange);
    cursor: pointer;
}

.logo-t {
    font-weight: 900;
    font-size: 24px;
    font-family: serif; /* Making the T look more like a logo */
}

#search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 0 15px;
    font-size: 16px;
}

.search-icon {
    color: var(--primary-orange);
    font-size: 20px;
    cursor: pointer;
}

/* --- Layout Grid --- */
.main-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
}

/* --- Left Column --- */
.word-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.title-group h1 {
    font-size: 42px;
    color: var(--primary-orange);
    display: inline-block;
    margin-right: 10px;
}

.phonetic {
    font-size: 18px;
    color: var(--primary-orange); /* The image shows orange brackets/text here slightly */
    opacity: 0.7;
}

.synonyms-toggle {
    color: var(--text-grey);
    font-weight: 500;
    cursor: pointer;
}

.synonyms-toggle i {
    color: var(--primary-orange);
    margin-left: 5px;
}

.divider {
    border: none;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.part-of-speech {
    display: inline-block;
    background: var(--white);
    color: var(--text-grey);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 15px;
}

.definition-text {
    font-size: 20px;
    margin-bottom: 25px;
}

.all-tags {
    display: flex;
    flex-direction: column;
}
/* Tags Styling */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.break {
    flex-basis: 100%;
    height: 10px; /* Spacing between rows */
}

.tag {
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--white);
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s;
}

.tag:hover {
    transform: scale(1.05);
}

.tag-red { background-color: var(--tag-red); }
.tag-orange { background-color: var(--tag-orange); }
.tag-yellow { background-color: var(--tag-yellow); }

/* --- Right Column (Sidebar) --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.card h2 {
    color: var(--primary-orange);
    font-size: 24px;
    margin-bottom: 15px;
}

.card-text {
    line-height: 1.5;
    font-size: 14px;
}

/* --- Feedback Button --- */
.feedback-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(235, 93, 63, 0.3);
}

.feedback-btn:hover {
    background-color: #d64d31;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .word-header {
        flex-direction: column;
    }
    
    .title-group {
        margin-bottom: 10px;
    }
}