/* Instagram Profile Display - Frontend Styles */

.ipd-profile-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Profile Header */
.ipd-profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.ipd-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #e1306c;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.ipd-profile-pic:hover {
    transform: scale(1.05);
}

.ipd-profile-info {
    flex: 1;
}

.ipd-username {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.ipd-username a {
    color: #262626;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ipd-username a:hover {
    color: #e1306c;
}

.ipd-stats {
    margin: 0.5rem 0 1rem 0;
    font-size: 1rem;
    color: #8e8e8e;
}

.ipd-stat-item {
    margin-right: 1.5rem;
}

.ipd-stat-item strong {
    color: #262626;
    font-weight: 600;
}

.ipd-follow-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ipd-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
    color: #fff;
}

/* Posts Grid */
.ipd-posts-grid {
    display: grid;
    gap: 1rem;
}

.ipd-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ipd-grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ipd-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ipd-grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.ipd-post-item {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #fafafa;
}

.ipd-post-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ipd-post-item:hover img {
    transform: scale(1.1);
}

.ipd-video-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    z-index: 2;
}

.ipd-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ipd-post-item:hover .ipd-post-overlay {
    opacity: 1;
}

.ipd-overlay-text {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Error Message */
.ipd-error {
    padding: 1.5rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    text-align: center;
    margin: 2rem auto;
    max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ipd-profile-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .ipd-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .ipd-profile-pic {
        width: 100px;
        height: 100px;
    }
    
    .ipd-username {
        font-size: 1.5rem;
    }
    
    .ipd-posts-grid {
        gap: 0.5rem;
    }
    
    .ipd-grid-cols-3,
    .ipd-grid-cols-4,
    .ipd-grid-cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ipd-profile-pic {
        width: 80px;
        height: 80px;
    }
    
    .ipd-username {
        font-size: 1.3rem;
    }
    
    .ipd-follow-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}