/* Frontend Display Styles */
.srn-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.srn-timeline {
    position: relative;
}

.srn-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-50%);
}

/* Post Card */
.srn-post-card {
    position: relative;
    width: calc(50% - 40px);
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.srn-post-card:nth-child(odd) {
    margin-left: 0;
    text-align: right;
}

.srn-post-card:nth-child(even) {
    margin-left: auto;
    text-align: left;
}

.srn-card-timeline-marker {
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    z-index: 2;
}

.srn-post-card:nth-child(odd) .srn-card-timeline-marker {
    right: -50px;
}

.srn-post-card:nth-child(even) .srn-card-timeline-marker {
    left: -50px;
}

.srn-card-inner {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.srn-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.srn-card-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
}

/* Card Header */
.srn-card-header {
    margin-bottom: 20px;
}

.srn-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.srn-card-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
}

.srn-post-card:nth-child(odd) .srn-card-meta {
    justify-content: flex-end;
}

.srn-meta-date,
.srn-meta-time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.srn-card-meta svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Card Content */
.srn-card-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 25px;
}

/* Card Footer */
.srn-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    gap: 15px;
}

.srn-post-card:nth-child(odd) .srn-card-footer {
    flex-direction: row-reverse;
}

.srn-read-more {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.srn-read-more:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.srn-read-more svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.srn-read-more:hover svg {
    transform: translateX(3px);
}

/* Reactions */
.srn-reactions-bar {
    display: flex;
    gap: 8px;
}

.srn-reactions {
    display: flex;
    gap: 6px;
}

.srn-reaction-btn {
    padding: 8px 12px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.srn-reaction-btn:hover {
    background: #f0f4ff;
    border-color: #667eea;
    transform: scale(1.05);
}

.srn-reaction-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.srn-reaction-btn .srn-emoji {
    font-size: 18px;
    line-height: 1;
}

.srn-reaction-btn .srn-count {
    font-weight: 600;
    font-size: 12px;
}

.srn-reaction-btn.active .srn-count {
    color: white;
}

/* Modal */
.srn-post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.srn-post-modal.active {
    display: flex;
}

.srn-post-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.srn-post-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.srn-post-modal-close {
    position: sticky;
    top: 20px;
    right: 20px;
    float: right;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.srn-post-modal-close:hover {
    background: #f1f5f9;
    transform: rotate(90deg);
}

.srn-post-modal-body {
    padding: 40px;
}

/* Modal Post */
.srn-modal-header {
    margin-bottom: 30px;
}

.srn-modal-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.srn-modal-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
    flex-wrap: wrap;
}

.srn-modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.srn-modal-meta svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.srn-modal-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}

.srn-modal-content p {
    margin-bottom: 20px;
}

.srn-modal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 35px 0 15px;
}

.srn-modal-content figure.srn-image {
    margin: 30px 0;
    text-align: center;
}

.srn-modal-content figure.srn-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.srn-modal-content ul {
    margin: 20px 0;
    padding-left: 30px;
}

.srn-modal-content ul li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Modal Reactions */
.srn-modal-reactions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

.srn-modal-reactions h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
}

.srn-reactions-large .srn-reaction-btn {
    padding: 12px 18px;
    font-size: 16px;
}

.srn-reactions-large .srn-emoji {
    font-size: 24px;
}

.srn-reactions-large .srn-count {
    font-size: 14px;
}

/* No Posts */
.srn-no-posts {
    text-align: center;
    padding: 80px 20px;
    font-size: 18px;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .srn-timeline::before {
        left: 30px;
    }
    
    .srn-post-card {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 50px;
        text-align: left !important;
    }
    
    .srn-post-card:nth-child(odd) .srn-card-timeline-marker,
    .srn-post-card:nth-child(even) .srn-card-timeline-marker {
        left: 20px;
        right: auto;
    }
    
    .srn-card-meta {
        justify-content: flex-start !important;
        flex-wrap: wrap;
    }
    
    .srn-card-footer {
        flex-direction: column !important;
        align-items: stretch;
    }
    
    .srn-reactions-bar {
        justify-content: center;
    }
    
    .srn-read-more {
        width: 100%;
        justify-content: center;
    }
    
    .srn-post-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .srn-post-modal-body {
        padding: 30px 20px;
    }
    
    .srn-modal-header h1 {
        font-size: 24px;
    }
    
    .srn-modal-content {
        font-size: 16px;
    }
}