/* EchoeSeed Public Capsules Styles */

.echoeseed-public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
}

/* Header Section */
.echoeseed-public-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.echoeseed-header-content {
    margin-bottom: 30px;
}

.echoeseed-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.echoeseed-subtitle {
    font-size: 1.1rem;
    color: #b3b3b3;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Tabs */
.echoeseed-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.echoeseed-filter-tab {
    background: #2a2a2a;
    border: 1px solid #404040;
    color: #b3b3b3;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.echoeseed-filter-tab:hover,
.echoeseed-filter-tab.active {
    background: #007cba;
    border-color: #007cba;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Capsules Feed */
.echoeseed-capsules-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Capsule Card */
.echoeseed-capsule-card {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

/* Text Expansion Modal */
.echoeseed-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.echoeseed-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.echoeseed-modal-content {
    background: #2a2a2a;
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    position: relative;
    border: 1px solid #404040;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.echoeseed-modal-overlay.active .echoeseed-modal-content {
    transform: scale(1);
}

.echoeseed-modal-header {
    padding: 25px 25px 0;
    border-bottom: 1px solid #404040;
    margin-bottom: 0;
}

.echoeseed-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.3s ease;
}

.echoeseed-modal-close:hover {
    color: #ffffff;
}

.echoeseed-modal-body {
    padding: 25px;
}

.echoeseed-modal-text {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

.echoeseed-capsule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #007cba;
}

.echoeseed-capsule-card.expanded {
    border-color: #007cba;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.2);
}

.echoeseed-capsule-text.truncated {
    max-height: 4.8em;
    overflow: hidden;
    position: relative;
}

.echoeseed-capsule-text.truncated::after {
    content: '... Click to read more';
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 8px;
    background: #2a2a2a;
    color: #007cba;
    font-size: 0.9em;
    font-style: italic;
    pointer-events: none;
    z-index: 2;
}

.echoeseed-capsule-card:hover .echoeseed-capsule-text.truncated::after {
    color: #ffffff;
}

/* Badges Container */
.echoeseed-badges-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    min-height: 32px;
    position: relative;
    z-index: 5;
}

.echoeseed-badges-left {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.echoeseed-badges-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 10px;
}

.echoeseed-time-badge {
    background: linear-gradient(135deg, #007cba, #005a8b);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    white-space: nowrap;
}

.echoeseed-time-badge span {
    display: inline;
    margin-right: 4px;
}

.echoeseed-type-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.echoeseed-type-badge.text {
    background: #4a90e2;
    color: white;
}

.echoeseed-type-badge.video {
    background: #e24a4a;
    color: white;
}

.echoeseed-featured-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #1a1a1a;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    z-index: 10;
    position: relative;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

/* Capsule Content */
.echoeseed-capsule-header {
    margin-bottom: 20px;
}

.echoeseed-capsule-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.4;
}

.echoeseed-capsule-content {
    margin-bottom: 20px;
}

.echoeseed-video-preview {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 15px;
    border: 2px dashed #404040;
}

.echoeseed-video-placeholder {
    color: #b3b3b3;
}

.echoeseed-video-placeholder svg {
    margin-bottom: 10px;
    opacity: 0.6;
}

.echoeseed-capsule-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e6e6e6;
    margin: 0;
}

/* Capsule Meta */
.echoeseed-capsule-meta {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #404040;
}

.echoeseed-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #b3b3b3;
}

.echoeseed-meta-info span {
    display: flex;
    align-items: center;
}

.echoeseed-author {
    font-weight: 600;
    color: #007cba;
}

/* Actions */
.echoeseed-capsule-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #404040;
}

.echoeseed-action-btn {
    background: #3a3a3a;
    border: 1px solid #525252;
    color: #b3b3b3;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.echoeseed-action-btn:hover {
    background: #4a4a4a;
    color: #ffffff;
    transform: translateY(-1px);
}

