/* Blog Social Media Style */

/* Layout Principal */
.social-layout {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* Sidebar Esquerda */
.sidebar-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.profile-card {
    background: var(--second-bg-color);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid #3d4349;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(240, 230, 140, 0.1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--main-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-card p {
    color: var(--other-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #3d4349;
    padding-top: 15px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--main-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--other-color);
}

.trending-topics {
    background: var(--second-bg-color);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #3d4349;
}

.trending-topics h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.topic-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #3d4349;
    cursor: pointer;
    transition: all 0.3s ease;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background: rgba(240, 230, 140, 0.05);
    border-radius: 8px;
    padding: 12px 8px;
    margin: 0 -8px;
}

.topic-name {
    color: var(--main-color);
    font-weight: 600;
    font-size: 0.9rem;
}


/* Feed Principal */
.main-feed {
    max-width: 600px;
    margin: 0 auto;
}

.stories-section {
    background: var(--second-bg-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #3d4349;
}

.stories-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
}

.story-item:hover {
    transform: scale(1.05);
}

.story-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--main-color);
    margin-bottom: 8px;
    position: relative;
}

.story-avatar::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--main-color), #ff6b6b, #4ecdc4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-item.active .story-avatar::after {
    opacity: 1;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-label {
    font-size: 0.8rem;
    color: var(--other-color);
    font-weight: 500;
}

.feed-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    background: transparent;
    border: 1px solid #3d4349;
    color: var(--other-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
}

/* Posts Feed */
.posts-feed {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.social-post {
    background: var(--second-bg-color);
    border-radius: 20px;
    border: 1px solid #3d4349;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-post:hover {
    border-color: var(--main-color);
    box-shadow: 0 10px 30px rgba(240, 230, 140, 0.1);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.post-time {
    color: var(--other-color);
    font-size: 0.8rem;
}

.post-menu {
    background: none;
    border: none;
    color: var(--other-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.post-menu:hover {
    background: rgba(240, 230, 140, 0.1);
    color: var(--main-color);
}

.post-content {
    padding: 0 25px 20px;
}

.post-title {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-text {
    color: var(--other-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Carrossel */
.post-carousel {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-container {
    position: relative;
    height: 300px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-container:hover .carousel-overlay {
    opacity: 1;
}

.carousel-btn {
    background: var(--main-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--text-color);
    transform: scale(1.05);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.carousel-container:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav.prev {
    left: 15px;
}

.carousel-nav.next {
    right: 15px;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--main-color);
    transform: scale(1.2);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: rgba(240, 230, 140, 0.1);
    color: var(--main-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-top: 1px solid #3d4349;
}

.action-group {
    display: flex;
    gap: 20px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--other-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(240, 230, 140, 0.1);
    color: var(--main-color);
}

.action-btn.liked {
    color: #ff6b6b;
}

.action-btn.liked i {
    animation: heartBeat 0.6s ease;
}

.action-count {
    font-weight: 600;
    font-size: 0.8rem;
}

.bookmark-btn {
    background: none;
    border: none;
    color: var(--other-color);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bookmark-btn:hover,
.bookmark-btn.bookmarked {
    color: var(--main-color);
    background: rgba(240, 230, 140, 0.1);
}

.post-comments {
    padding: 0 25px 20px;
    border-top: 1px solid #3d4349;
    margin-top: 15px;
    padding-top: 20px;
}

.comment {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    gap: 10px;
    margin-bottom: 5px;
}

.comment-author {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-time {
    color: var(--other-color);
    font-size: 0.8rem;
}

.comment-text {
    color: var(--other-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Sidebar Direita */
.sidebar-right {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.suggested-posts {
    background: var(--second-bg-color);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #3d4349;
    margin-bottom: 25px;
}

.suggested-posts h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.suggested-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
}

.suggested-item:hover {
    background: rgba(240, 230, 140, 0.05);
}

.suggested-item:last-child {
    margin-bottom: 0;
}

.suggested-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.suggested-content h5 {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.suggested-content p {
    color: var(--other-color);
    font-size: 0.8rem;
    margin-bottom: 5px;
}


.newsletter-signup {
    background: var(--second-bg-color);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #3d4349;
    text-align: center;
}

.newsletter-signup h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.newsletter-signup p {
    color: var(--other-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    background: #3d4349;
    border: 1px solid #3d4349;
    color: var(--text-color);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--main-color);
}

.newsletter-form button {
    background: var(--main-color);
    color: var(--bg-color);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--text-color);
}

/* Animações */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-post {
    animation: fadeInUp 0.6s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .social-layout {
        grid-template-columns: 250px 1fr 250px;
        gap: 20px;
    }
}

@media (max-width: 950px) {
    .social-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sidebar-left,
    .sidebar-right {
        position: static;
        order: 2;
    }
    
    .main-feed {
        order: 1;
        max-width: none;
    }
    
    .profile-card,
    .trending-topics,
    .suggested-posts,
    .newsletter-signup {
        margin-bottom: 20px;
    }
}

@media (max-width: 680px) {
    .social-layout {
        padding: 10px;
    }
    
    .post-header {
        padding: 15px 20px 10px;
    }
    
    .post-content {
        padding: 0 20px 15px;
    }
    
    .post-actions {
        padding: 12px 20px;
    }
    
    .post-comments {
        padding: 0 20px 15px;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .stories-container {
        gap: 15px;
    }
    
    .story-avatar {
        width: 50px;
        height: 50px;
    }
    
    .action-group {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-text {
        font-size: 0.9rem;
    }
}

/* Modal Styles (mantidos do design anterior) */
.article-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-modal-overlay.show {
    opacity: 1;
}

.article-modal {
    background: var(--second-bg-color);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.article-modal-overlay.show .article-modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #3d4349;
}

.modal-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.modal-category {
    background: var(--main-color);
    color: var(--bg-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.modal-date {
    color: var(--other-color);
    font-size: 14px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #3d4349;
    color: var(--main-color);
}

.modal-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content {
    padding: 30px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.modal-body {
    color: var(--other-color);
    line-height: 1.8;
}

.modal-body h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.modal-body h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin: 25px 0 12px 0;
    font-weight: 600;
}

.modal-body h4 {
    color: var(--main-color);
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 8px;
}

.modal-body strong {
    color: var(--main-color);
    font-weight: 600;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .article-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-image {
        height: 150px;
    }
}