/* Stylesheet for V10 Poetry Analyzer (analyseur2.php) */

.analyseur-container-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--font-sans), sans-serif;
    padding: 0;
    box-sizing: border-box;
}

/* Breadcrumb Styling matching poemetri */
.breadcrumb-poem {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans) !important;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.breadcrumb-poem a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.breadcrumb-poem a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}
.breadcrumb-poem span.separator {
    color: var(--text-muted);
    opacity: 0.7;
    margin: 0 2px;
}
.breadcrumb-poem span.current {
    color: var(--text-main);
    font-weight: 500;
}

/* Main Analyzer Card */
.analyzer-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 35px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.analyzer-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.analyzer-header h1 {
    font-family: var(--font-serif);
    color: var(--accent);
    font-size: 2.2rem;
    margin: 0 0 10px 0;
}

.analyzer-header p {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Input Section */
.input-section {
    margin-bottom: 25px;
}

.poem-textarea {
    width: 100%;
    height: 250px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: #fafafa;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-sizing: border-box;
}

.poem-textarea:focus {
    border-color: var(--accent);
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 38, 62, 0.15);
}

/* Action Area */
.analyzer-actions {
    text-align: center;
    margin-bottom: 35px;
}

.btn-analyze {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.btn-analyze:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 38, 62, 0.2);
}

.btn-analyze:active {
    transform: scale(0.98);
}

.tool-note {
    margin-top: 15px;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    display: block;
}

/* Results Display */
.results-section {
    display: none;
    animation: modalSlideUp 0.4s ease;
    border-top: 1px dashed var(--border-color);
    padding-top: 30px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: var(--bg-page);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent);
    box-shadow: var(--shadow);
}

.summary-card span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-sans);
}

.summary-card label {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific Card Borders */
.summary-card.form-classic { border-left-color: #27ae60; }
.summary-card.form-regular { border-left-color: #3498db; }
.summary-card.form-proximal { border-left-color: #f39c12; }
.summary-card.form-free { border-left-color: #95a5a6; }

.form-details {
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #faf9f6;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    line-height: 1.5;
    display: none;
}

.form-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Results Table */
.detailed-results {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    box-shadow: var(--shadow);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.detailed-results th {
    background: #3a1c22;
    color: white;
    text-align: left;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
}

.detailed-results td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    vertical-align: middle;
}

.detailed-results tr:last-child td {
    border-bottom: none;
}

.verse-display {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
}

.syl-1 { color: #1976d2; font-weight: 600; } /* Blue accents */
.syl-2 { color: #d32f2f; font-weight: 600; } /* Red accents */

.elided {
    color: #8c8c8c;
    text-decoration: line-through;
    opacity: 0.7;
}

.count-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    text-align: center;
}

.badge-syllables { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; }
.badge-rhyme-f { background: #fce4ec; color: #c2185b; border: 1px solid #f8bbd0; }
.badge-rhyme-m { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }

@keyframes modalSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .detailed-results th, .detailed-results td {
        padding: 10px 12px;
    }
}
