/* Additional styling for posts to match generate_facebook_dashboard.py */

/* Posts section styling */
.posts-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.posts-header {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1c1e21;
    border-bottom: 2px solid #e4e6eb;
    padding-bottom: 10px;
}

/* Override post item styling */
.post-item {
    border: 1px solid #e4e6eb !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.post-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* Post header specific styling */
.post-header {
    padding: 20px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important;
}

.post-header:hover {
    background: transparent !important;
}

/* Expanded post styling */
.post-item.expanded {
    background: #ffffff !important;
    border-color: #e4e6eb !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.post-item.expanded .post-header {
    background: transparent !important;
}

/* Post content inner styling */
.post-content-inner {
    padding: 20px !important;
    border-top: 1px solid #e4e6eb !important;
    background: transparent !important;
}

/* Full content text styling */
.full-content {
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    color: #1c1e21 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

/* Metrics grid items */
.post-content-inner .grid > div {
    background: #f0f2f5 !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 8px !important;
    text-align: center !important;
}

/* Post number styling */
.post-header .text-blue-600 {
    font-weight: 700 !important;
    color: #1877f2 !important;
    font-size: 1.2em !important;
    min-width: 30px !important;
}

/* Post title styling - match original */
.post-title {
    font-weight: 500 !important;
    color: #1c1e21 !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}

/* Time styling */
.post-header .text-xs.text-gray-500 {
    color: #65676b !important;
    font-size: 0.85em !important;
    margin-bottom: 12px !important;
}

/* Metric dots and text */
.post-header .w-2.h-2 {
    width: 8px !important;
    height: 8px !important;
}

/* Metric text styling - normal weight for labels */
.post-header .text-gray-700 {
    font-weight: 400 !important;
    color: #1c1e21 !important;
}

/* Ensure proper layout for post header */
.post-header > div {
    display: flex !important;
    width: 100% !important;
    align-items: flex-start !important;
}

/* Style for metric values - larger and medium weight */
.post-header .text-green-600,
.post-header .text-blue-600,
.post-header .text-purple-600 {
    font-size: 0.875rem !important; /* text-sm */
    font-weight: 500 !important; /* medium */
}

/* Remove the dotted grid background */
.post-item {
    background-image: none !important;
}

/* Date group section styling */
.date-content {
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    padding: 20px !important;
}

/* Override date group backgrounds */
.date-group {
    background: white !important;
    border: 1px solid #e4e6eb !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

.date-header {
    background: white !important;
    border-bottom: 2px solid #e4e6eb !important;
}

.date-header:hover {
    background: #f8f9fa !important;
}

.date-header.expanded {
    background: #f0f2f5 !important;
    border-bottom: 2px solid #1877f2 !important;
}

/* Posts by date container */
#postsByDate {
    background: #f0f2f5;
    padding: 20px;
    border-radius: 10px;
}

/* Refresh button styling */
.date-header button {
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.date-header button:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Spinning animation for loading */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Facebook icon link styling */
.post-header a[target="_blank"] {
    flex-shrink: 0;
    transition: all 0.2s;
}

.post-header a[target="_blank"]:hover {
    transform: scale(1.1);
}

/* 2x2 metrics grid styling */
.post-header .grid-cols-\[auto_1px_auto\] {
    display: grid;
    grid-template-columns: auto 1px auto;
    align-items: center;
}

/* Ensure proper alignment for metrics */
.post-header .text-right {
    text-align: right !important;
}

.post-header .text-left {
    text-align: left !important;
}

/* Vertical separator styling - invisible but maintains spacing */
.post-header .border-r {
    height: 100%;
    margin: 0 8px;
    opacity: 0;
}

/* Remove any extra padding from metrics container */
.post-header > div:last-child {
    margin: 0;
    padding: 0;
}

/* Ensure metrics grid aligns properly with outer container */
.post-header .grid {
    margin: 0;
    padding: 0;
}