/* SwiftFeed Styles - Inspired by tapto.shop/milenalifestyle */
:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #f5f5f5;
    --text-color: #333333;
    --border-radius: 0px;
    --spacing: 20px;
    --font-family: 'Inter', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Profile Header Styles */
.profile-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
    border-bottom: 0;
}

.profile-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.profile-bio {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
    font-size: 1rem;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

/* Swift Feed Grid Styles */
.swift-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.swift-post-card {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.swift-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.swift-post-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.swift-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    opacity: 0;
    transition: opacity 0.2s;
    display: block; /* Keep it in layout, hide with opacity */
}

.swift-post-caption {
    margin-bottom: 5px;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.swift-post-tags {
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

.pagination .page-item .page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 5px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.pagination .page-item.disabled .page-link {
    color: #ccc;
}

/* Footer Styles */
.text-center.mt-5 {
    padding: 30px 0;
    border-top: 0;
}

.text-center.mt-5 a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Empty State Styles */
.text-center.py-5 {
    padding: 60px 0;
}

.text-center.py-5 i {
    color: #ddd;
    margin-bottom: 20px;
}

.text-center.py-5 h4 {
    font-weight: 500;
    margin-bottom: 10px;
}

.text-center.py-5 p {
    color: #888;
}

/* Product Tagging Styles */
.product-tag {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.product-tag:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.product-tag-tooltip {
    position: absolute;
    background-color: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 20;
    min-width: 250px;
    display: none;
}

/* Single Post View Styles */
.post-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-image-container {
    position: relative;
    margin-bottom: 30px;
}

.post-image {
    width: 100%;
    border-radius: var(--border-radius);
}

.post-caption {
    margin-bottom: 30px;
    font-size: 1.1rem;
    white-space: pre-line;
    line-height: 1.8;
}

.tagged-products-list {
    margin-top: 40px;
}

.product-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-right: 20px;
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.product-retailer {
    color: #888;
    font-size: 0.9rem;
}

.product-price {
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 5px;
}

.share-buttons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.share-button {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.share-button:hover {
    opacity: 0.9;
    color: white;
}

.share-button.facebook {
    background-color: #3b5998;
}

.share-button.twitter {
    background-color: #1da1f2;
}

.share-button.copy {
    background-color: #6c757d;
}

/* Post Page Specific Styles */

.post-page-container {
    max-width: 1200px;
    padding: 40px 20px;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

.post-image-container {
    margin-bottom: 30px;
}

.post-page-container .post-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: none;
}

.post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-page-caption {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    white-space: pre-line;
}

.tagged-products {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.product-button {
    display: block;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.5px;
}

.product-button:hover {
    opacity: 0.9;
    color: var(--secondary-color);
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.2s ease;
}

.back-button:hover {
    background-color: #eeeeee;
    color: var(--primary-color);
}

.back-button i {
    margin-right: 10px;
}

/* Responsive Styles */

@media (hover: hover) {
    .swift-post-card:hover .swift-post-overlay {
        opacity: 1;
    }
}

@media (min-width: 768px) {
    .swift-feed-grid {
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .swift-feed-grid {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .post-page-container {
        padding: 20px;
    }
    
    .post-page-caption {
        margin-top: 20px;
    }
}