/**
 * VOKKA Social Components CSS
 * Styles for Follow buttons, Report modals, and social interactions
 * Giphy-style modern design
 */

/* =============================================================================
   FOLLOW BUTTONS
   ============================================================================= */

.btn-follow,
.btn-following {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.btn-follow {
    background: #6157FF;
    color: white;
}

.btn-follow:hover {
    background: #4942CC;
    transform: translateY(-1px);
}

.btn-following {
    background: #E5E5E5;
    color: #666;
}

.btn-following:hover {
    background: #FFE1E1;
    color: #FF6B6B;
}

.btn-following:hover::after {
    content: " Unfollow";
}

/* =============================================================================
   REPORT MODAL
   ============================================================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: none;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #000;
}

.report-modal h2 {
    margin-top: 0;
    color: #2E2E2E;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 600;
    font-size: 14px;
}

.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6157FF;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* =============================================================================
   REPORT BUTTON
   ============================================================================= */

.btn-report {
    background: transparent;
    border: 1px solid #E5E5E5;
    color: #666;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-report:hover {
    background: #FFE1E1;
    border-color: #FF6B6B;
    color: #FF6B6B;
}

/* =============================================================================
   STATS COUNTERS
   ============================================================================= */

.stats-container {
    display: flex;
    gap: 24px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #2E2E2E;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================================================
   FOLLOWERS/FOLLOWING LISTS
   ============================================================================= */

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-list-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #E5E5E5;
    transition: background 0.2s;
}

.user-list-item:hover {
    background: #F9F9F9;
}

.user-list-item:last-child {
    border-bottom: none;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6157FF 0%, #8B7FFF 100%);
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: #2E2E2E;
    margin: 0 0 4px 0;
}

.user-handle {
    color: #666;
    font-size: 14px;
}

/* =============================================================================
   PRIMARY BUTTON
   ============================================================================= */

.btn-primary {
    background: #6157FF;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background: #4942CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(97, 87, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #CCC;
    cursor: not-allowed;
    transform: none;
}

/* =============================================================================
   PAGINATION
   ============================================================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #E5E5E5;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #F9F9F9;
    border-color: #6157FF;
}

.page-btn.active {
    background: #6157FF;
    color: white;
    border-color: #6157FF;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .stats-container {
        gap: 16px;
    }

    .stat-number {
        font-size: 18px;
    }

    .user-list-item {
        padding: 12px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* =============================================================================
   LOADING STATES
   ============================================================================= */

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6157FF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =============================================================================
   ALERTS & TOASTS
   ============================================================================= */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #FF6B6B;
}

.toast.info {
    border-left: 4px solid #6157FF;
}
