/**
 * Twitter Leads Plugin Styles
 */

/* Container */
.twitter-leads-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.twitter-leads-title {
    text-align: center;
    color: #1da1f2;
    font-size: 28px;
    margin-bottom: 30px;
    padding: 10px;
}

/* Cards style */
.twitter-leads-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.twitter-leads-cards .profile-item {
    background: white;
    border-radius: 12px;
    padding: 25px 20px 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.twitter-leads-cards .profile-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* List style */
.twitter-leads-list .profile-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    position: relative;
}

.twitter-leads-list .profile-image {
    flex: 0 0 80px;
}

.twitter-leads-list .profile-info {
    flex: 1;
    padding-left: 20px;
}

/* Grid style */
.twitter-leads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.twitter-leads-grid .profile-item {
    background: white;
    border-radius: 10px;
    padding: 20px 15px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    text-align: center;
}

/* Common elements */
.profile-rank {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    background: #1da1f2;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.profile-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f8fa;
}

.profile-name {
    margin: 10px 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #14171a;
}

.verified {
    color: #1da1f2;
    margin-left: 3px;
}

.profile-username {
    color: #657786;
    font-size: 15px;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    color: #14171a;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #657786;
}

.profile-link {
    display: inline-block;
    background: #1da1f2;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.profile-link:hover {
    background: #1a91da;
    color: white;
    text-decoration: none;
}

/* Stats section */
.twitter-leads-stats {
    margin-top: 30px;
    padding: 20px;
    background: #f7f9fa;
    border-radius: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    font-size: 16px;
}

.stat-item span {
    display: block;
    font-weight: bold;
    color: #1da1f2;
    margin-bottom: 5px;
}

/* Search page styles */
.twitter-leads-search-page {
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.search-form {
    margin: 30px 0;
    text-align: center;
}

.search-form input {
    padding: 10px 20px;
    width: 60%;
    max-width: 500px;
    border: 1px solid #ccd6dd;
    border-radius: 50px;
    font-size: 16px;
}

.search-form button {
    padding: 10px 25px;
    background: #1da1f2;
    color: white;
    border: none;
    border-radius: 50px;
    margin-left: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* View options */
.view-options {
    margin: 30px 0;
    padding: 15px;
    background: #f7f9fa;
    border-radius: 10px;
    text-align: center;
}

.option-group {
    margin: 15px 0;
}

.option-group h3 {
    font-size: 16px;
    color: #657786;
    margin-bottom: 10px;
}

.style-btn, .limit-btn {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #1da1f2;
    border-radius: 20px;
    color: #1da1f2;
    text-decoration: none;
    transition: all 0.2s;
}

.style-btn.active, .limit-btn.active {
    background: #1da1f2;
    color: white;
}

/* Empty results */
.twitter-leads-empty {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 30px 0;
}

.twitter-leads-empty h3 {
    color: #657786;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .twitter-leads-cards,
    .twitter-leads-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .search-form button {
        width: 100%;
        margin-left: 0;
    }
    
    .twitter-leads-stats {
        flex-direction: column;
    }
    
    .stat-item {
        margin-bottom: 15px;
    }
}