:root {
    --primary-color: #2e2ecc;
    --card-bg: #fff;
    --card-border: #e1e1e1;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Main content */
.main-content {
    min-height: calc(100vh - 70px);
    padding-top: 20px;
    background: #f5f5f5;
}

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

.blog-details-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    overflow: hidden;
    padding: 30px;
    margin-bottom: 30px;
}

.blog-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.blog-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 20px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-details strong {
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 2px;
}

.post-date {
    color: #666;
    font-size: 0.85rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.author-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.blog-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    white-space: pre-line;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.blog-content a:hover {
    color: #1a1a8a;
}

.blog-tags {
    font-size: 0.95rem;
    color: #666;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.like-btn {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #444;
    margin: 20px 0;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.like-btn:hover {
    background: #f8f9fa;
}

.like-btn:disabled {
    color: #aaa;
    cursor: not-allowed;
}

.like-count {
    font-size: 1rem;
    color: #666;
}

.comments-section {
    margin-top: 40px;
    color: var(--primary-color);
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comments-section h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.comment-box {
    margin-top: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li {
    margin-bottom: 15px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.comment-list li:last-child {
    border-bottom: none;
}

.comment-form textarea,
.comment-form input {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px;
    font-size: 0.95rem;
}

.comment-form textarea:focus,
.comment-form input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(46, 46, 204, 0.1);
    outline: none;
}

.comment-form .btn {
    margin-top: 10px;
    background: var(--primary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.comment-form .btn:hover {
    background: #1a1a8a;
    transform: translateY(-1px);
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.back-link:hover {
    text-decoration: none;
    background: #e9ecef;
    color: #1a1a8a;
}

/* Video Section Styles */
.video-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color, #2e2ecc);
}

.video-section h4 {
    margin-bottom: 20px;
    color: var(--primary-color, #2e2ecc);
    font-size: 1.2rem;
    font-weight: 600;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* Video controls styling for blog details */
.blog-video::-webkit-media-controls {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.blog-video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
}

.blog-video::-webkit-media-controls-play-button {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.blog-video::-webkit-media-controls-timeline {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.blog-video::-webkit-media-controls-current-time-display,
.blog-video::-webkit-media-controls-time-remaining-display {
    color: white;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .blog-details-card {
        padding: 20px;
    }
    .blog-title {
        font-size: 1.5rem;
    }
    .author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .blog-image {
        height: 200px;
    }
}

.alert {
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
} 