/*
Theme Name: P2 Microblog Clone
Theme URI: https://github.com/example/p2-microblog-clone
Description: A lightweight, clean, real-time microblogging theme inspired by Automattic's P2. Features front-end posting via the WordPress REST API.
Version: 1.0.0
Author: Gemini Custom Themes
Author URI: https://google.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: p2-clone
*/

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

#p2-container {
    width: 100%;
    max-width: 650px;
}

header.p2-header {
    margin-bottom: 25px;
    text-align: center;
}

header.p2-header h1 {
    font-size: 24px;
    margin: 0 0 5px 0;
}

header.p2-header p {
    color: #65676b;
    margin: 0;
    font-size: 14px;
}

#p2-post-form-container {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

#p2-post-form-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #050505;
}

#p2-submit-post-form input[type="text"],
#p2-submit-post-form textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
}

#p2-submit-post-form textarea {
    height: 100px;
    resize: vertical;
}

#p2-submit-post-form input[type="text"]:focus,
#p2-submit-post-form textarea:focus {
    outline: none;
    border-color: #1877f2;
}

#p2-submit-btn {
    background-color: #1877f2;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

#p2-submit-btn:hover {
    background-color: #166fe5;
}

.p2-post {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 16px;
}

.p2-author-avatar img {
    border-radius: 50%;
    background: #ddd;
}

.p2-post-body {
    flex-grow: 1;
}

.p2-post-meta {
    margin-bottom: 8px;
    font-size: 14px;
}

.p2-post-meta strong {
    color: #050505;
}

.p2-post-meta small {
    color: #65676b;
    margin-left: 8px;
}

.p2-post-body h4 {
    margin: 5px 0 10px 0;
    font-size: 18px;
    color: #050505;
}

.p2-content {
    font-size: 15px;
    line-height: 1.5;
    color: #050505;
}

/* Real-time fade-in entry */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-fade-in {
    animation: fadeIn 0.4s ease-out;
}