.echoeseed-like-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.echoeseed-like-btn.liked {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.echoeseed-comment-btn:hover {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.echoeseed-share-btn:hover {
    background: #2ecc71;
    border-color: #2ecc71;
    color: white;
}

.echoeseed-report-btn:hover {
    background: #f39c12;
    border-color: #f39c12;
    color: white;
}

/* Comments Section */
.echoeseed-comments-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #404040;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.echoeseed-comments-list {
    margin-bottom: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.echoeseed-comment {
    background: #1a1a1a;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #007cba;
    transition: all 0.3s ease;
}

.echoeseed-comment:hover {
    background: #222222;
    transform: translateX(2px);
}

.echoeseed-comment-author {
    font-weight: 600;
    color: #007cba;
    font-size: 13px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.echoeseed-comment-author::before {
    content: '👤';
    font-size: 12px;
    opacity: 0.7;
}

.echoeseed-comment-text {
    font-size: 14px;
    color: #e6e6e6;
    line-height: 1.4;
}

.echoeseed-comment-form {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #404040;
}

.echoeseed-comment-input {
    flex: 1;
    background: #3a3a3a;
    border: 1px solid #525252;
    color: #ffffff;
    padding: 12px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.echoeseed-comment-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
    background: #404040;
}

.echoeseed-comment-input::placeholder {
    color: #999999;
    font-style: italic;
}

.echoeseed-comment-submit {
    background: #007cba;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.echoeseed-comment-submit:hover {
    background: #005a8b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.echoeseed-comment-submit:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
}

.echoeseed-comments-loading {
    text-align: center;
    padding: 20px;
    color: #999999;
    font-style: italic;
}

.echoeseed-no-comments {
    text-align: center;
    padding: 20px;
    color: #999999;
    font-style: italic;
}

/* Load More */
.echoeseed-load-more-container {
    text-align: center;
    margin: 40px 0;
}

.echoeseed-load-more-btn {
    background: #007cba;
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.echoeseed-load-more-btn:hover {
    background: #005a8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

.echoeseed-load-more-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

/* Floating Action Button */
.echoeseed-fab-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.echoeseed-fab {
    background: linear-gradient(135deg, #007cba, #005a8b);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 124, 186, 0.4);
    transition: all 0.3s ease;
}

.echoeseed-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 124, 186, 0.6);
    color: white;
}

/* No Capsules */
.echoeseed-no-capsules {
    text-align: center;
    padding: 60px 20px;
    color: #b3b3b3;
}

.echoeseed-no-capsules h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .echoeseed-public-container {
        padding: 15px;
    }
    
    .echoeseed-main-title {
        font-size: 2rem;
    }
    
    .echoeseed-capsules-feed {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .echoeseed-capsule-card {
        padding: 20px;
    }
    
    .echoeseed-filter-tabs {
        gap: 8px;
    }
    
    .echoeseed-filter-tab {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .echoeseed-capsule-actions {
        gap: 8px;
    }
    
    .echoeseed-action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .echoeseed-fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .echoeseed-fab {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .echoeseed-main-title {
        font-size: 1.8rem;
    }
    
    .echoeseed-capsule-card {
        padding: 15px;
    }
    
    .echoeseed-time-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
    }
    
    .echoeseed-type-badge {
        position: static;
        display: inline-block;
        margin-bottom: 10px;
        margin-right: 10px;
    }
    
    .echoeseed-capsule-header {
        margin-top: 10px;
    }
}

/* Loading States */
.echoeseed-loading {
    text-align: center;
    padding: 40px;
    color: #b3b3b3;
}

.echoeseed-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #007cba;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.echoeseed-capsule-card {
    animation: fadeInUp 0.6s ease-out;
}

.echoeseed-capsule-card:nth-child(even) {
    animation-delay: 0.1s;
}

.echoeseed-capsule-card:nth-child(odd) {
    animation-delay: 0.2s;
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
    .echoeseed-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
    
    .echoeseed-modal-header,
    .echoeseed-modal-body {
        padding: 15px;
    }
    
    .echoeseed-modal-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .echoeseed-modal-close {
        top: 10px;
        right: 10px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .echoeseed-modal-content {
        width: 98%;
        max-height: 98vh;
        margin: 5px;
    }
    
    .echoeseed-modal-header,
    .echoeseed-modal-body {
        padding: 12px;
    }
    
    .echoeseed-badges-left {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .echoeseed-type-badge,
    .echoeseed-featured-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
} 