/*
 Theme Name: Kapnobatai Magazine
 Theme URI: https://kapnobatai.online
 Author: Your Name
 Author URI: https://kapnobatai.online
 Description: A custom online magazine theme inspired by Newspaper.
 Version: 1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: kapnobatai-magazine
*/
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header {
    background: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
article {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.magazine-posts {
    max-width: 1200px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.post-preview {
    padding: 15px;
    border: 1px solid #ddd;
}
.post-preview img {
    max-width: 100%;
    height: auto;
}

/* Single Post Styles */
.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}
.post-content {
    flex: 2; /* Takes up more space */
}
.post-sidebar {
    flex: 1; /* Smaller sidebar */
    max-width: 400px;
}
.featured-image img {
    max-width: 100%;
    height: auto;
}
.featured-video .video-embed {
    margin-bottom: 20px;
}
.sources {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
}
.sources h3 {
    margin-top: 0;
}
.featured-video {
    max-width: 100%;
}
.featured-video blockquote {
    margin: 0;
    padding: 0;
    border: none;
}
.featured-video .twitter-tweet {
    margin: 0 auto;
}

/* Add to the end of style.css */
.video-placeholder {
    position: relative;
    cursor: pointer;
    max-width: 400px;
}
.video-placeholder .video-thumb {
    display: block;
    width: 100%;
    height: auto;
}
.video-placeholder .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>') no-repeat center;
    background-size: 50%;
    border-radius: 50%;
}