/* Global Styles */
:root {
    --primary-color: #3a6351;
    --secondary-color: #f2edd7;
    --accent-color: #a0937d;
    --text-color: #333;
    --light-text: #f5f5f5;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --section-bg: #f9f9f0;
    --font-header: 'Georgia', serif;
    --font-body: 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-family: var(--font-header);
    font-weight: 700;
    color: var(--light-text);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 1rem;
    background-color: var(--section-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.hero h1 {
    font-size: 2.5rem;
    font-family: var(--font-header);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    font-family: var(--font-body);
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
}

/* Converter Styles */
.converter-container {
    margin-bottom: 3rem;
}

.converter-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow-color);
    padding: 2rem;
}

.converter-box h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.input-area, .output-area {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: #1e5837;
}

.cuneiform-display {
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 2rem;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-break: break-all;
}

.copy-container {
    display: flex;
    align-items: center;
}

#copy-message {
    margin-left: 1rem;
    color: green;
    font-weight: 500;
}

.hidden {
    display: none;
}

/* Info Section Styles */
.info-section {
    background-color: var(--section-bg);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.info-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-column h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-column p, .info-column ul {
    margin-bottom: 1rem;
}

.info-column ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

/* Examples Section Styles */
.examples-section {
    margin-bottom: 3rem;
}

.examples-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}

.example-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s;
}

.example-item:hover {
    transform: translateY(-5px);
}

.symbol {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.meaning {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    .logo-container {
        margin-bottom: 1rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .info-columns {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .converter-box, .info-section {
        padding: 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}
