body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* 薄いグレーの背景 */
    color: #333;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.container {
    max-width: 1140px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8); /* 白基調の半透明 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

header h1 {
    margin: 0;
    color: #333;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li:hover a {
    color: #007bff;
}

footer {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 10px 10px;
    color: #666;
    font-size: 0.9em;
}

footer a {
    color: #555;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.form-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.terms {
    display: flex;
    align-items: center;
}

.form-group.terms input[type="checkbox"] {
    margin-right: 10px;
}

.form-group.terms label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-group.terms a {
    color: #007bff;
    text-decoration: none;
}

.form-group.terms a:hover {
    text-decoration: underline;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-container textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-container textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.message {
    background-color: #e9f7ef;
    color: #28a745;
    border: 1px solid #d4edda;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.message.error {
    background-color: #f8d7da;
    color: #dc3545;
    border: 1px solid #f5c6cb;
}

.form-container p {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-container p a {
    color: #007bff;
    text-decoration: none;
}

.form-container p a:hover {
    text-decoration: underline;
}

/* Post & Timeline Styles */
.post-form-container, .timeline-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.post-form-container h2, .timeline-container h2, .timeline-container h3 {
    color: #333;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.post-form-container textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    resize: vertical;
}

.post-form-container button[type="submit"] {
    margin-top: 10px;
}

