/* Blog Section Styles */

.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding-top:100px;
}

.blog-post {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blog-hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.blog-back-button-top {
    position: absolute;
    top: 30px;
    left: 30px;
    padding: 12px 24px;
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(255, 255, 255);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.blog-back-button-top:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-3px);
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 40px;
}

.blog-meta {
    margin-bottom: 20px;
}

.blog-date {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgb(137, 137, 137);
    letter-spacing: 0.5px;
}

.blog-title {
    font-family: "Open Sans", sans-serif;
    font-size: 36px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    line-height: 1.3;
    margin: 0 0 30px 0;
}

.blog-text {
    font-family: "Overpass", sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: rgb(50, 50, 50);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.blog-text p {
    margin: 0 0 20px 0;
}

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

.blog-comments {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-comments-title {
    font-family: "Open Sans", sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    margin: 0 0 10px 0;
}

/* Comments List */
.blog-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-comment-item {
    padding: 20px;
    background: rgb(250, 250, 250);
    border-radius: 8px;
    border: 1px solid rgb(230, 230, 230);
}

.blog-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.blog-comment-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-comment-author {
    font-family: "Overpass", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgb(0, 0, 0);
}

.blog-comment-date {
    font-family: "Overpass", sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: rgb(137, 137, 137);
}

.blog-comment-text {
    font-family: "Overpass", sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgb(50, 50, 50);
    line-height: 1.6;
    white-space: pre-wrap;
}

.blog-comment-delete {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgb(137, 137, 137);
    font-size: 18px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.blog-comment-item:hover .blog-comment-delete {
    opacity: 1;
}

.blog-comment-delete:hover {
    color: rgb(200, 50, 50);
}

.blog-comment-delete:active {
    transform: scale(0.95);
}

.blog-comments-empty,
.blog-comments-loading,
.blog-comments-error {
    text-align: center;
    padding: 30px;
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    color: rgb(137, 137, 137);
}

.blog-comments-error {
    color: rgb(200, 50, 50);
}

/* Comment Form */
.blog-comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-comment-form-title {
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: rgb(0, 0, 0);
    margin: 0;
}

.blog-comment-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.blog-comment-name,
.blog-comment-email {
    width: 100%;
    padding: 12px 15px;
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    color: rgb(50, 50, 50);
    border: 1px solid rgb(220, 220, 220);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.blog-comment-name:focus,
.blog-comment-email:focus {
    border-color: rgb(100, 100, 100);
}

.blog-comment-name::placeholder,
.blog-comment-email::placeholder {
    color: rgb(150, 150, 150);
}

.blog-comment-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    color: rgb(50, 50, 50);
    border: 1px solid rgb(220, 220, 220);
    border-radius: 8px;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.blog-comment-input:focus {
    border-color: rgb(100, 100, 100);
}

.blog-comment-input::placeholder {
    color: rgb(150, 150, 150);
}

.blog-comment-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.blog-comment-button {
    padding: 12px 40px;
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: rgb(0, 90, 200);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.blog-comment-button:hover:not(:disabled) {
    background: rgb(0, 70, 180);
}

.blog-comment-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.blog-comment-message {
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    padding: 10px;
    border-radius: 6px;
    min-height: 20px;
}

.blog-comment-message-success {
    background: rgb(240, 255, 240);
    color: rgb(0, 150, 0);
    border: 1px solid rgb(200, 255, 200);
}

.blog-comment-message-error {
    background: rgb(255, 240, 240);
    color: rgb(200, 50, 50);
    border: 1px solid rgb(255, 200, 200);
}

.blog-back-button {
    align-self: flex-start;
    padding: 10px 30px;
    font-family: "Overpass", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: rgb(100, 100, 100);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-decoration: underline;
}

.blog-back-button:hover {
    color: rgb(0, 0, 0);
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-hero-image {
        height: 250px;
    }
    
    .blog-content {
        padding: 30px 20px;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-text {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding-top:100px;
    }
    
    .blog-hero-image {
        height: 200px;
    }
    
    .blog-content {
        padding: 25px 15px;
    }
    
    .blog-title {
        font-size: 24px;
    }
    
    .blog-comment-fields {
        grid-template-columns: 1fr;
    }
    
    .blog-comment-button {
        width: 100%;
    }
    
    .blog-comment-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

