/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fefefe;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-container h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.nav-container h1 a {
    color: #2c3e50;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
}

nav ul li a:hover {
    color: #3498db;
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 160px;
    z-index: 1000;
    list-style: none;
    margin-top: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #2c3e50;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1rem;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 3rem;
    font-style: italic;
}

/* Form Styles */
.evaluation-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background: #2980b9;
}

button[type="submit"]:disabled,
button.btn-disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.7;
}

button[type="button"].btn-disabled {
    width: 100%;
    padding: 15px;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.coming-soon-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #6c757d;
    text-align: center;
    font-style: italic;
}

.coming-soon-note a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.coming-soon-note a:hover {
    text-decoration: underline;
}

/* Results Section */
.results-section {
    padding: 3rem 0;
    background: white;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.evaluation-result {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 5px solid #3498db;
}

.entity-context {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.entity-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
}

.context-name {
    font-size: 1.1rem;
    color: #6c757d;
    font-style: italic;
}

.scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.score-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.score-value {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.score-value.positive {
    color: #27ae60;
}

.score-value.negative {
    color: #e74c3c;
}

.score-value.neutral {
    color: #f39c12;
}

.score-label {
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rationale {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2c3e50;
    font-style: italic;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

/* Feedback Section */
.feedback-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.feedback-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feedback-btn {
    padding: 10px 20px;
    border: 2px solid;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.agree-btn {
    border-color: #27ae60;
    color: #27ae60;
}

.agree-btn:hover,
.agree-btn.selected {
    background: #27ae60;
    color: white;
}

.disagree-btn {
    border-color: #e74c3c;
    color: #e74c3c;
}

.disagree-btn:hover,
.disagree-btn.selected {
    background: #e74c3c;
    color: white;
}

.feedback-input {
    margin-top: 1rem;
}

.feedback-input textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
}

.feedback-input button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: 'Crimson Text', serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.feedback-input button:hover {
    background: #2980b9;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.framework-explanation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.parameter {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.parameter h3 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.read-essay-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.read-essay-link:hover {
    background: #2980b9;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .evaluation-form {
        margin: 0 20px;
        padding: 2rem 1.5rem;
    }
    
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 20px;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    .scores {
        grid-template-columns: 1fr;
    }
    
    .feedback-buttons {
        flex-direction: column;
        align-items: center;
    }
}