.post-card {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-author a {
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 5px;
}

.post-author a:hover {
    text-decoration: underline;
}

.post-content {
    margin-bottom: 10px;
    line-height: 1.6;
}

.post-date {
    font-size: 0.8em;
    color: #777;
    text-align: right;
}

.info-message {
    background-color: #e0f7fa;
    color: #007bff;
    border: 1px solid #b2ebf2;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

/* Post Actions */
.post-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-btn {
    background: none;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 0.9em;
    color: #555;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.action-btn.danger-btn {
    color: #dc3545;
    border-color: #dc3545;
}

.action-btn.danger-btn:hover {
    background-color: #dc3545;
    color: white;
}

.action-btn.playback-btn {
    color: #007bff;
    border-color: #007bff;
}

.action-btn.playback-btn:hover {
    background-color: #e7f3ff; /* A light blue */
}

/* Reactions */
.reactions-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.reaction-chip {
    display: flex;
    align-items: center;
    background-color: #e9e9e9;
    border-radius: 20px;
    padding: 3px 8px;
    font-size: 0.9em;
}

.reaction-chip span:first-child {
    margin-right: 4px;
}

/* ReDrop, Quote, Reply Styles */
.redrop-header {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

.original-post, .quote-post {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.5);
}

.quote-preview-container, .reply-preview-container {
    margin-bottom: 15px;
}

.quote-preview-container p, .reply-preview-container p {
    font-weight: bold;
    color: #555;
}

.reply-info {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
}

/* Profile Page Styles */
.profile-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.profile-header {
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.profile-header h2 {
    margin: 0;
    font-size: 2em;
}

.profile-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #555;
    margin-top: 10px;
}

.profile-bio {
    margin-top: 20px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap; /* To respect newlines in bio */
}

.profile-info-box {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.profile-info-box .profile-meta {
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 10px;
}

/* Danger Zone */
.danger-zone {
    background-color: rgba(248, 215, 218, 0.8);
    border: 1px solid rgba(245, 198, 203, 0.8);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.danger-zone h3 {
    color: #721c24;
    margin-top: 0;
}

.danger-zone p {
    color: #721c24;
}

.danger-zone .danger-btn {
    width: auto;
    padding: 10px 20px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.danger-zone .danger-btn:hover {
    background-color: #c82333;
}

/* Admin Page Styles */
.admin-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.admin-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.admin-section {
    margin-bottom: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
}

.admin-section h2 {
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.admin-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-section th, .admin-section td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.admin-section th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.admin-section tr:nth-child(even) {
    background-color: #f9f9f9;
}

.admin-section .danger-btn {
    padding: 5px 10px;
    font-size: 0.8em;
    width: auto;
}

.post-content-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Guide Page Styles */
.guide-section {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.guide-section h2 {
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.guide-section ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.guide-section li {
    margin-bottom: 8px;
}

.guide-section strong {
    color: #007bff;
}

.guide-section a {
    color: #007bff;
    text-decoration: none;
}

.guide-section a:hover {
    text-decoration: underline;
}

/* Timeline Controls */
.timeline-controls {
    text-align: center;
    margin-bottom: 20px;
}

.timeline-btn {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 1em;
    color: #495057;
    transition: all 0.3s ease;
}

.timeline-btn:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
}

.timeline-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.timeline-btn.active:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        margin: 0;
        padding: 10px;
        border-radius: 0;
        width: 100%;
    }

    header {
        flex-direction: column;
        align-items: center; /* Center items in column layout */
    }

    header h1 {
        margin-bottom: 15px;
    }

    nav ul {
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center; /* Center the items */
        padding: 0; /* Remove default padding */
    }

    nav ul li {
        margin: 5px; /* Reset margin for wrapped items */
    }

    .form-group input[type="text"],
    .form-group input[type="password"],
    .form-container textarea {
        width: 100%; /* Full width for inputs */
    }

    .post-actions {
        flex-wrap: wrap;
        gap: 5px;
    }

    .action-btn {
        flex-grow: 1;
        text-align: center;
    }

    .profile-meta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* Adjust form-actions for mobile */
    .form-actions {
        flex-direction: column;
        align-items: flex-start; /* Align items to the start when stacked */
        gap: 10px; /* Add space between stacked items */
    }

    .form-actions button[type="submit"] {
        width: 100%; /* Make submit button full width */
    }

    .record-mode-toggle,
    .prominent-post-toggle {
        width: 100%; /* Ensure toggles take full width */
        justify-content: flex-start; /* Align content to the start */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 1.2em;
    }

    .post-card, .form-container, .post-form-container {
        padding: 10px;
    }
}

/* Form Action Styles */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.form-actions button[type="submit"] {
    width: auto; /* Override full width */
    padding: 10px 20px;
}

.record-mode-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #555;
}

/* Playback Area Styles */
.playback-area {
    /* Inherits most styles from post-card, looks like normal content */
    min-height: 50px; /* Give it some default height */
    margin-bottom: 10px;
    line-height: 1.6;
}

.playback-area .post-content {
    margin-bottom: 0;
}

/* Search Form in Header */
.search-form {
    display: flex;
    align-items: center;
}

.search-form input[type="search"] {
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 5px 0 0 5px;
    font-size: 0.9em;
    width: 150px;
}

/* Override generic button styles for the search form button */
.search-form button[type="submit"] {
    width: auto;
    padding: 8px 12px;
    margin: 0;
    border-radius: 0 5px 5px 0;
    font-size: 0.9em;
    line-height: 1.4; /* Adjust for vertical alignment */
}

/* Search Results Page */
#search-results h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.search-layout {
    display: flex;
    gap: 30px;
}

.search-posts {
    flex: 3;
}

.search-users {
    flex: 1;
}

.search-users .list-group {
    list-style: none;
    padding: 0;
}

.search-users .list-group-item {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}



.search-users .list-group-item a {

    text-decoration: none;

    color: #007bff;

    font-weight: bold;

}



/* Hamburger Menu Styles */

.hamburger-menu-icon {

    display: none; /* Hidden by default, shown on mobile */

    width: 30px;

    height: 20px;

    position: relative;

    cursor: pointer;

    flex-direction: column;

    justify-content: space-between;

    z-index: 1000;

}



.hamburger-menu-icon span {

    display: block;

    width: 100%;

    height: 3px;

    background-color: #555;

    transition: all 0.3s ease-in-out;

}



.hamburger-menu-icon.active span:nth-child(1) {

    transform: translateY(8px) rotate(45deg);

}



.hamburger-menu-icon.active span:nth-child(2) {

    opacity: 0;

}



.hamburger-menu-icon.active span:nth-child(3) {

    transform: translateY(-8px) rotate(-45deg);

}



.main-nav-links {

    display: flex;

    list-style: none;

    margin: 0;

    padding: 0;

}



.main-nav-links li {

    margin-left: 20px;

}



/* Dropdown for My Page */

.dropdown {

    position: relative;

    display: inline-block;

}



.dropdown-content {

    display: none;

    position: absolute;

    background-color: #f9f9f9;

    min-width: 160px;

    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);

    z-index: 1;

    border-radius: 5px;

    right: 0; /* Align dropdown to the right */

}



.dropdown-content a {

    color: black;

    padding: 12px 16px;

    text-decoration: none;

    display: block;

    text-align: left;

    font-weight: normal;

}



.dropdown-content a:hover {

    background-color: #f1f1f1;

}



.dropdown:hover .dropdown-content {

    display: block;

}



/* Responsive adjustments for hamburger menu */

@media (max-width: 768px) {

    .hamburger-menu-icon {

        display: flex; /* Show hamburger icon on mobile */

    }



    .main-nav-links {

        display: none; /* Hide nav links by default on mobile */

        flex-direction: column;

        position: absolute;

        top: 60px; /* Adjust based on header height */

        right: 0;

        background-color: rgba(255, 255, 255, 0.95);

        width: 100%;

        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);

        border-radius: 0 0 10px 10px;

        padding: 10px 0;

        z-index: 999;

    }



    .main-nav-links.active {

        display: flex; /* Show nav links when active */

    }



    .main-nav-links li {

        margin: 0;

        text-align: center;

        width: 100%;

    }



    .main-nav-links li a {

        padding: 10px 20px;

        display: block;

    }



    .dropdown {

        width: 100%;

    }



    .dropdown-content {

        position: static;

        width: 100%;

        box-shadow: none;

        background-color: transparent;

        border-radius: 0;

    }



    .dropdown-content a {

        padding-left: 40px; /* Indent dropdown items */

    }

}



/* Clip Page Styles (clips.php) */

.clip-creation-form, .user-clips, .public-clips {

    background-color: rgba(255, 255, 255, 0.9);

    padding: 20px;

    border-radius: 10px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    margin-top: 20px;

}



.clip-creation-form h2, .user-clips h2, .public-clips h2 {

    color: #333;

    margin-bottom: 15px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

    padding-bottom: 10px;

}



.clip-creation-form .form-group input[type="url"],

.clip-creation-form .form-group input[type="text"],

.clip-creation-form .form-group textarea {

    width: calc(100% - 20px);

    padding: 10px;

    border: 1px solid #ddd;

    border-radius: 5px;

    font-size: 1em;

    resize: vertical;

    margin-top: 5px;

    margin-bottom: 5px;

}



.clip-creation-form .form-group input[type="checkbox"] {

    margin-right: 8px;

}



.clip-creation-form button[type="submit"],

#add-url-field {

    width: auto;

    padding: 8px 15px;

    margin-top: 10px;

    background-color: #007bff;

    color: white;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    font-size: 1em;

    transition: background-color 0.3s ease;

}



