@import url(components.css);

body {
    background-color: #f8f9fa;
    color: #333;
}

.article-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
}

.blog-post {
    background: #fff;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.post-title {
    font-size: 2.2em;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.post-meta i {
    color: var(--main-color);
    margin-right: 5px;
}

.post-hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.post-content p {
    font-size: 1.1em;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.author-actions {
    display: flex;
    gap: 12px;
    margin-top: 35px;
    padding-top: 20px;
}

.delete-post-form {
    margin: 0;
}

.btn-action {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: 0.2s;
}

.btn-edit {
    border-radius: 6px;
}

.btn-delete {
    background-color: var(--delete); 
    color: white;
}

.btn-delete:hover {
    background-color: #bd2130;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 40px 0;
}

.comments-section h2 {
    color: #222;
    margin-bottom: 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.comment-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-left: 4px solid var(--main-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.comment-author {
    font-weight: bold;
    color: #111;
}

.comment-date {
    color: #888;
}

.comment-text {
    line-height: 1.5;
    color: #555;
}


.comment-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comment-form h3 {
    margin-bottom: 15px;
    color: #333;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px;
}

.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--main-color);
}

.form-error {
    min-height: 20px;
    margin-top: 6px;
    color: var(--delete);
    font-size: 0.9rem;
}

.comment-login,
.owner-message {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border-left: 4px solid var(--main-color);
}

.owner-message {
    margin-top: 25px;
}

.btn-submit-comment {
    padding: 12px 24px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-submit-comment:hover {
    background: #111;
}

.btn-submit-comment:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}
