/* Public Word Page Styles - Matching Main Dictionary Interface */

body {
    font-family: 'Amiri', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.app-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    box-sizing: border-box;
    height: 100%;
    overflow: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 30px;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
}

.left-button,
.right-button {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.title,
h1.title {
    font-family: 'Amiri', serif;
    text-align: center;
    font-size: 1.3em;
    color: darkgrey;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    margin-top: 0;
    font-weight: normal;
}

.cta-button {
    background-color: black;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.cta-button:hover {
    background-color: lightgrey;
    color: white;
}

.public-word-page {
    width: 90%;
    max-width: 90%;
    padding: 1rem;
    box-sizing: border-box;
    margin: 0 auto;
}

.breadcrumb {
    color: #666;
    font-size: 0.9rem;
    margin: 1rem 0;
    text-align: center;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #333;
}

.word-content {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    font-size: 1.4em;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.word-header {
    text-align: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.word-title {
    font-size: 2rem;
    font-family: 'Amiri', serif;
    color: black;
    margin: 0.5rem 0;
    font-weight: normal;
}

.arabic-text {
    font-family: 'Amiri', serif;
    direction: rtl;
}

.root-info, .form-info {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #666;
}

.label {
    font-weight: normal;
    color: #666;
}

.root-info a {
    color: #0066cc;
    text-decoration: none;
    font-weight: normal;
    font-size: 1.2rem;
}

.root-info a:hover {
    text-decoration: underline;
}

.form-number {
    color: #333;
    font-weight: normal;
}

.definition-section {
    margin-bottom: 1rem;
}

.definition-section h2 {
    color: black;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: normal;
    text-align: center;
}

.definition-preview {
    position: relative;
    font-size: 1em;
    line-height: 1.8;
    color: black;
    max-height: 300px;
    overflow: hidden;
    padding: 1rem;
    background: white;
    margin-bottom: 1.5rem;
}

.preview-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, white);
}

.unlock-message {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.preview-notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.preview-notice i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.preview-notice strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.preview-notice-subtext {
    margin: 8px 0 0 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.truncate-indicator {
    font-size: 1.5em;
    color: #666;
    font-weight: bold;
    margin-left: 0.2em;
}

.unlock-text {
    font-size: 1.1rem;
    color: black;
    margin-bottom: 1rem;
    font-weight: normal;
}

.feature-list {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1rem;
}

.cta-button-large {
    display: inline-block;
    background: black;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: normal;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-button-large:hover {
    background: lightgrey;
    color: white;
}

.related-words-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.verbs-section, .nouns-section {
    margin-bottom: 2rem;
}

.section-label {
    font-family: 'Amiri', serif;
    font-size: 1.2em;
    color: darkgrey;
    margin-bottom: 1rem;
    font-weight: bold;
}

.related-words-section h2 {
    color: black;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: normal;
    text-align: center;
}

.related-words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.8rem;
    list-style: none;
    padding: 0;
}

.related-word-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem;
    background: white;
    border-radius: 5px;
    text-decoration: none;
    color: black;
    border: 1px solid #e0e0e0;
    transition: background 0.2s;
    text-align: center;
}

.related-word-link:hover {
    background: #f8f9fa;
}

.related-word-link .arabic-text {
    font-size: 1.2rem;
    font-weight: normal;
}

.form-badge {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
}

/* Remove sidebar - not needed */
.upgrade-sidebar {
    display: none;
}

.upgrade-card, .info-card {
    display: none;
}

/* Root Page Styles */
.root-words-section {
    margin-top: 1rem;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.root-words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.root-word-card {
    background: white;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.root-word-card:hover {
    background: #f8f9fa;
}

.root-word-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem;
    text-decoration: none;
    color: black;
    text-align: center;
}

.root-word-link .headword {
    font-size: 1.3rem;
    font-weight: normal;
    color: black;
}

/* Formatting styles for dictionary content (matching styles.css) */
.display-word {
    font-family: 'Amiri', serif;
    font-size: 2em;
    font-weight: bold;
    color: black;
}

.circle-verb {
    font-family: 'Amiri', serif;
    display: inline-block;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 50%;
    background-color: white;
    color: black;
    text-align: center;
    font-size: 1em;
    margin-right: 5px;
    margin-bottom: 2px;
    vertical-align: top;
    border: none;
}

.arabic-text {
    font-family: 'Amiri', serif;
    color: darkblue;
    font-weight: bold;
}

.arabic-text-arrow {
    font-family: 'Amiri', serif;
    color: purple;
    font-weight: bold;
}

.arrow {
    color: purple;
    font-weight: bold;
}

.arabic-text-tense {
    font-family: 'Amiri', serif;
    color: green;
    font-weight: bold;
    font-size: 0.7em;
}

.b-entry {
    margin-left: 20px;
}

.a-entry {
    font-weight: bold;
}

.circle {
    display: inline-block;
    height: auto;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: black;
    text-align: center;
    font-size: 0.9em;
    margin-right: 5px;
    margin-bottom: 2px;
}

.circle-a {
    display: inline-block;
    height: auto;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 50%;
    background-color: lightblue;
    color: black;
    text-align: center;
    font-size: 0.9em;
    margin-right: 5px;
    margin-bottom: 2px;
}

.bold-black {
    color: black;
    font-family: inherit;
    font-style: italic;
    font-weight: 700;
    font-size: 1.1em;
}

.quranic-reference {
    font-weight: bold;
    color: #8B4513;
}

.quranic-text {
    color: #2F4F4F;
    font-style: italic;
}

.itype, .display_word {
    display: inline-block;
    direction: ltr;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .public-word-page {
        padding: 0 1rem;
    }
    
    .word-title {
        font-size: 1.5rem;
    }
    
    .related-words-grid, .root-words-grid {
        grid-template-columns: 1fr;
    }
    
    .display-word {
        font-size: 1.5em;
    }
}
