/*
Theme Name: Christ P2P (GracePress)
Theme URI: https://christp2p.com
Author: Jason Eugene Garrison
Author URI: https://christit.com
Description: The official, highly optimized custom theme for Christ P2P. Features built-in PeerTube integration and GracePress module support.
Version: 1.1.1
License: GPLv2 or later
Text Domain: christp2p
*/

body {
    background-color: #f1f5f9;
    color: #334155;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

a { 
    color: #0284c7; 
    text-decoration: none; 
    transition: color 0.2s;
}
a:hover {
    color: #0369a1;
}

/* Header & Navigation Styles */
.site-header { 
    background: #0f172a; 
    color: white; 
    padding: 2rem 5%; 
    text-align: center; 
    margin-bottom: 2rem; 
}
.site-header .custom-logo {
    max-width: 250px;
    height: auto;
}
.main-navigation {
    margin-top: 20px;
    background: rgba(255,255,255,0.05);
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.main-navigation li a {
    color: #e2e8f0;
    font-weight: 600;
    padding: 5px 10px;
}
.main-navigation li a:hover,
.main-navigation li.current-menu-item a {
    color: #38bdf8;
}

/* Flexbox Grid for Sidebar */
.site-wrapper { 
    display: flex; 
    flex-wrap: wrap; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    gap: 40px; 
}
.site-main { 
    flex: 1 1 65%; 
} 
.site-sidebar { 
    flex: 1 1 25%; 
    background: #ffffff; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    align-self: start; 
}

@media (max-width: 768px) {
    .site-wrapper { flex-direction: column; }
    .site-main, .site-sidebar { flex: 1 1 100%; }
}

/* Responsive Video Embeds for PeerTube/YouTube */
.entry-content iframe,
.entry-content object,
.entry-content embed {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
