.detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 300;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.back-link:hover {
    color: #000;
}

.back-link svg {
    width: 14px;
    height: 14px;
}

.phrase-detail-card {
    background: white;
    border-radius: 2px;
    padding: 40px;
    border: 1px solid #000;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.top-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.phrase-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.phrase-title {
    font-size: 2rem;
    font-weight: 400;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0;
}

.language-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.phrase-description {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

.phrase-meta {
    margin-bottom: 30px;
    border-top: 1px solid #000;
    padding-top: 30px;
}

.meta-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 20px;
    width: 100%;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.reference-row {
    justify-content: center;
    margin-bottom: 30px;
}

.reference-item {
    max-width: 600px;
    width: 100%;
}

.details-row {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.meta-item {
    text-align: center;
    min-width: 120px;
    flex: 1;
}

.meta-label {
    font-size: 0.8rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 400;
}

.meta-value {
    font-size: 1rem;
    font-weight: 300;
    color: #666;
}

.phrase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    background-color: #000;
    color: white;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.votes-section {
    background: white;
    border-radius: 2px;
    padding: 40px;
    border: 1px solid #000;
}

.votes-header {
    font-size: 1.2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vote-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.vote-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #000;
    padding: 12px 24px;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Oswald', sans-serif;
}

.vote-action-btn:hover {
    background: #f0f0f0;
}

.vote-action-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.vote-action-btn:disabled:hover {
    background: white;
}

.upvote-action span:first-child {
    font-size: 1.2rem;
}

.downvote-action span:first-child {
    font-size: 1.2rem;
}

.vote-stats {
    display: flex;
    justify-content: center;
    text-align: center;
    border-top: 1px solid #000;
    padding-top: 30px;
}

.vote-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-stat-number {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 5px;
    color: #000;
    transition: transform 0.2s ease;
}

.vote-stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #000;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .detail-container {
        padding: 15px;
    }
    
    .phrase-detail-card {
        padding: 25px;
    }
    
    .report-btn, .share-btn {
        font-size: 0.7rem;
        padding: 5px 10px;
        gap: 4px;
    }
    
    .phrase-header {
        flex-direction: column;
    }
    
    .phrase-title {
        font-size: 1.8rem;
    }
    
.language-flag {
        font-size: 1.2rem;
    }
    
    .phrase-description {
        font-size: 0.9rem;
    }
    
    .meta-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .details-row {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }
    
    .reference-item {
        max-width: 100%;
    }
    
    .vote-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .votes-section {
        padding: 25px;
    }
}

/* Action Buttons Container */
.action-buttons-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.report-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #dc3545;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #dc3545;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.report-btn:hover {
    background: #fdf2f2;
    border-color: #dc3545;
    color: #dc3545;
}

.report-btn span:first-child {
    font-size: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #000;
    padding: 6px 12px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #000;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.share-btn:hover {
    background: #f0f0f0;
    border-color: #000;
    color: #000;
}

.share-btn span:first-child {
    font-size: 1rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 2px;
    width: 90%;
    max-width: 500px;
    border: 1px solid #000;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 20px 0;
    font-weight: 300;
    color: #000;
}

.report-section {
    margin-bottom: 25px;
}

.report-section:last-child {
    margin-bottom: 0;
}

.report-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.field-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 300;
    padding: 8px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.field-option:hover {
    background: #f8f8f8;
}

.field-option input[type="radio"] {
    margin: 0;
}

.field-option span {
    font-size: 0.9rem;
    color: #000;
}

.report-reasons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reason-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 300;
    padding: 8px;
    border-radius: 2px;
    transition: background-color 0.2s ease;
}

.reason-option:hover {
    background: #f8f8f8;
}

.reason-option input[type="radio"] {
    margin: 0;
}

.reason-option span {
    font-size: 0.9rem;
    color: #000;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-btn {
    padding: 10px 20px;
    border: 1px solid #000;
    border-radius: 2px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Oswald', sans-serif;
    transition: all 0.2s ease;
}

.cancel-btn {
    background: white;
    color: #000;
}

.cancel-btn:hover {
    background: #f0f0f0;
}

.submit-btn {
    background: #000;
    color: white;
}

.submit-btn:hover {
    background: #333;
}

.submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

