/* Social Master Builder Components CSS */

/* Profile Card Component */
.social-master-profile-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-master-profile-card.layout-horizontal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-master-profile-card.layout-vertical {
    text-align: center;
}

.social-master-profile-card .profile-avatar {
    flex-shrink: 0;
}

.social-master-profile-card .profile-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.social-master-profile-card .profile-name {
    margin: 10px 0 5px 0;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.social-master-profile-card .profile-bio {
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

.social-master-profile-card .profile-stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.social-master-profile-card .stat-item {
    text-align: center;
}

.social-master-profile-card .stat-number {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #007cba;
}

.social-master-profile-card .stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
}

.social-master-profile-card .profile-actions {
    margin-top: 15px;
}

.social-master-profile-card .profile-btn {
    background: #007cba;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.social-master-profile-card .profile-btn:hover {
    background: #005a87;
    color: white;
}

/* Friends List Component */
.social-master-friends-list {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

.social-master-friends-list.columns-1 { grid-template-columns: 1fr; }
.social-master-friends-list.columns-2 { grid-template-columns: repeat(2, 1fr); }
.social-master-friends-list.columns-3 { grid-template-columns: repeat(3, 1fr); }
.social-master-friends-list.columns-4 { grid-template-columns: repeat(4, 1fr); }
.social-master-friends-list.columns-6 { grid-template-columns: repeat(6, 1fr); }

.social-master-friends-list .friend-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.3s;
}

.social-master-friends-list .friend-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.social-master-friends-list .friend-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.social-master-friends-list .friend-name {
    margin: 8px 0 4px 0;
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}

.social-master-friends-list .friend-mutual {
    font-size: 0.8em;
    color: #666;
}

/* User Posts Component */
.social-master-user-posts {
    margin-bottom: 20px;
}

.social-master-user-posts .post-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.social-master-user-posts .post-title {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.social-master-user-posts .post-title a {
    color: #007cba;
    text-decoration: none;
}

.social-master-user-posts .post-title a:hover {
    text-decoration: underline;
}

.social-master-user-posts .post-excerpt {
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
}

.social-master-user-posts .post-date {
    font-size: 0.9em;
    color: #999;
    margin-top: 8px;
}

/* Media Gallery Component */
.social-master-media-gallery {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.social-master-media-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.social-master-media-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.social-master-media-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }
.social-master-media-gallery.columns-6 { grid-template-columns: repeat(6, 1fr); }

.social-master-media-gallery .media-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
}

.social-master-media-gallery .media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.social-master-media-gallery .media-item:hover img {
    transform: scale(1.05);
}

/* About Section Component */
.social-master-about-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.social-master-about-section .about-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.social-master-about-section .about-content {
    color: #666;
    line-height: 1.6;
}

/* Friend Button Component */
.social-master-friend-button {
    margin-bottom: 20px;
}

.social-master-friend-button .social-master-friend-btn {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.social-master-friend-button .social-master-friend-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.social-master-friend-button .social-master-friend-btn:active {
    transform: translateY(0);
}

/* User Stats Component */
.social-master-user-stats {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.social-master-user-stats.layout-horizontal {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.social-master-user-stats.layout-vertical .stat-item {
    margin-bottom: 15px;
    text-align: center;
}

.social-master-user-stats.layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.social-master-user-stats .stat-item {
    text-align: center;
}

.social-master-user-stats .stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
}

.social-master-user-stats .stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Activity Feed Component */
.social-master-activity-feed {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.social-master-activity-feed .activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.social-master-activity-feed .activity-item:last-child {
    border-bottom: none;
}

.social-master-activity-feed .activity-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.social-master-activity-feed .activity-content {
    flex: 1;
}

.social-master-activity-feed .activity-text {
    color: #333;
    margin-bottom: 4px;
}

.social-master-activity-feed .activity-text a {
    color: #007cba;
    text-decoration: none;
}

.social-master-activity-feed .activity-text a:hover {
    text-decoration: underline;
}

.social-master-activity-feed .activity-time {
    font-size: 0.85em;
    color: #999;
}

/* Empty State */
.social-master-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-master-friends-list.columns-4,
    .social-master-friends-list.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-master-media-gallery.columns-4,
    .social-master-media-gallery.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-master-profile-card.layout-horizontal {
        flex-direction: column;
        text-align: center;
    }
    
    .social-master-user-stats.layout-horizontal {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-master-profile-card .profile-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .social-master-friends-list.columns-2,
    .social-master-friends-list.columns-3,
    .social-master-friends-list.columns-4,
    .social-master-friends-list.columns-6 {
        grid-template-columns: 1fr;
    }
    
    .social-master-media-gallery.columns-2,
    .social-master-media-gallery.columns-3,
    .social-master-media-gallery.columns-4,
    .social-master-media-gallery.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}
