/* Lesson 1-3 Specific Styles: Nominative & Accusative Singular */

/* Grammar Explanation Box */
.grammar-explanation {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(33, 150, 243, 0.15);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.08);
}

.explanation-title {
    font-size: 1.3rem;
    color: #1565c0;
    margin-bottom: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.explanation-content {
    color: #37474f;
    line-height: 1.7;
    font-size: 1rem;
}

.explanation-content p {
    margin-bottom: 1rem;
}

.explanation-content p:last-child {
    margin-bottom: 0;
}

.explanation-content strong {
    color: #0d47a1;
    font-weight: 600;
}

.explanation-content em {
    color: #455a64;
    font-style: italic;
}

.explanation-content ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    list-style-type: none;
}

.explanation-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.25rem;
}

.explanation-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2196f3;
    font-weight: bold;
}

/* Declension Tables Section */
.declension-section {
    margin-bottom: 2rem;
}

.declension-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.declension-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Noun Showcase (similar to verb showcase) */
.noun-showcase {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.noun-title {
    font-size: 2rem;
    color: #0066ff;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.noun-meaning {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.noun-type {
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Case Cards */
.case-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0066ff;
}

.case-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.latin-form {
    font-size: 1.4rem;
    color: #0066ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.english-translation {
    font-size: 0.95rem;
    color: #333;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.usage-example {
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Examples Section */
.examples-section {
    background: #fafafa;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.examples-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.example-item {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.example-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 102, 255, 0.2);
}

.example-latin {
    font-size: 1.1rem;
    color: #0066ff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.example-content {
    animation: fadeIn 0.3s ease;
}

.example-english {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.example-explanation {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
}

.click-hint {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Textbook Exercise Section */
.exercise-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.exercise-title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.textbook-reference {
    color: #555;
}

.textbook-reference > p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #333;
}

.exercise-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.exercise-reference {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.exercise-reference:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.1);
    border-color: #0066ff;
}

.exercise-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0066ff;
    min-width: 100px;
}

.exercise-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Grammar Tips Box */
.tips-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tips-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tips-content {
    color: #555;
    line-height: 1.6;
}

.tips-content ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.tips-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .declension-tables {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .declension-tables {
        grid-template-columns: 1fr;
    }
    
    .noun-title {
        font-size: 1.5rem;
    }
    
    .examples-list {
        gap: 0.75rem;
    }
}
