/* Creative Social Cards CSS */
:root {
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    --card-radius: 20px;
    --accent-like: #E1306C;
    /* Instagram Like Color */
    --accent-share: #3B82F6;
    /* Facebook/Twitter Share Color */
}

/* Container for the creative grid */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Base */
.card-social-product {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.card-social-product:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-hover-shadow);
}

/* Card Header (User/App look) */
.card-social-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #FF9A9E 0%, #FECFEEF 99%, #FECFEEF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

.card-username {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.card-more-icon {
    color: #999;
    cursor: pointer;
}

/* Card Visual (Image area) */
.card-visual-area {
    position: relative;
    padding-top: 100%;
    /* Square aspect ratio like Instagram */
    background: #f8f9fa;
    overflow: hidden;
}

.card-visual-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-social-product:hover .card-visual-img {
    transform: scale(1.05);
}

/* Floating Tag on Image */
.card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Action Bar (Like/Comment/Share style) */
.card-action-bar {
    padding: 12px 16px 8px;
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: scale(1.2);
}

.action-btn--primary {
    color: var(--color-brand-primary);
}

/* Card Content Body */
.card-body {
    padding: 0 16px 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-likes {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #333;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Call to Action Button */
.card-cta-btn {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--color-brand-primary);
    color: var(--color-brand-primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    display: block;
}

.card-cta-btn:hover {
    background: var(--color-brand-primary);
    color: white;
}

/* Specific Style Variations */
.card-social-product--affiliate .card-cta-btn {
    border-color: var(--accent-share);
    color: var(--accent-share);
}

.card-social-product--affiliate .card-cta-btn:hover {
    background: var(--accent-share);
    color: white;
}

.card-social-product--video .card-visual-area::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}