/* =============================== */
/* Global Styles */
/* =============================== */

#pgts-container {
    width: 360px;
    max-width: auto;
    margin: 0 auto;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
}

/* =============================== */
/* Top Tweet Box */
/* =============================== */

#pgts-top-bar {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

#pgts-top-bar textarea {
    width: 360px;
    min-height: 70px !important;
    resize: none;
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 10px;
    background: #f8fafc;
    font-size: 15px;
    transition: 0.2s;
}

#pgts-top-bar textarea:focus {
    background: #ffffff;
    border: 1px solid #3b82f6;
}

#pgts-top-bar input[type=file] {
    margin-top: 6px;
}

#pgts-submit-top {
    background: #3b82f6;
    color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    float: right;
    transition: 0.2s;
}

#pgts-submit-top:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

/* preview image in top box */
#pgts-preview-container-top img {
    max-width: 150px;
    border-radius: 8px;
    margin-top: 10px;
}

/* =============================== */
/* Tweet Feed */
/* =============================== */

.pgts-tweet {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    margin-bottom: 12px;
    font-size: 15px;
}

.pgts-tweet-header {
    font-weight: 600;
    margin-bottom: 6px;
}

.pgts-tweet-time {
    font-size: 12px;
    color: #657786;
}

.pgts-tweet img.pgts-img {
    max-width: 100%;
    margin-top: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.pgts-tweet img.pgts-img:hover {
    opacity: 0.85;
}

/* Like / Dislike Buttons */
.pgts-actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
}

.pgts-like-btn, .pgts-dislike-btn {
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 8px;
    background: #f1f5f9;
    transition: 0.2s;
}

.pgts-like-btn:hover {
    background: #e0f2fe;
}

.pgts-dislike-btn:hover {
    background: #fee2e2;
}

/* =============================== */
/* Floating Bottom Tweet Bar */
/* =============================== */

#pgts-post-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 360px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 10px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
    z-index: 9999;
}

#pgts-post-bar textarea {
    width: 100%;
    min-height: 45px;
    resize: none;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px;
    font-size: 15px;
}

#pgts-submit {
    margin-top: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: none;
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
    float: right;
    transition: 0.2s;
}

#pgts-submit:disabled {
    background: #a5b4fc;
    cursor: not-allowed;
}

/* Preview */
#pgts-preview-container img {
    max-width: 90px;
    border-radius: 8px;
    margin-top: 6px;
}

/* =============================== */
/* Responsive Tweaks */
/* =============================== */

@media (max-width: 600px) {
    #pgts-top-bar {
        margin-bottom: 10px;
    }

    #pgts-post-bar textarea {
        font-size: 14px;
    }
}


/* Additions to existing styles — paste into your assets/style.css, replacing or merging as needed */

/* tiny avatar tweak */
.pgts-ava img { border-radius: 50%; width:40px; height:40px; object-fit:cover; }

/* meta row */
.pgts-meta { display:flex; gap:8px; align-items:center; margin-bottom:6px; }
.pgts-timestamp { color:#6b7280; font-size:12px; }

/* suggestion box for mentions */
.pgts-suggestions { position:absolute; background:#fff; border:1px solid #ddd; z-index:9999; max-width:300px; padding:6px; border-radius:6px; box-shadow:0 2px 6px rgba(0,0,0,0.08); }
.pgts-suggestion { padding:6px; cursor:pointer; border-radius:4px; }
.pgts-suggestion:hover { background:#f1f5f9; }

/* highlight animation for new posts */
.pgts-item.new-tweet { animation: highlightNew 2s ease-in-out; }
@keyframes highlightNew {
  0% { background: #fff59d; }
  100% { background: #e6f2ff; }
}

/* edit area style */
.pgts-edit-area { width:100%; min-height:60px; margin-top:6px; padding:8px; border-radius:6px; border:1px solid #cbd5e1; }

/* small control buttons */
.pgts-edit, .pgts-delete, .pgts-save-edit, .pgts-cancel-edit {
  background:#eef2ff; border:1px solid #c7d2fe; padding:4px 8px; border-radius:6px; cursor:pointer; margin-left:6px;
}

/* Image Modal */
#pgts-img-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    text-align: center;
}

#pgts-img-modal img {
    max-width: 90%;
    max-height: 90%;
    margin-top: 50px;
    border-radius: 8px;
}

#pgts-img-close {
    position: fixed;
    top: 15px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10000;
    background: rgba(0,0,0,0.7);
    padding: 5px 12px;
    border-radius: 50%;
    transition: 0.3s;
}

#pgts-img-close:hover {
    background: red;
}
