/* Verb Drill - Verb Practice Pages */

:root {
    --accent: #00d4aa;
    --accent-hover: #00f5c4;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --text: #eee;
    --text-muted: #888;
    --text-dim: #555;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-bg-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --btn-secondary: #3a3a5c;
    --btn-secondary-hover: #4a4a7c;
    --tense-bg: rgba(255, 193, 7, 0.2);
    --tense-color: #ffc107;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--text);
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
}

h1 {
    color: var(--accent);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-weight: 600;
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent);
}

.btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.4);
}

.btn-secondary {
    background: var(--btn-secondary);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--btn-secondary-hover);
}

.stats {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.phrase-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phrase-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.phrase-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background: var(--card-bg-hover);
}

.phrase-header {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
}

.phrase-number {
    background: var(--accent);
    color: var(--bg-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.origin-text,
.russian-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.5;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.phrase-card.open .toggle-icon {
    transform: rotate(180deg);
}

/* Target language text (Portuguese, English, etc.) */
.portuguese-text,
.english-text,
.target-text {
    padding: 0 20px 20px 71px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.phrase-card.open .portuguese-text,
.phrase-card.open .english-text,
.phrase-card.open .target-text {
    display: block;
}

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

.pt-content,
.en-content,
.target-content {
    background: rgba(0, 212, 170, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
}

.pt-label,
.en-label,
.target-label {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.pt-phrase,
.en-phrase,
.target-phrase {
    font-size: 1.15rem;
    color: #fff;
    font-style: italic;
}

.verb-highlight {
    color: var(--accent);
    font-weight: 600;
}

.tense-tag {
    display: inline-block;
    background: var(--tense-bg);
    color: var(--tense-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 10px;
}

.search-box {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 30px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-box:focus {
    border-color: var(--accent);
    background: var(--card-bg-hover);
}

.search-box::placeholder {
    color: #666;
}

footer {
    text-align: center;
    padding: 40px 0 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Conjugation FAB button */
.conjugation-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.conjugation-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 212, 170, 0.6);
}

/* Conjugation Modal */
.conjugation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.conjugation-modal.open {
    display: flex;
}

.conjugation-content {
    background: var(--bg-darker);
    border-radius: 16px;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid var(--border);
    position: relative;
}

.conjugation-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.conjugation-close:hover {
    color: var(--text);
}

.conjugation-title {
    color: var(--accent);
    margin: 0 0 20px 0;
    font-size: 1.5rem;
}

.conjugation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.conjugation-table th {
    background: rgba(0, 212, 170, 0.2);
    color: var(--accent);
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--accent);
}

.conjugation-table td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.conjugation-table tr:hover td {
    background: var(--card-bg-hover);
}

.conjugation-table .pronoun {
    color: var(--text-muted);
    font-style: italic;
    width: 80px;
}

.tense-explanation {
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
}

.tense-explanation h4 {
    color: var(--accent);
    margin: 0 0 6px 0;
    font-size: 1rem;
}

.tense-explanation p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    h1 { font-size: 1.8rem; }
    .phrase-header { padding: 15px; }
    .translation-text { padding-left: 15px; }
    .phrase-number { width: 30px; height: 30px; font-size: 0.8rem; }
    .conjugation-fab { bottom: 16px; right: 16px; width: 48px; height: 48px; font-size: 1.2rem; }
    .conjugation-content { padding: 16px; }
    .conjugation-table { font-size: 0.85rem; }
    .conjugation-table th, .conjugation-table td { padding: 6px 4px; }
}
