/* 
 * Amharic Typography and Cultural Elements
 * 
 * This file contains specialized styling for Amharic text and
 * incorporates traditional Amharic/Ethiopian cultural design elements.
 */

/* Import Noto Sans Ethiopic - an excellent font for Amharic */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Ethiopic:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Define Amharic-specific variables */
:root {
    /* Traditional Ethiopian colors */
    --ethiopian-green: #078930;  /* Green from Ethiopian flag */
    --ethiopian-yellow: #FCDD09; /* Yellow from Ethiopian flag */
    --ethiopian-red: #DA121A;    /* Red from Ethiopian flag */
    
    /* Cultural pattern colors often found in Ethiopian textiles */
    --cultural-pattern-1: #E36414; /* Terracotta orange - common in Ethiopian crafts */
    --cultural-pattern-2: #0F4C5C; /* Deep teal - traditional color */
    --cultural-pattern-3: #5F0F40; /* Burgundy - common in Ethiopian textiles */
    
    /* Amharic text specific properties */
    --amharic-line-height: 1.6;
    --amharic-letter-spacing: 0.01em;
}

/* Base Amharic font styling */
.amharic-text, 
[lang="am"], 
html[lang="am"] body {
    font-family: 'Noto Sans Ethiopic', sans-serif;
    line-height: var(--amharic-line-height);
    letter-spacing: var(--amharic-letter-spacing);
}

/* Ensure all Amharic text has proper rendering */
[lang="am"] * {
    font-family: 'Noto Sans Ethiopic', 'Segoe UI', sans-serif;
}

/* Specific styling for Amharic headings */
[lang="am"] h1, 
[lang="am"] h2, 
[lang="am"] h3, 
[lang="am"] h4, 
[lang="am"] h5, 
[lang="am"] h6,
.amharic-heading {
    font-family: 'Noto Sans Ethiopic', 'Segoe UI', sans-serif;
    font-weight: 700;
    line-height: 1.4;
}

/* Special Amharic title styling with cultural elements */
.amharic-title {
    position: relative;
   font-family: 'Noto Sans Ethiopic', 'Segoe UI', sans-serif;
    font-weight: 700;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.amharic-text {
  font-family: 'Noto Sans Ethiopic', 'Segoe UI', sans-serif;
}

.amharic-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, 
        var(--ethiopian-green) 33.3%, 
        var(--ethiopian-yellow) 33.3%, 
        var(--ethiopian-yellow) 66.6%, 
        var(--ethiopian-red) 66.6%);
    border-radius: 4px;
}

/* Cultural decorative element - Mesob-inspired pattern */
.ethiopian-pattern-border {
    border: none;
    position: relative;
    padding: 1.5rem;
}

.ethiopian-pattern-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-image: repeating-linear-gradient(
        45deg,
        var(--ethiopian-green) 0,
        var(--ethiopian-green) 10px,
        var(--ethiopian-yellow) 10px,
        var(--ethiopian-yellow) 20px,
        var(--ethiopian-red) 20px,
        var(--ethiopian-red) 30px
    );
    border-radius: 4px 4px 0 0;
}

.ethiopian-pattern-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-image: repeating-linear-gradient(
        45deg,
        var(--ethiopian-green) 0,
        var(--ethiopian-green) 10px,
        var(--ethiopian-yellow) 10px,
        var(--ethiopian-yellow) 20px,
        var(--ethiopian-red) 20px,
        var(--ethiopian-red) 30px
    );
    border-radius: 0 0 4px 4px;
}

/* Language switcher with cultural styling */
.language-switcher {
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 5px,
        rgba(255, 215, 0, 0.1) 5px,
        rgba(255, 215, 0, 0.1) 10px
    );
    border-radius: 0.5rem;
    z-index: -1;
}

.language-switcher:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

/* Amharic text in the header name rows */
[lang="am"] .name-row-1,
[lang="am"] .name-row-3 {
    font-family: 'Noto Sans Ethiopic', 'Segoe UI', sans-serif;
    letter-spacing: 0.03em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

[lang="am"] .name-row-1 {
    font-size: 1.5rem;
    font-weight: 800;
}

[lang="am"] .name-row-2 {
    font-size: 1.25rem;
    font-weight: 700;
}

[lang="am"] .name-row-3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Mobile menu Amharic adjustments */
@media (max-width: 768px) {
    [lang="am"] .name-row-1 {
        font-size: 1.3rem;
    }
    
    [lang="am"] .name-row-2 {
        font-size: 1.1rem;
    }
    
    [lang="am"] .name-row-3 {
        font-size: 0.95rem;
    }
}

/* Amharic button text styling */
[lang="am"] .btn, 
[lang="am"] button {
   font-family: 'Noto Sans Ethiopic', 'Segoe UI', sans-serif;
    letter-spacing: normal;
    font-weight: 600;
}

/* Enhanced focus states for Amharic UI */
[lang="am"] *:focus {
    outline: 3px solid var(--ethiopian-yellow);
    outline-offset: 2px;
}
.icon {
  font-family: 'Font Awesome 6 Free';
}