.clip-creation-form button[type="submit"]:hover,

#add-url-field:hover {

    background-color: #0056b3;

}



#url-inputs-container input[type="url"] {

    margin-bottom: 5px;

}



.clip-card {

    background-color: rgba(255, 255, 255, 0.7);

    border: 1px solid #eee;

    border-radius: 8px;

    padding: 15px;

    margin-bottom: 15px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

}



.clip-card h3 {

    margin-top: 0;

    margin-bottom: 10px;

    color: #007bff;

    font-size: 1.2em;

}



.clip-card h3 a {

    text-decoration: none;

    color: inherit;

}



.clip-card h3 a:hover {

    text-decoration: underline;

}



.clip-url {

    font-size: 0.9em;

    color: #555;

    margin-bottom: 5px;

    word-break: break-all;

}



.clip-url a {

    color: #007bff;

    text-decoration: none;

}



.clip-url a:hover {

    text-decoration: underline;

}



.clip-description {

    font-size: 0.95em;

    color: #333;

    margin-bottom: 10px;

}



.clip-meta {

    font-size: 0.8em;

    color: #777;

    text-align: right;

}



.clip-actions {

    margin-top: 10px;

    padding-top: 10px;

    border-top: 1px solid #eee;

    display: flex;

    gap: 10px;

    justify-content: flex-end;

}



.delete-clip-btn {

    background: none;

    border: 1px solid #dc3545;

    border-radius: 20px;

    padding: 5px 15px;

    cursor: pointer;

    font-size: 0.9em;

    color: #dc3545;

    transition: all 0.3s ease;

}



.delete-clip-btn:hover {

    background-color: #dc3545;

    color: white;

}



/* List Page Styles (lists.php) */

.list-creation-form, .user-lists, .public-lists {

    background-color: rgba(255, 255, 255, 0.9);

    padding: 20px;

    border-radius: 10px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

    margin-top: 20px;

}



.list-creation-form h2, .user-lists h2, .public-lists h2 {

    color: #333;

    margin-bottom: 15px;

    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

    padding-bottom: 10px;

}



.list-creation-form .form-group input[type="text"],

.list-creation-form .form-group textarea,

.add-member-form input[type="text"] {

    width: calc(100% - 20px);

    padding: 10px;

    border: 1px solid #ddd;

    border-radius: 5px;

    font-size: 1em;

    resize: vertical;

    margin-top: 5px;

    margin-bottom: 5px;

}



.list-creation-form .form-group input[type="checkbox"] {

    margin-right: 8px;

}



.list-creation-form button[type="submit"],

