/* Lesson 1-6 Specific Styles: Prepositions with the Accusative */

/* 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 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;
}

/* Preposition Showcase */
.preposition-showcase {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-title {
    font-size: 2.2rem;
    color: #0066ff;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.showcase-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.showcase-note {
    background: rgba(0, 102, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #0066ff;
    font-weight: 600;
    display: inline-block;
}

/* Prepositions Grid */
.prepositions-section {
    margin-bottom: 2rem;
}

.prepositions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.preposition-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.preposition-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.15);
    border-color: #0066ff;
}

.prep-latin {
    font-size: 1.8rem;
    color: #0066ff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.prep-english {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    font-style: italic;
}

.prep-example {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.example-latin {
    color: #0066ff;
    font-weight: 600;
    font-size: 1rem;
}

.example-english {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.prep-memory {
    font-size: 0.85rem;
    color: #666;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1f0ff 100%);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid;
    text-align: center;
    transition: all 0.2s ease;
}

.category-card:hover {
    transform: scale(1.02);
}

.category-icon {
    margin-bottom: 0.5rem;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-preps {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.category-explanation {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Examples Section */
.examples-section {
    background: #f8f9fa;
    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;
}

/* Visual Guide Section */
.visual-guide-section {
    margin-bottom: 2rem;
}

.visual-scenarios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.scenario-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scenario-title {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.scenario-visual {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

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

.scenario-breakdown {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: left;
}

.breakdown-line {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.breakdown-line:last-child {
    margin-bottom: 0;
}

/* Patterns Section */
.patterns-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.patterns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pattern-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.pattern-card:hover {
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.1);
    border-color: #0066ff;
}

.pattern-header {
    font-size: 1.1rem;
    color: #0066ff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pattern-meaning {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.pattern-examples {
    margin-bottom: 0.75rem;
    color: #666;
    font-size: 0.9rem;
}

.pattern-example {
    color: #0066ff;
    font-weight: 600;
}

.pattern-tip {
    font-size: 0.85rem;
    color: #555;
    background: linear-gradient(135deg, #f0f7ff 0%, #e1f0ff 100%);
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 102, 255, 0.1);
}

/* 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;
}

.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;
}

/* Chapter Summary in Sidebar */
.chapter-summary {
    padding: 1rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 8px;
    color: white;
}

.chapter-summary p {
    color: white;
    margin-bottom: 0.5rem;
}

.chapter-summary ul {
    margin-bottom: 0;
}

.chapter-summary li {
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.95);
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .prepositions-grid,
    .categories-grid,
    .visual-scenarios {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .patterns-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .prepositions-grid,
    .categories-grid,
    .visual-scenarios {
        grid-template-columns: 1fr;
    }
    
    .showcase-title {
        font-size: 1.8rem;
    }
}
