/* Climb Kalymnos Instagram Feed - Frontend Styles */

.ckif-feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ckif-post {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.ckif-post-link {
    display: block;
    text-decoration: none;
}

.ckif-post-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.ckif-post-image:hover {
    transform: scale(1.05);
}

.ckif-no-thumbnail {
    background: linear-gradient(135deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.ckif-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;  /* optical correction for ▶ glyph: nudge right */
    padding-bottom: 3px; /* optical correction for ▶ glyph: nudge up */
    border-radius: 50%;
}

.ckif-post-caption {
    padding: 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    border-top: 1px solid #eee;
    min-height: 50px;
}

.ckif-post-time {
    padding: 5px 10px;
    font-size: 11px;
    color: #999;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.ckif-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.ckif-empty {
    background: #f0f0f0;
    border: 1px solid #ddd;
    color: #666;
    padding: 30px;
    text-align: center;
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .ckif-feed {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .ckif-post-caption {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ckif-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
