/* Lesson 1.2: Present Tense - Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0066ff 0%, #4d94ff 25%, #e6f0ff 60%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Floating Background Shapes */
.bg-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.05);
    animation: float 20s infinite ease-in-out;
}

.shape1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation-delay: 5s;
    background: rgba(0, 102, 255, 0.03);
}

.shape3 {
    width: 250px;
    height: 250px;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Info Button */
.info-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 100;
}

.info-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.2);
}

/* Header */
header {
    position: relative;
    z-index: 10;
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.logo {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e6f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -3px;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.author {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Main Dashboard Layout */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 180px 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Left Sidebar */
.left-sidebar {
    padding-top: 1rem;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.nav-link {
    display: block;
    padding: 0.6rem 0;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 0.75rem;
    margin-left: -0.75rem;
}

.nav-link:hover {
    color: white;
    border-left-color: white;
}

/* Main Content Area */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* App-style Container */
.app-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.app-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-greeting {
    font-size: 1.5rem;
    color: #1a1a1a;
    font-weight: 600;
}

.lesson-nav {
    display: flex;
    gap: 0.5rem;
}

.lesson-nav button {
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.lesson-nav button:hover {
    background: #e0e0e0;
}

/* Lesson Content Area */
.lesson-content {
    padding: 2rem;
}

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

/* Verb Display Section */
.verb-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);
}

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

.verb-meaning {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.verb-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.verb-detail {
    text-align: center;
}

.verb-detail-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.verb-detail-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

/* Conjugation Table */
.conjugation-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.conjugation-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.column-header {
    text-align: center;
    font-weight: 600;
    color: #0066ff;
    font-size: 1.1rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

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

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

.person-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

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

/* Verb Practice Section */
.verb-practice-section {
    background: #fafafa;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.verb-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.verb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 102, 255, 0.2);
}

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

.verb-translation {
    animation: fadeIn 0.3s ease;
}

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

.verb-person {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.verb-hint {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

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

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Widgets */
.widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.widget h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.widget p {
    color: #666;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Progress/Checklist Widget */
.progress-widget {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checklist-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
    flex: 1;
}

.checklist-item:hover {
    background: #f0f7ff;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #0066ff;
}

.do-now-btn {
    padding: 0.4rem 0.8rem;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.do-now-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.do-now-btn.active {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.do-now-btn.active:hover {
    background: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    padding: 1.5rem 2rem 1rem 2rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.modal-body {
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
    align-items: flex-start;
}

.modal-text {
    flex: 2;
}

.modal-text p {
    margin: 0 0 1rem 0;
    line-height: 1.5;
    color: #555;
    font-size: 0.9rem;
}

.modal-text p:last-child {
    margin-bottom: 0;
}

.modal-image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.modal-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    border-radius: 0 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-items {
    display: flex;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    flex: 1;
}

.contact-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.contact-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-weight: 600;
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
}

.contact-value {
    color: #666;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.modal-signature {
    text-align: center;
    margin-top: 1rem;
}

.modal-signature p {
    margin: 0.25rem 0;
    color: #777;
    font-size: 0.9rem;
}

.modal-signature p:last-child {
    color: #333;
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: #333;
    background-color: #f0f0f0;
}

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

    .left-sidebar {
        display: flex;
        gap: 3rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 12px;
    }

    .nav-section {
        margin-bottom: 0;
    }

    .conjugation-table {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 3rem;
    }

    .dashboard-grid {
        gap: 1rem;
    }

    .left-sidebar {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-items {
        flex-direction: column;
    }

    .info-btn {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .conjugation-table {
        grid-template-columns: 1fr;
    }

    .lesson-nav {
        flex-direction: column;
    }

    .lesson-nav button {
        width: 100%;
    }
}
