/* Blog Detail Styles */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    color: #f8f8f2;
}

.blog-author-card {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(68, 71, 90, 0.8), rgba(40, 42, 54, 0.8));
    border-radius: 12px;
    border: 1px solid rgba(189, 147, 249, 0.3);
}

.author-avatar {
    margin-right: 20px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #bd93f9;
}

.author-role {
    font-size: 0.9em;
    color: #8be9fd;
}

.blog-date {
    font-size: 0.9em;
    color: #6272a4;
}

.blog-content {
    font-size: 1.1em;
    line-height: 1.8;
    margin: 30px 0;
    padding: 30px;
    background: rgba(40, 42, 54, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(189, 147, 249, 0.2);
}

.blog-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(68, 71, 90, 0.8), rgba(40, 42, 54, 0.8));
    border-radius: 12px;
    border: 1px solid rgba(189, 147, 249, 0.3);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-icon {
    font-size: 1.5em;
}

.stats-count {
    font-size: 1.2em;
    font-weight: bold;
    color: #bd93f9;
}

.stats-label {
    font-size: 0.9em;
    color: #6272a4;
}

.reaction-buttons {
    display: flex;
    gap: 15px;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(68, 71, 90, 0.6);
    border: 1px solid rgba(189, 147, 249, 0.3);
    border-radius: 8px;
    color: #f8f8f2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    background: rgba(189, 147, 249, 0.2);
    border-color: #bd93f9;
    transform: translateY(-2px);
}

.reaction-btn.active {
    background: linear-gradient(135deg, #bd93f9, #ff79c6);
    border-color: #bd93f9;
    color: #282a36;
}

.reaction-icon {
    font-size: 1.2em;
}

.reaction-count {
    font-weight: bold;
}

.return-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #bd93f9;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.return-link:hover {
    color: #ff79c6;
}

.return-icon {
    font-size: 1.2em;
}

.comments-section {
    margin-top: 40px;
}

.comments-section h2 {
    color: #bd93f9;
    margin-bottom: 20px;
    text-align: center;
}

.comment {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(40, 42, 54, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(189, 147, 249, 0.2);
}

.comment-content {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #6272a4;
}

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

.comment-date {
    color: #6272a4;
}

.comment-form-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(68, 71, 90, 0.8), rgba(40, 42, 54, 0.8));
    border-radius: 12px;
    border: 1px solid rgba(189, 147, 249, 0.3);
}

.comment-form-section h2 {
    color: #bd93f9;
    margin-bottom: 20px;
    text-align: center;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    background: rgba(40, 42, 54, 0.8);
    border: 1px solid rgba(189, 147, 249, 0.3);
    border-radius: 8px;
    color: #f8f8f2;
    font-size: 1em;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.comment-form textarea:focus {
    border-color: #bd93f9;
    outline: none;
}

.comment-form textarea::placeholder {
    color: #6272a4;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cosmic-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #bd93f9, #ff79c6);
    border: none;
    border-radius: 8px;
    color: #282a36;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cosmic-button:hover {
    background: linear-gradient(135deg, #8257e5, #bd93f9);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(189, 147, 249, 0.5);
}

.login-prompt {
    text-align: center;
    padding: 30px;
    background: rgba(40, 42, 54, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(189, 147, 249, 0.2);
    margin-top: 30px;
}

.login-prompt a {
    color: #bd93f9;
    text-decoration: none;
    font-weight: bold;
}

.login-prompt a:hover {
    color: #ff79c6;
}

.no-comments {
    text-align: center;
    padding: 30px;
    color: #6272a4;
    font-style: italic;
}

.mini-loader {
    position: fixed;
    width: 30px;
    height: 30px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-loader.active {
    opacity: 1;
}

.mini-planet {
    width: 8px;
    height: 8px;
    background: #bd93f9;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1s infinite;
}

.mini-orbit {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(189, 147, 249, 0.3);
    border-radius: 50%;
    position: absolute;
    animation: rotate 2s linear infinite;
}

.mini-moon {
    width: 4px;
    height: 4px;
    background: #ff79c6;
    border-radius: 50%;
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .blog-detail {
        padding: 10px;
    }
    
    .blog-author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Rearrange blog stats: reactions on top row, return link below */
    .blog-stats {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .reaction-buttons {
        justify-content: center;
        order: -1;
    }

    .stats-item {
        justify-content: center;
    }

    .return-link {
        justify-content: center;
        padding: 8px 0;
        border-top: 1px solid rgba(148, 87, 235, 0.2);
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
}