.add-member-form button[type="submit"] {

    width: auto;

    padding: 8px 15px;

    margin-top: 10px;

    background-color: #007bff;

    color: white;

    border: none;

    border-radius: 5px;

    cursor: pointer;

    font-size: 1em;

    transition: background-color 0.3s ease;

}



.list-creation-form button[type="submit"]:hover,

.add-member-form button[type="submit"]:hover {

    background-color: #0056b3;

}



.list-card {

    background-color: rgba(255, 255, 255, 0.7);

    border: 1px solid #eee;

    border-radius: 8px;

    padding: 15px;

    margin-bottom: 15px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

}



.list-card h3 {

    margin-top: 0;

    margin-bottom: 10px;

    color: #333;

}



.list-card p {

    font-size: 0.9em;

    color: #555;

    margin-bottom: 10px;

}



.list-actions {

    margin-top: 10px;

    padding-top: 10px;

    border-top: 1px solid #eee;

    display: flex;

    gap: 10px;

    align-items: center;

}



.list-actions a, .list-actions button {

    background: none;

    border: 1px solid #ccc;

    border-radius: 20px;

    padding: 5px 15px;

    cursor: pointer;

    font-size: 0.9em;

    color: #555;

    text-decoration: none;

    transition: all 0.3s ease;

}



.list-actions a:hover, .list-actions button:hover {

    background-color: #f0f0f0;

    border-color: #999;

}



.list-actions .delete-list-btn {

    color: #dc3545;

    border-color: #dc3545;

}



.list-actions .delete-list-btn:hover {

    background-color: #dc3545;

    color: white;

}



.list-members-section {

    margin-top: 15px;

    padding-top: 15px;

    border-top: 1px dashed #eee;

}



.list-members-section h4 {

    margin-top: 0;

    margin-bottom: 10px;

    color: #333;

    font-size: 1em;

}



.current-members {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 10px;

    min-height: 20px; /* Ensure some height even if empty */

    align-items: center;

}



.member-chip {

    display: inline-flex;

    align-items: center;

    background-color: #e9e9e9;

    border-radius: 15px;

    padding: 5px 10px;

    font-size: 0.85em;

    color: #333;

}



.member-chip button {

    background: none;

    border: none;

    color: #888;

    cursor: pointer;

    margin-left: 5px;

    font-weight: bold;

    font-size: 1em;

    line-height: 1;

    padding: 0;

}



.member-chip button:hover {

    color: #dc3545;

}



.add-member-form {

    display: flex;

    gap: 5px;

    margin-top: 10px;

}



.add-member-form input[type="text"] {

    flex-grow: 1;

    margin-top: 0;

    margin-bottom: 0;

}



.add-member-form button {

    flex-shrink: 0;

}



#create-list-message, .member-message {

    margin-top: 10px;

    padding: 10px;

    border-radius: 5px;

    text-align: center;

}



#create-list-message.success, .member-message.success {

    background-color: #e9f7ef;

    color: #28a745;

    border: 1px solid #d4edda;

}



#create-list-message.error, .member-message.error {

    background-color: #f8d7da;

    color: #dc3545;

    border: 1px solid #f5c6cb;

}



/* Specific styles for list_detail.php */

#list-posts-container {

    margin-top: 20px;

}



#list-posts-container .post-card {

    margin-top: 0; /* Adjust if post-card already has margin-top */

}



/* Misskey Image Embed */

.misskey-image {

    max-width: 100%;

    height: auto;

    display: block; /* To remove extra space below image */

    margin-top: 10px;

    border-radius: 8px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

}



.profile-icon {

    width: 80px;

    height: 80px;

    border-radius: 50%;

    object-fit: cover;

    margin-bottom: 10px;

    border: 2px solid #007bff;

}



.post-author-icon {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    object-fit: cover;

    margin-right: 8px;

    vertical-align: middle;

    border: 1px solid #eee;

}



/* Adjust post-author to accommodate the icon */

.post-author {

    display: flex;

    align-items: center;

    margin-bottom: 5px;

}



.prominent-post {

    border: 2px solid #ffc107; /* Yellow border */

    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5); /* Yellow glow */

    background-color: rgba(255, 250, 220, 0.8); /* Light yellow background */

    position: relative;

    padding-top: 30px; /* Make space for the badge */

}



.prominent-badge {

    position: absolute;

    top: 0;

    left: 0;

    background-color: #ffc107;

    color: #333;

    padding: 5px 10px;

    border-bottom-right-radius: 8px;

    font-size: 0.8em;

    font-weight: bold;

    z-index: 10;

}
