/* 
    Cancino Facebook - Feed Styles
    Multi-Style Design v2.1
*/

.fbfd-feed-container {
    display: grid;
    gap: 24px;
    margin-bottom: 40px;
    width: 100%;
}

/* Grid Column Definitions */
.fbfd-columns-1 { grid-template-columns: 1fr; }
.fbfd-columns-2 { grid-template-columns: repeat(2, 1fr); }
.fbfd-columns-3 { grid-template-columns: repeat(3, 1fr); }
.fbfd-columns-4 { grid-template-columns: repeat(4, 1fr); }
.fbfd-columns-5 { grid-template-columns: repeat(5, 1fr); }
.fbfd-columns-6 { grid-template-columns: repeat(6, 1fr); }

.fbfd-post {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.fbfd-post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f2f5;
}

.fbfd-columns-5 .fbfd-post-image,
.fbfd-columns-6 .fbfd-post-image {
    aspect-ratio: 1 / 1;
}

.fbfd-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fbfd-post:hover .fbfd-post-image img {
    transform: scale(1.1);
}

.fbfd-post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fbfd-post-content p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: #1c1e21;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fbfd-columns-5 .fbfd-post-content p,
.fbfd-columns-6 .fbfd-post-content p {
    font-size: 13px;
    -webkit-line-clamp: 3;
}

.fbfd-post-footer {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fbfd-post-date {
    font-size: 13px;
    font-weight: 500;
}

.fbfd-read-more {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

/* ==========================================================================
   STYLE: CLASSIC (PREMIUM)
   ========================================================================== */
.fbfd-style-classic .fbfd-post {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.fbfd-style-classic .fbfd-post:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.05);
    border-color: rgba(24, 119, 242, 0.2);
}

.fbfd-style-classic .fbfd-post-footer {
    background: #f9fafb;
    border-top: 1px solid #f0f2f5;
}

.fbfd-style-classic .fbfd-post-date { color: #65676b; }

.fbfd-style-classic .fbfd-read-more {
    background: #1877f2;
    color: #ffffff !important;
}

.fbfd-style-classic .fbfd-read-more:hover { background: #166fe5; }

/* ==========================================================================
   STYLE: MINIMAL
   ========================================================================== */
.fbfd-style-minimal .fbfd-post {
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid #eee;
}

.fbfd-style-minimal .fbfd-post:hover {
    background: #fafafa;
}

.fbfd-style-minimal .fbfd-post-content { padding: 15px 0; }
.fbfd-style-minimal .fbfd-post-footer { padding: 10px 0; border: none; }
.fbfd-style-minimal .fbfd-post-date { color: #999; }

.fbfd-style-minimal .fbfd-read-more {
    background: transparent;
    color: #1877f2 !important;
    padding: 0;
}

.fbfd-style-minimal .fbfd-read-more:hover { text-decoration: underline !important; }

/* ==========================================================================
   STYLE: GLASSMORPHISM
   ========================================================================== */
.fbfd-style-glass .fbfd-post {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.fbfd-style-glass .fbfd-post:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.02);
}

.fbfd-style-glass .fbfd-post-footer {
    background: rgba(255, 255, 255, 0.2);
}

.fbfd-style-glass .fbfd-read-more {
    background: rgba(24, 119, 242, 0.8);
    color: #fff !important;
    backdrop-filter: blur(5px);
}

/* ==========================================================================
   STYLE: BORDER (MARCADO)
   ========================================================================== */
.fbfd-style-border .fbfd-post {
    background: #fff;
    border: 3px solid #1c1e21;
    border-radius: 0;
    box-shadow: 8px 8px 0px #1c1e21;
}

.fbfd-style-border .fbfd-post:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0px #1877f2;
    border-color: #1877f2;
}

.fbfd-style-border .fbfd-post-footer {
    border-top: 3px solid #1c1e21;
}

.fbfd-style-border .fbfd-read-more {
    background: #1c1e21;
    color: #fff !important;
    border-radius: 0;
}

.fbfd-style-border .fbfd-read-more:hover {
    background: #1877f2;
}

/* ==========================================================================
   COMMON & RESPONSIVE
   ========================================================================== */

.fbfd-error {
    background: #fff0f0;
    border-left: 4px solid #fa3e3e;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fa3e3e;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .fbfd-feed-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .fbfd-feed-container {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .fbfd-post:hover {
        transform: none !important;
    }
    
    .fbfd-style-border .fbfd-post {
        box-shadow: 4px 4px 0px #1c1e21;
    }
}